[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/module/factory ...
Robert Stryker
rawblem at gmail.com
Fri Aug 18 13:56:41 EDT 2006
User: rawb
Date: 06/08/18 13:56:41
Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/module/factory
JBossModuleFactory.java
Log:
Changed many IResource parameters to String path.
Re-configured JBossModuleFactory's initialization scheme to get a list of modules from all servers. If the Module's ID is from the factory executing, it will specifically try to add that resource.
This prevents a full workspace check and makes execution and startup much quicker.
Revision Changes Path
1.5 +9 -2 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/module/factory/JBossModuleFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JBossModuleFactory.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/module/factory/JBossModuleFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- JBossModuleFactory.java 18 Aug 2006 15:16:49 -0000 1.4
+++ JBossModuleFactory.java 18 Aug 2006 17:56:41 -0000 1.5
@@ -78,8 +78,9 @@
}
/**
- * Go through the entire workspace looking for valid modules.
- * Store them when they're found.
+ * Get a list of minimal modules to have on hand,
+ * specifically those that are already deployed to a server
+ * and are expected.
*/
protected void cacheModules() {
@@ -165,6 +166,12 @@
if( pathToModule.get(path) != null ) {
return (IModule)pathToModule.get(path);
}
+ if( supports(path)) {
+ acceptAddition(path);
+ if( pathToModule.get(path) != null ) {
+ return (IModule)pathToModule.get(path);
+ }
+ }
return null;
}
More information about the jboss-cvs-commits
mailing list