[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.packages.core/src/main/org/jboss/ide/eclipse/packages/core ...
Marshall Culpepper
mculpepper at jboss.com
Fri Feb 23 13:36:06 EST 2007
User: mculpepper
Date: 07/02/23 13:36:06
Modified: core/plugins/org.jboss.ide.eclipse.packages.core/src/main/org/jboss/ide/eclipse/packages/core
PackagesCorePlugin.java
Log:
refactored isFile/isFolderInWorkspace into ResourceUtil of the main core plugin and changed to isResourceInWorkspace
Revision Changes Path
1.5 +0 -32 jbosside/core/plugins/org.jboss.ide.eclipse.packages.core/src/main/org/jboss/ide/eclipse/packages/core/PackagesCorePlugin.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PackagesCorePlugin.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.packages.core/src/main/org/jboss/ide/eclipse/packages/core/PackagesCorePlugin.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- PackagesCorePlugin.java 23 Feb 2007 17:29:00 -0000 1.4
+++ PackagesCorePlugin.java 23 Feb 2007 18:36:06 -0000 1.5
@@ -21,10 +21,6 @@
*/
package org.jboss.ide.eclipse.packages.core;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Plugin;
import org.jboss.ide.eclipse.packages.core.model.internal.xb.XMLBinding;
import org.osgi.framework.BundleContext;
@@ -67,34 +63,6 @@
super.stop(context);
}
- public static boolean isFolderInWorkspace (IPath path)
- {
- boolean inWorkspace = false;
- try {
- IFolder folder = ResourcesPlugin.getWorkspace().getRoot().getFolder(path);
-
- inWorkspace = (folder != null && folder.exists());
- } catch (IllegalArgumentException e) {
- // Swallow, we assume this isn't in the workspace if it's an invalid path
- }
-
- return inWorkspace;
- }
-
- public static boolean isFileInWorkspace (IPath path)
- {
- boolean inWorkspace = false;
- try {
- IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
-
- inWorkspace = (file != null && file.exists());
- } catch (IllegalArgumentException e) {
- // Swallow, we assume this isn't in the workspace if it's an invalid path
- }
-
- return inWorkspace;
- }
-
/**
* Returns the shared instance
*
More information about the jboss-cvs-commits
mailing list