Author: DartPeng
Date: 2008-11-28 02:02:01 -0500 (Fri, 28 Nov 2008)
New Revision: 12109
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java
Log:
JBIDE-3258
fix the bug that source tab can't save file on windows.
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java 2008-11-28
06:09:38 UTC (rev 12108)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java 2008-11-28
07:02:01 UTC (rev 12109)
@@ -112,7 +112,7 @@
if (mappingResourceConfig != null) {
refreshNormalPage(mappingResourceConfig
.getRelationgResourceConfigList());
- }else{
+ } else {
refreshNormalPage(Collections.EMPTY_LIST);
}
}
@@ -241,13 +241,14 @@
@Override
public void doSave(IProgressMonitor monitor) {
- this.graphicalPage.doSave(monitor);
- fireEditorDirty(false);
- // IEditorPart activeEditor = this.getEditor(this.getCurrentPage());
- // if (activeEditor != normalPage && activeEditor != null) {
- // activeEditor.doSave(monitor);
- // fireEditorDirty(false);
- // }
+ IEditorPart activeEditor = this.getEditor(this.getCurrentPage());
+ if (activeEditor != normalPage && activeEditor != null) {
+ activeEditor.doSave(monitor);
+ fireEditorDirty(false);
+ }
+ if(activeEditor == null){
+ this.graphicalPage.doSave(monitor);
+ }
}
public void fireEditorDirty(boolean dirty) {
Show replies by date