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 156638 Details for
Bug 300182
Expose convert to faceted form action from configure menu
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.
ConvertToFacetHandler
ConvertToFacetHandler.java (text/plain), 1.51 KB, created by
Paul Webster
on 2010-01-20 08:19:34 EST
(
hide
)
Description:
ConvertToFacetHandler
Filename:
MIME Type:
Creator:
Paul Webster
Created:
2010-01-20 08:19:34 EST
Size:
1.51 KB
patch
obsolete
>package org.eclipse.example; > >import org.eclipse.core.commands.AbstractHandler; >import org.eclipse.core.commands.ExecutionEvent; >import org.eclipse.core.commands.ExecutionException; >import org.eclipse.jface.preference.PreferenceDialog; >import org.eclipse.jface.viewers.ISelection; >import org.eclipse.jface.viewers.IStructuredSelection; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.ui.IWorkbenchWindow; >import org.eclipse.ui.handlers.HandlerUtil; >import org.eclipse.ui.internal.dialogs.PropertyDialog; > >public class ConvertToFacetHandler extends AbstractHandler { > // TODO put correct facet page ID here > private String initialPageId = "org.eclipse.jdt.ui.propertyPages.CompliancePreferencePage"; //$NON-NLS-1$ > > /* (non-Javadoc) > * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) > */ > public Object execute(ExecutionEvent event) throws ExecutionException { > PreferenceDialog dialog; > Object element = null; > ISelection currentSelection = HandlerUtil.getCurrentSelection(event); > IWorkbenchWindow activeWorkbenchWindow = HandlerUtil.getActiveWorkbenchWindow(event); > Shell shell; > > if (currentSelection instanceof IStructuredSelection) { > element = ((IStructuredSelection) currentSelection) > .getFirstElement(); > } else { > return null; > } > > if (activeWorkbenchWindow != null){ > shell = activeWorkbenchWindow.getShell(); > dialog = PropertyDialog.createDialogOn(shell, > initialPageId, element); > if (dialog != null) { > dialog.open(); > } > } > return null; > } > >}
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 Raw
Flags:
konstantin
:
iplog+
Actions:
View
Attachments on
bug 300182
: 156638