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 226692 Details for
Bug 400206
Add double click support to Plug-in Registry view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to add double click action
eclipse.pde.runtime.patch (text/plain), 1.64 KB, created by
Christian Pontesegger
on 2013-02-07 07:16:04 EST
(
hide
)
Description:
Patch to add double click action
Filename:
MIME Type:
Creator:
Christian Pontesegger
Created:
2013-02-07 07:16:04 EST
Size:
1.64 KB
patch
obsolete
>diff --git a/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/registry/RegistryBrowser.java b/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/registry/RegistryBrowser.java >index cd5033e..64fc6cf 100644 >--- a/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/registry/RegistryBrowser.java >+++ b/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/registry/RegistryBrowser.java >@@ -22,6 +22,7 @@ > import org.eclipse.osgi.util.NLS; > import org.eclipse.pde.internal.runtime.*; > import org.eclipse.pde.internal.runtime.registry.model.*; >+import org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor; > import org.eclipse.swt.SWT; > import org.eclipse.swt.custom.BusyIndicator; > import org.eclipse.swt.dnd.*; >@@ -217,6 +218,7 @@ > composite.setLayoutData(new GridData(GridData.FILL_BOTH)); > makeActions(); > createTreeViewer(composite); >+ hookDoubleClickAction(); > fClipboard = new Clipboard(fTreeViewer.getTree().getDisplay()); > fillToolBar(); > } >@@ -283,6 +285,19 @@ > tree.setMenu(menu); > } > >+ private void hookDoubleClickAction() { >+ fTreeViewer.addDoubleClickListener(new IDoubleClickListener() { >+ public void doubleClick(DoubleClickEvent event) { >+ IStructuredSelection selection = (IStructuredSelection) fTreeViewer.getSelection(); >+ if (selection.size() == 1) { >+ Object obj = selection.getFirstElement(); >+ if (obj instanceof Bundle) >+ ManifestEditor.openPluginEditor(((Bundle) obj).getSymbolicName()); >+ } >+ } >+ }); >+ } >+ > private void fillToolBar() { > fDrillDownAdapter = new RegistryDrillDownAdapter(fTreeViewer); > IActionBars bars = getViewSite().getActionBars();
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:
curtis.windatt.public
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 400206
: 226692