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 25582 Details for
Bug 29398
[MPE] Allow bookmarks and tasks in plugin.xml source
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to "MultiPageEditorSite"
Bug29398-MultiPageEditorSite.patch (text/plain), 3.54 KB, created by
Douglas Pollock
on 2005-08-02 16:13:43 EDT
(
hide
)
Description:
Patch to "MultiPageEditorSite"
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2005-08-02 16:13:43 EDT
Size:
3.54 KB
patch
obsolete
>Index: MultiPageEditorSite.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorSite.java,v >retrieving revision 1.16 >diff -u -r1.16 MultiPageEditorSite.java >--- MultiPageEditorSite.java 9 May 2005 15:09:18 -0000 1.16 >+++ MultiPageEditorSite.java 2 Aug 2005 20:10:40 -0000 >@@ -10,6 +10,8 @@ > *******************************************************************************/ > package org.eclipse.ui.part; > >+import java.util.ArrayList; >+ > import org.eclipse.core.runtime.jobs.Job; > import org.eclipse.jface.action.MenuManager; > import org.eclipse.jface.util.Assert; >@@ -27,6 +29,8 @@ > import org.eclipse.ui.IWorkbenchPage; > import org.eclipse.ui.IWorkbenchPart; > import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.internal.PartSite; >+import org.eclipse.ui.internal.PopupMenuExtender; > import org.eclipse.ui.internal.WorkbenchPlugin; > > /** >@@ -71,6 +75,11 @@ > private IKeyBindingService service = null; > > /** >+ * The list of popup menu extenders; <code>null</code> if none registered. >+ */ >+ private ArrayList menuExtenders; >+ >+ /** > * Creates a site for the given editor nested within the given multi-page editor. > * > * @param multiPageEditor the multi-page editor >@@ -88,6 +97,13 @@ > * Dispose the contributions. > */ > public void dispose() { >+ if (menuExtenders != null) { >+ for (int i = 0; i < menuExtenders.size(); i++) { >+ ((PopupMenuExtender) menuExtenders.get(i)).dispose(); >+ } >+ menuExtenders = null; >+ } >+ > // Remove myself from the list of nested key binding services. > if (service != null) { > IKeyBindingService parentService = getEditor().getSite() >@@ -305,7 +321,11 @@ > */ > public void registerContextMenu(String menuID, MenuManager menuMgr, > ISelectionProvider selProvider) { >- getMultiPageEditor().getSite().registerContextMenu(menuID, menuMgr, selProvider); >+ if (menuExtenders == null) { >+ menuExtenders = new ArrayList(1); >+ } >+ PartSite.registerContextMenu(menuID, menuMgr, selProvider, true, >+ editor, menuExtenders); > } > > /** >@@ -373,17 +393,20 @@ > } > > public final void registerContextMenu(final String menuId, >- final MenuManager menuManager, >- final ISelectionProvider selectionProvider, >- final boolean includeEditorInput) { >- getMultiPageEditor().getEditorSite().registerContextMenu(menuId, >- menuManager, selectionProvider, includeEditorInput); >- } >- >- public final void registerContextMenu(final MenuManager menuManager, >- final ISelectionProvider selectionProvider, >- final boolean includeEditorInput) { >- getMultiPageEditor().getEditorSite().registerContextMenu(menuManager, >- selectionProvider, includeEditorInput); >- } >+ final MenuManager menuManager, >+ final ISelectionProvider selectionProvider, >+ final boolean includeEditorInput) { >+ if (menuExtenders == null) { >+ menuExtenders = new ArrayList(1); >+ } >+ PartSite.registerContextMenu(menuId, menuManager, selectionProvider, >+ includeEditorInput, editor, menuExtenders); >+ } >+ >+ public final void registerContextMenu(final MenuManager menuManager, >+ final ISelectionProvider selectionProvider, >+ final boolean includeEditorInput) { >+ registerContextMenu(getId(), menuManager, selectionProvider, >+ includeEditorInput); >+ } > }
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
Actions:
View
|
Diff
Attachments on
bug 29398
: 25582