Author: rob.stryker(a)jboss.com
Date: 2012-02-21 04:49:05 -0500 (Tue, 21 Feb 2012)
New Revision: 38930
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java
Log:
JBIDE-10971 to trunk ensuring caches for xpaths are cleared after modifications
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2012-02-21
08:57:53 UTC (rev 38929)
+++
trunk/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)
@@ -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:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/PortSection.java 2012-02-21
08:57:53 UTC (rev 38929)
+++
trunk/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)
@@ -268,8 +268,12 @@
if( result == Dialog.OK) {
currentXPath = dialog.getSelection();
section.execute(getCommand());
- text.setFocus();
}
+ if( dialog.isModified() ) {
+ initialize();
+ validate();
+ }
+ text.setFocus();
}
};
}
Show replies by date