Author: rob.stryker(a)jboss.com
Date: 2012-05-04 09:02:15 -0400 (Fri, 04 May 2012)
New Revision: 40791
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java
Log:
JBIDE-11664 trunk
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java 2012-05-04
12:33:29 UTC (rev 40790)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java 2012-05-04
13:02:15 UTC (rev 40791)
@@ -774,7 +774,8 @@
ModifyListener ml =new ModifyListener() {
public void modifyText(ModifyEvent e) {
- viewer.setInput("");
+ resetFilterTextState();
+ viewer.setInput(""); //$NON-NLS-1$
}
};
filterCombo.addModifyListener(ml);
@@ -783,6 +784,13 @@
return root;
}
+ public void resetFilterTextState() {
+ int ind = filterCombo.getSelectionIndex();
+ boolean enabled = ind != -1 &&
+ filterCombo.getItem(ind).equals(BY_MODNAME);
+ filterText.setEnabled(enabled);
+ }
+
private void refreshViewer() {
page.refreshPossibleModules();
viewer.setInput(""); //$NON-NLS-1$
Show replies by date