Author: rob.stryker(a)jboss.com
Date: 2012-02-21 05:08:35 -0500 (Tue, 21 Feb 2012)
New Revision: 38931
Modified:
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java
Log:
JBIDE-10971
Modified:
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
===================================================================
---
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2012-02-21
09:49:05 UTC (rev 38930)
+++
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2012-02-21
10:08:35 UTC (rev 38931)
@@ -48,6 +48,8 @@
public class ChangePortDialog extends TitleAreaDialog {
private static final int RESTORE_DEFAULT = 35;
+ private boolean modified = false;
+
public static class ChangePortDialogInfo {
public String port;
public String defaultValue;
@@ -165,8 +167,11 @@
currentQuery.setAttribute(d.getAttribute());
currentQuery.setXpathPattern(d.getXpath());
currentQuery.setName(d.getName());
+ currentQuery.clearCache();
+ this.modified = true;
category.save();
fillWidgets();
+ selectionChanged();
}
}
}
@@ -255,4 +260,8 @@
}
}
}
+
+ public boolean isModified() {
+ return modified;
+ }
}
Modified:
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java
===================================================================
---
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java 2012-02-21
09:49:05 UTC (rev 38930)
+++
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java 2012-02-21
10:08:35 UTC (rev 38931)
@@ -268,8 +268,12 @@
if( result == Dialog.OK) {
currentXPath = dialog.getSelection();
section.execute(getCommand());
- text.setFocus();
}
+ if( dialog.isModified() ) {
+ initialize();
+ validate();
+ }
+ text.setFocus();
}
};
}