|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.gef.ui.parts.AbstractEditPartViewer
| Field Summary | |
protected List |
constantSelection
|
protected List |
selection
|
protected List |
selectionListeners
|
| Constructor Summary | |
AbstractEditPartViewer()
|
|
| Method Summary | |
void |
addDragSourceListener(TransferDragSourceListener listener)
At the moment, there can only be one drag listener on the DelegatingDragAdapter. |
void |
addDropTargetListener(TransferDropTargetListener listener)
Adds the TransferDropTargetListener to the viewer to handle DropEvents. |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
void |
appendSelection(EditPart editpart)
appends the EditPart to the Viewer's selection set. |
abstract Control |
createControl(Composite parent)
This assumes that the subclass has created the control and simply returns the current control. |
void |
deselect(EditPart editpart)
Removes the EditPart from the selection, and sets the last member of the selection to be the "primary" selection. |
void |
deselectAll()
deselects all EditParts. |
void |
dispose()
Disposes the viewer. |
protected void |
expose(EditPart part)
|
protected void |
fireSelectionChanged()
|
void |
flush()
|
EditPart |
getContents()
Returns the contents of this EditPartViewer. |
protected ContextMenuProvider |
getContextMenuProvider()
|
Control |
getControl()
Returns the SWT Control for this viewer. |
protected DelegatingDragAdapter |
getDelegatingDragAdapter()
|
protected DelegatingDropAdapter |
getDelegatingDropAdapter()
|
protected DragSource |
getDragSource()
|
protected DropTarget |
getDropTarget()
|
EditDomain |
getEditDomain()
Returns the EditDomain to which the viewer belongs |
EditPartFactory |
getEditPartFactory()
|
Map |
getEditPartRegistry()
Returns the map for registering EditParts by Keys. |
EditPart |
getFocusEditPart()
|
KeyHandler |
getKeyHandler()
|
RootEditPart |
getRootEditPart()
Returns the RootEditPart. |
List |
getSelectedEditParts()
Returns a list containing the currently selected editparts. |
ISelection |
getSelection()
|
Map |
getVisualPartMap()
Returns the map for registering visual parts to the EditParts which created them. |
protected void |
hookControl()
|
protected void |
hookDragSource()
|
protected void |
hookDropTarget()
|
protected void |
init()
|
void |
menuAboutToShow(IMenuManager menu)
Called just before the context menu is shown. |
protected List |
primGetSelectedEditParts()
|
protected void |
refreshDragSourceAdapter()
|
protected void |
refreshDropTargetAdapter()
|
void |
registerAccessibleEditPart(AccessibleEditPart acc)
|
void |
removeDragSourceListener(TransferDragSourceListener listener)
|
void |
removeDropTargetListener(TransferDropTargetListener listener)
|
void |
removeSelectionChangedListener(ISelectionChangedListener l)
|
void |
select(EditPart editpart)
Replaces the current selection with the EditPart. |
void |
setContents(EditPart editpart)
Sets the Contents for this Viewer. |
void |
setContents(Object contents)
Creates an EditPart for the specified contents using this viewers Factory. |
void |
setContextMenuProvider(ContextMenuProvider provider)
sets the ContextMenuProvider that will be used when the user invokes the context menu on the Viewer's control. |
void |
setControl(Control control)
Optionally sets the control that the viewer should use. |
void |
setCursor(Cursor cursor)
Sets the cursor for the viewer's control. |
void |
setDropTarget(DropTarget target)
Sets the dropTarget. |
void |
setEditDomain(EditDomain editdomain)
Sets the EditDomain for this viewer. |
void |
setEditPartFactory(EditPartFactory factory)
|
void |
setFocus(EditPart part)
|
void |
setKeyHandler(KeyHandler handler)
|
void |
setRootEditPart(RootEditPart editpart)
Sets the root of this viewer. |
void |
setRouteEventsToEditor(boolean value)
Turns on/off the routing of events directly to the Editor. |
void |
setSelection(ISelection newSelection)
This method will clear the current selection, and set the given ISelection as the current selection. |
protected void |
unhookControl()
|
void |
unregisterAccessibleEditPart(AccessibleEditPart acc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.EditPartViewer |
findObjectAt, findObjectAtExcluding |
| Field Detail |
protected final List selection
protected final List constantSelection
protected List selectionListeners
| Constructor Detail |
public AbstractEditPartViewer()
| Method Detail |
public void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener in interface ISelectionProviderpublic void addDragSourceListener(TransferDragSourceListener listener)
addDragSourceListener in interface EditPartViewerpublic void addDropTargetListener(TransferDropTargetListener listener)
EditPartVieweraddDropTargetListener in interface EditPartViewerpublic void appendSelection(EditPart editpart)
EditPartViewerappendSelection in interface EditPartViewerpublic abstract Control createControl(Composite parent)
setControl(Control) with the newly
created control and then call super.createControl(Composite).createControl in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.setControl(Control)public void deselect(EditPart editpart)
EditPartViewerdeselect in interface EditPartViewerpublic void deselectAll()
EditPartViewerdeselectAll in interface EditPartViewerpublic void dispose()
EditPartViewerdispose in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPart.deactivate()protected void expose(EditPart part)
protected void fireSelectionChanged()
public void flush()
flush in interface EditPartViewerprotected ContextMenuProvider getContextMenuProvider()
public EditPart getContents()
EditPartViewergetContents in interface EditPartViewerpublic Control getControl()
EditPartViewergetControl in interface EditPartViewerprotected DelegatingDragAdapter getDelegatingDragAdapter()
protected DelegatingDropAdapter getDelegatingDropAdapter()
protected DragSource getDragSource()
protected DropTarget getDropTarget()
public EditDomain getEditDomain()
EditPartViewerEditDomain to which the viewer belongsgetEditDomain in interface EditPartViewerpublic EditPartFactory getEditPartFactory()
getEditPartFactory in interface EditPartViewerpublic Map getEditPartRegistry()
EditPartViewergetEditPartRegistry in interface EditPartViewerpublic EditPart getFocusEditPart()
getFocusEditPart in interface EditPartViewerpublic KeyHandler getKeyHandler()
getKeyHandler in interface EditPartViewerpublic RootEditPart getRootEditPart()
EditPartViewergetRootEditPart in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.setContents(EditPart),
EditPartViewer.setRootEditPart(RootEditPart)public List getSelectedEditParts()
EditPartViewergetSelectedEditParts in interface EditPartViewerpublic ISelection getSelection()
getSelection in interface ISelectionProviderpublic Map getVisualPartMap()
EditPartViewergetVisualPartMap in interface EditPartViewerprotected void hookControl()
protected void hookDragSource()
protected void hookDropTarget()
protected void init()
public void menuAboutToShow(IMenuManager menu)
menuAboutToShow in interface IMenuListenerprotected List primGetSelectedEditParts()
protected void refreshDragSourceAdapter()
protected void refreshDropTargetAdapter()
public void registerAccessibleEditPart(AccessibleEditPart acc)
registerAccessibleEditPart in interface EditPartViewerpublic void removeDragSourceListener(TransferDragSourceListener listener)
public void removeDropTargetListener(TransferDropTargetListener listener)
public void removeSelectionChangedListener(ISelectionChangedListener l)
removeSelectionChangedListener in interface ISelectionProviderpublic void select(EditPart editpart)
EditPartViewerselect in interface EditPartViewerpublic void setContextMenuProvider(ContextMenuProvider provider)
EditPartViewersetContextMenuProvider in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.getControl()public void setContents(EditPart editpart)
EditPartViewersetContents in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.getRootEditPart(),
EditPartViewer.setRootEditPart(RootEditPart)public void setControl(Control control)
EditPartViewersetControl in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.createControl(Composite)public void setCursor(Cursor cursor)
EditPartViewersetCursor in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.getControl()public void setDropTarget(DropTarget target)
dropTarget - The dropTarget to setpublic void setEditDomain(EditDomain editdomain)
EditPartViewersetEditDomain in interface EditPartViewerorg.eclipse.gef.EditPartViewerdomain - The EditDomainpublic void setEditPartFactory(EditPartFactory factory)
setEditPartFactory in interface EditPartViewerpublic void setFocus(EditPart part)
setFocus in interface EditPartViewerpublic void setContents(Object contents)
EditPartViewersetContents in interface EditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.setEditPartFactory(EditPartFactory)public void setKeyHandler(KeyHandler handler)
setKeyHandler in interface EditPartViewerpublic void setRootEditPart(RootEditPart editpart)
EditPartViewer
setContents(EditPart)setRootEditPart in interface EditPartViewerpublic void setRouteEventsToEditor(boolean value)
EditPartViewersetRouteEventsToEditor in interface EditPartViewerpublic void setSelection(ISelection newSelection)
setSelection in interface ISelectionProviderprotected void unhookControl()
public void unregisterAccessibleEditPart(AccessibleEditPart acc)
unregisterAccessibleEditPart in interface EditPartViewer
|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||