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 51869 Details for
Bug 160698
add double click support to activate task and open task actions
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]
add double click support
patch.txt (text/plain), 2.05 KB, created by
Raphael Ackermann
on 2006-10-12 12:10:16 EDT
(
hide
)
Description:
add double click support
Filename:
MIME Type:
Creator:
Raphael Ackermann
Created:
2006-10-12 12:10:16 EDT
Size:
2.05 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylar.tasks.ui >Index: src/org/eclipse/mylar/internal/tasks/ui/actions/TaskSelectionDialog.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.mylar/org.eclipse.mylar.tasks.ui/src/org/eclipse/mylar/internal/tasks/ui/actions/TaskSelectionDialog.java,v >retrieving revision 1.3 >diff -u -r1.3 TaskSelectionDialog.java >--- src/org/eclipse/mylar/internal/tasks/ui/actions/TaskSelectionDialog.java 3 Sep 2006 07:48:44 -0000 1.3 >+++ src/org/eclipse/mylar/internal/tasks/ui/actions/TaskSelectionDialog.java 12 Oct 2006 16:13:25 -0000 >@@ -18,6 +18,8 @@ > import java.util.regex.Pattern; > > import org.eclipse.jface.viewers.ArrayContentProvider; >+import org.eclipse.jface.viewers.DoubleClickEvent; >+import org.eclipse.jface.viewers.IDoubleClickListener; > import org.eclipse.jface.viewers.IStructuredSelection; > import org.eclipse.jface.viewers.StructuredSelection; > import org.eclipse.jface.viewers.TableViewer; >@@ -48,7 +50,7 @@ > /** > * @author wmitsuda > */ >-public class TaskSelectionDialog extends SelectionStatusDialog { >+public class TaskSelectionDialog extends SelectionStatusDialog implements IDoubleClickListener{ > > /** > * Implements a {@link ViewFilter} based on content typed in the filter >@@ -132,7 +134,7 @@ > > Label matches = new Label(area, SWT.NONE); > matches.setText("&Matching tasks:"); >- viewer = new TableViewer(area); >+ viewer = new TableViewer(area, SWT.SINGLE); > Control control = viewer.getControl(); > GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); > control.setLayoutData(gd); >@@ -148,6 +150,7 @@ > final TaskElementLabelProvider labelProvider = new TaskElementLabelProvider(); > viewer.setLabelProvider(labelProvider); > viewer.setContentProvider(new ArrayContentProvider()); >+ viewer.addDoubleClickListener(this); > > // Compute all existing tasks or query hits (if corresponding task does > // not exist yet...) >@@ -251,4 +254,8 @@ > return super.close(); > } > >+ public void doubleClick(DoubleClickEvent event) { >+ okPressed(); >+ } >+ > }
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 160698
: 51869 |
51870
|
53312