Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2989/java/org/objectstyle/wolips/componenteditor/editor
Modified Files:
ComponentEditorPart.java
Log Message:
bug http://objectstyle.org/jira/secure/ViewIssue.jspa?key=WOL-216 fixed
Index: ComponentEditorPart.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/editor/ComponentEditorPart.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ComponentEditorPart.java 26 Dec 2005 16:22:07 -0000 1.6
+++ ComponentEditorPart.java 28 Dec 2005 16:16:33 -0000 1.7
@@ -242,24 +242,24 @@
.updateWebObjectsTagNames(wodEditor);
break;
case 3:
- apiEditor = new ApiEditor();
- editorPart = apiEditor;
+ htmlPreviewEditor = new HtmlPreviewEditor();
+ editorPart = htmlPreviewEditor;
try {
- this.addPage(editorPart, editorInput[i]);
+ this.addPage(editorPart, editorInput[i - 2]);
} catch (PartInitException e) {
ComponenteditorPlugin.getDefault().log(e);
}
- this.setPageText(i - 1, "Api");
+ this.setPageText(i - 1, "Preview");
break;
case 4:
- htmlPreviewEditor = new HtmlPreviewEditor();
- editorPart = htmlPreviewEditor;
+ apiEditor = new ApiEditor();
+ editorPart = apiEditor;
try {
- this.addPage(editorPart, editorInput[i - 3]);
+ this.addPage(editorPart, editorInput[i - 1]);
} catch (PartInitException e) {
ComponenteditorPlugin.getDefault().log(e);
}
- this.setPageText(i - 1, "Preview");
+ this.setPageText(i - 1, "Api");
break;
default:
@@ -406,7 +406,7 @@
if (apiEditor == null) {
return;
}
- switchToPage(2);
+ switchToPage(3);
}
public void switchToPage(int page) {
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.