Author: DartPeng
Date: 2009-01-09 03:44:50 -0500 (Fri, 09 Jan 2009)
New Revision: 12957
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
Log:
JBIDE-3429
synchronize the model for configuration page and graphical page
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2009-01-09
08:06:35 UTC (rev 12956)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2009-01-09
08:44:50 UTC (rev 12957)
@@ -586,6 +586,12 @@
mappingGUISection.setEnabled(false);
this.notifyAnalyzeListeners(throwable);
}
+
+ // show/unshow the problem panel
+ if(disableMappingGUI){
+ analyzeResultList.clear();
+ updateNotifyMessage();
+ }
}
public void refreshAllGUI() {
@@ -1834,10 +1840,10 @@
DesignTimeAnalyzeResult[] results = analyzer
.analyzeGraphModel(context);
analyzeResultList.clear();
- if (results == null)
- return;
- for (int i = 0; i < results.length; i++) {
- analyzeResultList.add(results[i]);
+ if (results != null) {
+ for (int i = 0; i < results.length; i++) {
+ analyzeResultList.add(results[i]);
+ }
}
updateNotifyMessage();
} catch (CoreException e) {