Author: mareshkau
Date: 2010-09-21 03:36:57 -0400 (Tue, 21 Sep 2010)
New Revision: 25044
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java
Log:
JBIDE-7059,selection bar menu visabilty has been adjusted
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java 2010-09-21
07:05:39 UTC (rev 25043)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java 2010-09-21
07:36:57 UTC (rev 25044)
@@ -25,6 +25,7 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.QualifiedName;
+import org.eclipse.draw2d.GridData;
import org.eclipse.gef.ui.views.palette.PalettePage;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuListener;
@@ -112,7 +113,7 @@
// private IVisualEditor previewWebBrowser;
/** index of tab contain default web-browser */
- private int previewIndex;
+ private int previewIndex=-1;//by default 1, so if there no visual editor impl, this tab
will be not available
// private boolean osWindows = true;
@@ -180,6 +181,10 @@
} else {
selectedPageIndex = 0;
}
+ //when implementation of visual editor not available we have only one tab
+ if(visualEditor==null){
+ selectedPageIndex=0;
+ }
}
public void superPageChange(int newPageIndex) {
Show replies by date