geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tki...@apache.org
Subject svn commit: r697175 - /geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java
Date Fri, 19 Sep 2008 18:25:33 GMT
Author: tkirby
Date: Fri Sep 19 11:25:33 2008
New Revision: 697175

URL: http://svn.apache.org/viewvc?rev=697175&view=rev
Log:
GERONIMODEVTOOLS-517 Can't delete project from defined geronimo server
Thanks for the patch, Delos!

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java?rev=697175&r1=697174&r2=697175&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.0.1/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java
Fri Sep 19 11:25:33 2008
@@ -86,13 +86,15 @@
 	 *      org.eclipse.wst.server.core.IModule[])
 	 */
 	public IStatus canModifyModules(IModule[] add, IModule[] remove) {
-        for (int i = 0; i < add.length; i++) {
-            IModule module = add[i];
-            if (module.getProject() != null) {
-                IStatus status = FacetUtil.verifyFacets(module.getProject(),
-                        getServer());
-                if (status != null && !status.isOK())
-                    return status;
+        if (add != null) {
+            for (int i = 0; i < add.length; i++) {
+                IModule module = add[i];
+                if (module.getProject() != null) {
+                    IStatus status = FacetUtil.verifyFacets(
+                            module.getProject(), getServer());
+                    if (status != null && !status.isOK())
+                        return status;
+                }
             }
         }
         return Status.OK_STATUS;



Mime
View raw message