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 90412 Details for
Bug 217247
add key binding for "Del" in the Task Repositories view
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]
Added hookGlobalActions for Delete and Refresh
clipboard.txt (text/plain), 1.49 KB, created by
maarten meijer
on 2008-02-21 16:28:34 EST
(
hide
)
Description:
Added hookGlobalActions for Delete and Refresh
Filename:
MIME Type:
Creator:
maarten meijer
Created:
2008-02-21 16:28:34 EST
Size:
1.49 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java,v >retrieving revision 1.25 >diff -u -r1.25 TaskRepositoriesView.java >--- src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java 5 Dec 2007 02:00:22 -0000 1.25 >+++ src/org/eclipse/mylyn/internal/tasks/ui/views/TaskRepositoriesView.java 21 Feb 2008 21:25:37 -0000 >@@ -34,6 +34,7 @@ > import org.eclipse.ui.IWorkbenchActionConstants; > import org.eclipse.ui.IWorkbenchPage; > import org.eclipse.ui.PlatformUI; >+import org.eclipse.ui.actions.ActionFactory; > import org.eclipse.ui.actions.BaseSelectionListenerAction; > import org.eclipse.ui.part.ViewPart; > >@@ -175,10 +176,17 @@ > > makeActions(); > hookContextMenu(); >+ hookGlobalActions(); > contributeToActionBars(); > getSite().setSelectionProvider(getViewer()); > } > >+ private void hookGlobalActions() { >+ IActionBars bars = getViewSite().getActionBars(); >+ bars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteRepositoryAction); >+ bars.setGlobalActionHandler(ActionFactory.REFRESH.getId(), resetConfigurationAction); >+ } >+ > private void makeActions() { > deleteRepositoryAction = new DeleteTaskRepositoryAction(); > viewer.addSelectionChangedListener(deleteRepositoryAction);
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 217247
:
90317
|
90318
| 90412 |
90413
|
90423