Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 92198 Details for
Bug 212330
can't contribute to the XML or any SSE based menu.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
ActionContributor.patch
ActionContributor.patch (text/plain), 7.12 KB, created by
Amy Wu
on 2008-03-11 12:52:44 EDT
(
hide
)
Description:
ActionContributor.patch
Filename:
MIME Type:
Creator:
Amy Wu
Created:
2008-03-11 12:52:44 EDT
Size:
7.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.sse.ui >Index: src/org/eclipse/wst/sse/ui/internal/actions/ActionContributor.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/actions/ActionContributor.java,v >retrieving revision 1.6 >diff -u -r1.6 ActionContributor.java >--- src/org/eclipse/wst/sse/ui/internal/actions/ActionContributor.java 26 Feb 2008 02:53:29 -0000 1.6 >+++ src/org/eclipse/wst/sse/ui/internal/actions/ActionContributor.java 11 Mar 2008 16:52:05 -0000 >@@ -8,15 +8,15 @@ > * Contributors: > * IBM Corporation - initial API and implementation > * Jens Lukowski/Innoopract - initial renaming/restructuring >+ * David Carver/STAR - [212330] can't contribute to the XML or any SSE based menu > * > *******************************************************************************/ > package org.eclipse.wst.sse.ui.internal.actions; > >-import java.util.ResourceBundle; >+//import java.util.ResourceBundle; > > import org.eclipse.core.runtime.Platform; > import org.eclipse.jface.action.GroupMarker; >-import org.eclipse.jface.action.IAction; > import org.eclipse.jface.action.IMenuManager; > import org.eclipse.jface.action.IStatusLineManager; > import org.eclipse.jface.action.IToolBarManager; >@@ -24,21 +24,15 @@ > import org.eclipse.jface.action.Separator; > import org.eclipse.ui.IActionBars; > import org.eclipse.ui.IEditorPart; >-import org.eclipse.ui.IWorkbenchActionConstants; > import org.eclipse.ui.IWorkbenchPage; >-import org.eclipse.ui.actions.ActionFactory; > import org.eclipse.ui.editors.text.TextEditorActionContributor; >-import org.eclipse.ui.ide.IDEActionFactory; > import org.eclipse.ui.texteditor.ITextEditor; >-import org.eclipse.ui.texteditor.ITextEditorActionConstants; >-import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds; > import org.eclipse.ui.texteditor.ITextEditorExtension; > import org.eclipse.ui.texteditor.RetargetTextEditorAction; > import org.eclipse.wst.sse.ui.internal.ExtendedEditorActionBuilder; > import org.eclipse.wst.sse.ui.internal.GotoAnnotationAction; > import org.eclipse.wst.sse.ui.internal.IExtendedContributor; > import org.eclipse.wst.sse.ui.internal.ISourceViewerActionBarContributor; >-import org.eclipse.wst.sse.ui.internal.SSEUIMessages; > import org.eclipse.wst.sse.ui.internal.ui.OffsetStatusLineContributionItem; > > /** >@@ -87,7 +81,7 @@ > public ActionContributor() { > super(); > >- ResourceBundle resourceBundle = SSEUIMessages.getResourceBundle(); >+/* ResourceBundle resourceBundle = SSEUIMessages.getResourceBundle(); > > fCommandsSeparator = new Separator(); > >@@ -136,18 +130,18 @@ > > fGotoMatchingBracketAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_GOTO_MATCHING_BRACKET + StructuredTextEditorActionConstants.UNDERSCORE); > fGotoMatchingBracketAction.setActionDefinitionId(ActionDefinitionIds.GOTO_MATCHING_BRACKET); >- >+*/ > // Read action extensions. > ExtendedEditorActionBuilder builder = new ExtendedEditorActionBuilder(); > extendedContributor = builder.readActionExtensions(getExtensionIDs()); >- >+/* > fMenuAdditionsGroupMarker = new GroupMarker(StructuredTextEditorActionConstants.GROUP_NAME_MENU_ADDITIONS); > fToolbarSeparator = new Separator(); > fToolbarAdditionsGroupMarker = new GroupMarker(StructuredTextEditorActionConstants.GROUP_NAME_TOOLBAR_ADDITIONS); > > fToggleInsertModeAction = new RetargetTextEditorAction(resourceBundle, "Editor.ToggleInsertMode.", IAction.AS_CHECK_BOX); //$NON-NLS-1$ > fToggleInsertModeAction.setActionDefinitionId(ITextEditorActionDefinitionIds.TOGGLE_INSERT_MODE); >- >+*/ > if (_showDebugStatus) { > fDebugStatusOffset = new OffsetStatusLineContributionItem(StructuredTextEditorActionConstants.STATUS_CATEGORY_OFFSET, true, 20); > } >@@ -155,7 +149,7 @@ > > protected void addToMenu(IMenuManager menu) { > // edit commands >- IMenuManager editMenu = menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT); >+/* IMenuManager editMenu = menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT); > if (editMenu != null) { > editMenu.add(fCommandsSeparator); > editMenu.add(fToggleInsertModeAction); >@@ -185,6 +179,7 @@ > if (gotoMenu != null) { > gotoMenu.add(fGotoMatchingBracketAction); > } >+*/ > } > > protected void addToPopupMenu(IMenuManager menu) { >@@ -198,18 +193,18 @@ > } > > protected void addToToolBar(IToolBarManager toolBarManager) { >- toolBarManager.add(fToolbarSeparator); >+/* toolBarManager.add(fToolbarSeparator); > toolBarManager.add(fToolbarAdditionsGroupMarker); >- } >+*/ } > > /** > * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToMenu(IMenuManager) > */ > public void contributeToMenu(IMenuManager menu) { > super.contributeToMenu(menu); >- >+/* > addToMenu(menu); >- >+*/ > if (extendedContributor != null) { > extendedContributor.contributeToMenu(menu); > } >@@ -221,9 +216,9 @@ > * @see org.eclipse.wst.sse.ui.extension.IPopupMenuContributor#contributeToPopupMenu(org.eclipse.jface.action.IMenuManager) > */ > public void contributeToPopupMenu(IMenuManager menu) { >- >+/* > addToPopupMenu(menu); >- >+*/ > if (extendedContributor != null) { > extendedContributor.contributeToPopupMenu(menu); > } >@@ -250,8 +245,8 @@ > public void contributeToToolBar(IToolBarManager toolBarManager) { > super.contributeToToolBar(toolBarManager); > >- addToToolBar(toolBarManager); >- >+/* addToToolBar(toolBarManager); >+*/ > if (extendedContributor != null) { > extendedContributor.contributeToToolBar(toolBarManager); > } >@@ -312,7 +307,7 @@ > > ITextEditor textEditor = getTextEditor(activeEditor); > >- IActionBars actionBars = getActionBars(); >+/* IActionBars actionBars = getActionBars(); > if (actionBars != null) { > actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_NEXT_ANNOTATION, fNextAnnotation); > actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_PREVIOUS_ANNOTATION, fPreviousAnnotation); >@@ -344,7 +339,7 @@ > fGotoMatchingBracketAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_GOTO_MATCHING_BRACKET)); > > fToggleInsertModeAction.setAction(getAction(textEditor, ITextEditorActionConstants.TOGGLE_INSERT_MODE)); >- >+*/ > if (extendedContributor != null) { > extendedContributor.setActiveEditor(activeEditor); > } >@@ -361,18 +356,21 @@ > * @see org.eclipse.wst.sse.ui.ISourceViewerActionBarContributor#setViewerSpecificContributionsEnabled(boolean) > */ > public void setViewerSpecificContributionsEnabled(boolean enabled) { >- fShiftRight.setEnabled(enabled); >+/* fShiftRight.setEnabled(enabled); > fShiftLeft.setEnabled(enabled); > fNextAnnotation.setEnabled(enabled); > fPreviousAnnotation.setEnabled(enabled); >- >+*/ > /* > * fComment.setEnabled(enabled); fUncomment.setEnabled(enabled); > */ >+/* > fToggleComment.setEnabled(enabled); > fAddBlockComment.setEnabled(enabled); > fRemoveBlockComment.setEnabled(enabled); >+*/ > // convert line delimiters are not source viewer-specific >+ > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bjorn.freeman-benson
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 212330
:
85240
|
85305
|
85343
|
85359
|
85510
|
85614
|
85623
|
85671
|
85691
|
89897
|
90283
| 92198 |
92199
|
92436
|
92731