Author: sdzmitrovich
Date: 2009-05-09 04:19:38 -0400 (Sat, 09 May 2009)
New Revision: 15142
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.properties
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4294
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.java 2009-05-08
16:29:51 UTC (rev 15141)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.java 2009-05-09
08:19:38 UTC (rev 15142)
@@ -25,7 +25,6 @@
public static String JSPMultiPageEditor_TabLabel_VisualSource;
public static String JSPMultiPageEditor_TabLabel_Source;
public static String JSPMultiPageEditor_TabLabel_Preview;
- public static String JSPMultiPageEditor_ContextMenu_ShowInMenu;
static {
NLS.initializeMessages(BUNDLE_NAME, JSPEditorMessages.class);
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.properties
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.properties 2009-05-08
16:29:51 UTC (rev 15141)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPEditorMessages.properties 2009-05-09
08:19:38 UTC (rev 15142)
@@ -5,5 +5,3 @@
JSPMultiPageEditor_TabLabel_Source = Source
JSPMultiPageEditor_TabLabel_Preview = Preview
-# org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor.getShowInMenuLabel()
-JSPMultiPageEditor_ContextMenu_ShowInMenu = Show In
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-05-08
16:29:51 UTC (rev 15141)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-05-09
08:19:38 UTC (rev 15142)
@@ -17,9 +17,6 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextListener;
@@ -63,7 +60,6 @@
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.actions.ActionFactory;
-import org.eclipse.ui.actions.ContributionItemFactory;
import org.eclipse.ui.editors.text.ILocationProvider;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
@@ -1265,29 +1261,4 @@
return false;
}
- @Override
- public void editorContextMenuAboutToShow(IMenuManager menu) {
-
- super.editorContextMenuAboutToShow(menu);
-
- /*
- * added by Dmitrovich Sergey JBIDE-1373 so as StructuredTextEditor
- * create context menu by hard code. The easiest way to add "show in"
- * menu is insert to prepared by
- * StructuredTextEditorStructuredTextEditor
- */
-
- MenuManager showInSubMenu = new MenuManager(getShowInMenuLabel());
- showInSubMenu.add(ContributionItemFactory.VIEWS_SHOW_IN
- .create(getEditorSite().getWorkbenchWindow()));
- menu.insertBefore(ITextEditorActionConstants.GROUP_COPY, new Separator(
- ITextEditorActionConstants.GROUP_SHOW_IN));
- menu.appendToGroup(ITextEditorActionConstants.GROUP_SHOW_IN,
- showInSubMenu);
-
- }
-
- private String getShowInMenuLabel() {
- return JSPEditorMessages.JSPMultiPageEditor_ContextMenu_ShowInMenu;
- }
}