|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.action.util.SelectionUtil
public class SelectionUtil
This class provides selection utility methods.
Method Summary | |
---|---|
static void |
selectAndReveal(java.lang.Object obj,
IWorkbenchWindow window)
Attempts to select and reveal the specified object in all parts within the supplied workbench window's active page. |
static void |
startInlineEdit(IWorkbenchPart part,
java.lang.Object newElement)
Select, reveal and start inline editing on the new element, if appropriate. |
static void |
startRename(IWorkbenchPart part,
java.lang.Object newElement)
Select, reveal and start renaming the new element, if appropriate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void selectAndReveal(java.lang.Object obj, IWorkbenchWindow window)
ISetSelectionTarget
,
either directly or as an adapter. If so, tells the part to select and
reveal the specified resource.
obj
- The object to be selected and revealedwindow
- The workbench window to select and reveal the resourceISetSelectionTarget
public static void startInlineEdit(IWorkbenchPart part, java.lang.Object newElement)
part
- the workbench part in which to start the inline editingnewElement
- the new elementpublic static void startRename(IWorkbenchPart part, java.lang.Object newElement)
part
- the workbench part in which to start the global rename actionnewElement
- the new element
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.