|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.aptana.ide.editors.views.actions.ActionsView
public class ActionsView
This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content provider.
The view uses a label provider to define how model objects should be presented in the view. Each view can present the same model objects using different labels and icons, if needed. Alternatively, a single label provider can be shared between views in order to ensure that objects of the same type are presented in the same way everywhere.
| Field Summary | |
|---|---|
ActionsManager |
actionsManager
actionsManager |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
ActionsView()
The constructor. |
|
| Method Summary | |
|---|---|
void |
addActionsViewEventListener(IActionsViewEventListener l)
addActionsViewEventListener |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it. |
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent)
createTreeViewer |
void |
dispose()
|
void |
editAction(java.lang.String path)
editAction |
void |
expandActionSet(java.lang.String setName)
expandActionSet |
void |
expandAll()
expandAll |
Action |
findAction(java.lang.String path)
findAction |
ActionSet |
findActionSet(java.lang.String name)
Find the action set for the given name |
void |
fireAction(java.lang.String actionName)
fireAction |
void |
fireActionsViewEvent(ActionsViewEvent e)
fireActionsViewEvent |
void |
forcePopulateTree()
forcePopulateTree |
protected void |
handleDrop(org.eclipse.swt.dnd.DropTargetEvent event)
handleDrop |
void |
refresh()
refresh |
void |
removeActionsViewEventListener(IActionsViewEventListener l)
removeActionsViewEventListener |
void |
selectAndReveal(Action action)
selectAndReveal |
void |
selectAndReveal(java.lang.String actionPath)
selectAndReveal |
void |
setFocus()
Passing the focus request to the viewer's control. |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
|---|
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public ActionsManager actionsManager
| Constructor Detail |
|---|
public ActionsView()
| Method Detail |
|---|
public void fireActionsViewEvent(ActionsViewEvent e)
e - public void addActionsViewEventListener(IActionsViewEventListener l)
l - public void removeActionsViewEventListener(IActionsViewEventListener l)
l - public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.dispose()public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartparent - protected void handleDrop(org.eclipse.swt.dnd.DropTargetEvent event)
event - protected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent)
parent -
public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void expandAll()
public void expandActionSet(java.lang.String setName)
setName - public void selectAndReveal(java.lang.String actionPath)
actionPath - public void selectAndReveal(Action action)
action - public void forcePopulateTree()
public ActionSet findActionSet(java.lang.String name)
name - The action set name to find
public Action findAction(java.lang.String path)
path -
public void fireAction(java.lang.String actionName)
actionName - public void refresh()
public void editAction(java.lang.String path)
path -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||