Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[388032] Server add and remove wizard doesn't allow add modules with

warning to the server
  • Loading branch information...
commit 15b5f94b3aaea282ce0955bb5679a05d326494ed 1 parent a15830b
@elsony elsony authored
View
2  ...er.ui/serverui/org/eclipse/wst/server/ui/internal/wizard/page/ModifyModulesComposite.java
@@ -864,7 +864,7 @@ protected void moveAll(IModule[] mods, boolean add2) {
for (int i = 0; i < size; i++) {
IStatus status = errorMap.get(mods[i]);
- if (status == null && !list.contains(mods[i]))
+ if ((status == null || status.getSeverity() != IStatus.ERROR) && !list.contains(mods[i]))
list.add(mods[i]);
}
View
8 ...server.ui/serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewServerComposite.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2011 IBM Corporation and others.
+ * Copyright (c) 2003, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -346,13 +346,13 @@ public void serverSelected(IServer server) {
if (server != null && module != null) {
IStatus status = isSupportedModule(server, module);
if (status != null) {
- if (status.getSeverity() == IStatus.ERROR)
+ if (status.getSeverity() == IStatus.ERROR) {
wizard.setMessage(status.getMessage(), IMessageProvider.ERROR);
- else if (status.getSeverity() == IStatus.WARNING)
+ server = null;
+ } else if (status.getSeverity() == IStatus.WARNING)
wizard.setMessage(status.getMessage(), IMessageProvider.WARNING);
else if (status.getSeverity() == IStatus.INFO)
wizard.setMessage(status.getMessage(), IMessageProvider.INFORMATION);
- server = null;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.