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 90317 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 key equivalents for Delete and Refresh (F5)
clipboard.txt (text/plain), 2.75 KB, created by
maarten meijer
on 2008-02-21 04:48:37 EST
(
hide
)
Description:
Added key equivalents for Delete and Refresh (F5)
Filename:
MIME Type:
Creator:
maarten meijer
Created:
2008-02-21 04:48:37 EST
Size:
2.75 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 09:46:25 -0000 >@@ -26,6 +26,8 @@ > import org.eclipse.mylyn.tasks.core.TaskRepository; > import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.events.KeyEvent; >+import org.eclipse.swt.events.KeyListener; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Display; > import org.eclipse.swt.widgets.Menu; >@@ -34,6 +36,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; > >@@ -171,14 +174,51 @@ > } > }); > >+ getViewer().getTable().addKeyListener(new KeyListener() { >+ >+ public void keyPressed(KeyEvent e) { >+ // ignore >+ if (e.keyCode == SWT.DEL && e.stateMask == 0 && >+ deleteRepositoryAction.isEnabled()) { >+ deleteRepositoryAction.run(); >+// } else if (e.keyCode == SWT.INSERT) { >+// addRepositoryAction.run(); >+// } else if (e.keyCode == '+' && e.stateMask == SWT.MOD1) { >+// addRepositoryAction.run(); >+// } else if (e.keyCode == SWT.ESC && e.stateMask == 0 && >+// offlineAction.isEnabled()) { >+// offlineAction.run(); >+// refresh(); >+ } else if (e.keyCode == SWT.F5 && e.stateMask == 0 && >+ resetConfigurationAction.isEnabled()) { >+ resetConfigurationAction.run(); >+ } >+ } >+ >+ public void keyReleased(KeyEvent e) { >+ // ignore >+ >+ } >+ >+ >+ }); >+ >+ > TasksUiPlugin.getRepositoryManager().addListener(new TaskRepositoryListener()); > > 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