# Deprecated API

## Contents

- Terminally Deprecated
- Interfaces
- Classes
- Fields
- Methods
- Constructors

Terminally Deprecated Elements
Element
Description
org.eclipse.gef.editparts.AbstractEditPart.getEditPolicyIterator()
use Use `AbstractEditPart.getEditPolicyIterable()` instead.
org.eclipse.gef.editparts.ZoomListener
Use {@link #org.eclipse.draw2d.zoom.ZoomListener} instead.
org.eclipse.gef.editparts.ZoomManager.addZoomListener(ZoomListener)
Use {@link #org.eclipse.draw2d.zoom.ZoomManager.addZoomListener(ZoomListener listener)} instead.
org.eclipse.gef.editparts.ZoomManager.removeZoomListener(ZoomListener)
Use {@link #org.eclipse.draw2d.zoom.ZoomManager.removeZoomListener(ZoomListener listener)} instead.

Deprecated Interfaces
Interface
Description
org.eclipse.gef.commands.CommandStackListener
Use `CommandStackEventListener` instead and filter for post-events using `CommandStack.POST_MASK`.
org.eclipse.gef.dnd.TransferDragSourceListener
use org.eclipse.jface.util.TransferDragSourceListener instead
org.eclipse.gef.dnd.TransferDropTargetListener
use org.eclipse.jface.util.TransferDropTargetListener instead
org.eclipse.gef.editparts.ZoomListener
Use {@link #org.eclipse.draw2d.zoom.ZoomListener} instead.

Deprecated Classes
Class
Description
org.eclipse.gef.editparts.GraphicalRootEditPart
this class will be deleted, use ScrollingGraphicalViewer with ScalableRootEditPart instead
org.eclipse.gef.editpolicies.AbstractTreeContainerEditPolicy
Use TreeContainerEditPolicy
org.eclipse.gef.GEF
in 3.1 This class will be removed in future releases.
org.eclipse.gef.GEFPlugin
The GEF plugin class must not be referenced by clients.
org.eclipse.gef.handles.ConnectionEndHandle
use `ConnectionEndpointHandle`
org.eclipse.gef.handles.ConnectionStartHandle
use `ConnectionEndpointHandle`
org.eclipse.gef.handles.CornerTriangleBorder
this class is no longer used
org.eclipse.gef.handles.NonResizableHandle
this handle type is no longer used
org.eclipse.gef.ui.actions.CopyRetargetAction
Use org.eclipse.ui.actions.ActionFactory instead
org.eclipse.gef.ui.actions.PasteRetargetAction
Use org.eclipse.ui.actions.ActionFactory instead

Deprecated Fields
Field
Description
org.eclipse.gef.commands.CommandStack.listeners
This field should not be referenced, use `CommandStack.notifyListeners()`
org.eclipse.gef.GEF.DebugDND
org.eclipse.gef.GEF.DebugEditParts
org.eclipse.gef.GEF.DebugEvents
org.eclipse.gef.GEF.DebugFeedback
org.eclipse.gef.GEF.DebugPainting
org.eclipse.gef.GEF.DebugTools
org.eclipse.gef.GEF.DebugToolStates
org.eclipse.gef.GEF.GlobalDebug
org.eclipse.gef.handles.MoveHandle.INNER_PAD
subclasses should not reference this field.
org.eclipse.gef.palette.CreationToolEntry.factory
in 3.1. This field will be removed in future releases. The factory is being provided to the tool via the `ToolEntry.setToolProperty(Object, Object)` method.
org.eclipse.gef.palette.PaletteDrawer.INITIAL_STATUS_PINNED_OPEN
use `PaletteDrawer.INITIAL_STATE_PINNED_OPEN`
org.eclipse.gef.SnapToGrid.DEFAULT_GAP
use DEFAULT_GRID_SIZE
org.eclipse.gef.tools.AbstractTool.MOUSE_BUTTON_ANY
Use `SWT.BUTTON_MASK` instead.
org.eclipse.gef.tools.AbstractTool.MOUSE_BUTTON1
Use `SWT.BUTTON1` instead.
org.eclipse.gef.tools.AbstractTool.MOUSE_BUTTON2
Use `SWT.BUTTON2` instead.
org.eclipse.gef.tools.AbstractTool.MOUSE_BUTTON3
Use `SWT.BUTTON3` instead.
org.eclipse.gef.tools.MarqueeSelectionTool.BEHAVIOR_NODES_AND_CONNECTIONS
use `MarqueeSelectionTool.BEHAVIOR_NODES_CONTAINED_AND_RELATED_CONNECTIONS` instead.
org.eclipse.gef.ui.actions.DeleteAction.ID
Use ActionFactory.DELETE.getId() instead.
org.eclipse.gef.ui.actions.DirectEditAction.ID
org.eclipse.gef.ui.palette.PaletteViewerPreferences.LAYOUT_FOLDER
Use LAYOUT_COLUMNS instead.
org.eclipse.gef.ui.palette.PaletteViewerPreferences.PREFERENCE_FOLDER_ICON_SIZE
Use PREFERENCE_COLUMNS_ICON_SIZE instead.
org.eclipse.gef.ui.parts.AbstractEditPartViewer.focusPart
org.eclipse.gef.ui.parts.AbstractEditPartViewer.selectionListeners

Deprecated Methods
Method
Description
org.eclipse.gef.commands.CommandStack.addCommandStackListener(CommandStackListener)
Use `CommandStack.addCommandStackEventListener(CommandStackEventListener)` instead.
org.eclipse.gef.commands.CommandStack.notifyListeners()
Use `CommandStack.notifyListeners(Command, int)` instead.
org.eclipse.gef.commands.CommandStack.removeCommandStackListener(CommandStackListener)
Use `CommandStackEventListener` instead.
org.eclipse.gef.dnd.DelegatingDragAdapter.addDragSourceListener(TransferDragSourceListener)
org.eclipse.gef.dnd.DelegatingDragAdapter.getTransferTypes()
call getTransfers() instead.
org.eclipse.gef.dnd.DelegatingDragAdapter.removeDragSourceListener(TransferDragSourceListener)
org.eclipse.gef.dnd.DelegatingDropAdapter.addDropTargetListener(TransferDropTargetListener)
org.eclipse.gef.dnd.DelegatingDropAdapter.getTransferTypes()
use getTransfers() instead
org.eclipse.gef.editparts.AbstractEditPart.debug(String)
in 3.1
org.eclipse.gef.editparts.AbstractEditPart.debugFeedback(String)
in 3.1
org.eclipse.gef.editparts.AbstractEditPart.getEditPolicyIterator()
use Use `AbstractEditPart.getEditPolicyIterable()` instead.
org.eclipse.gef.editparts.ZoomManager.addZoomListener(ZoomListener)
Use {@link #org.eclipse.draw2d.zoom.ZoomManager.addZoomListener(ZoomListener listener)} instead.
org.eclipse.gef.editparts.ZoomManager.getPane()
Use `AbstractZoomManager.getScalableFigure()` instead. Returns the pane.
org.eclipse.gef.editparts.ZoomManager.removeZoomListener(ZoomListener)
Use {@link #org.eclipse.draw2d.zoom.ZoomManager.removeZoomListener(ZoomListener listener)} instead.
org.eclipse.gef.EditPartViewer.removeDragSourceListener(TransferDragSourceListener)
org.eclipse.gef.EditPartViewer.removeDropTargetListener(TransferDropTargetListener)
org.eclipse.gef.editpolicies.AbstractEditPolicy.debugFeedback(String)
in 3.1 This method will be removed in future releases.
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.createAddCommand(EditPart, Object)
Use `ConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest, EditPart, Object)` instead.
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.createChangeConstraintCommand(EditPart, Object)
Use `ConstrainedLayoutEditPolicy.createChangeConstraintCommand(ChangeBoundsRequest, EditPart, Object)` instead.
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.getConstraintForClone(GraphicalEditPart, ChangeBoundsRequest)
Use `ConstrainedLayoutEditPolicy.getConstraintFor(ChangeBoundsRequest, GraphicalEditPart)` instead.
org.eclipse.gef.editpolicies.FlowLayoutEditPolicy.isHorizontal()
Use `OrderedLayoutEditPolicy.isLayoutHorizontal()` instead.
org.eclipse.gef.editpolicies.XYLayoutEditPolicy.getMinimumSizeFor(GraphicalEditPart)
Clients should no longer extend this method. Instead, the resize tracker, constructed by the 'satellite' primary drag edit policy should be parameterized with max and min size constraints.
org.eclipse.gef.GEFPlugin.createUndoablePropertySheetEntry(CommandStack)
use org.eclipse.gef.ui.properties.UndoablePropertySheetEntry
org.eclipse.gef.handles.AbstractHandle.getDragCursor()
use getCursor()
org.eclipse.gef.handles.AbstractHandle.setDragCursor(Cursor)
use setCursor()
org.eclipse.gef.handles.NonResizableHandleKit.addHandles(GraphicalEditPart, List)
org.eclipse.gef.handles.NonResizableHandleKit.addHandles(GraphicalEditPart, List, DragTracker, Cursor)
org.eclipse.gef.handles.ResizableHandleKit.addHandles(GraphicalEditPart, List)
org.eclipse.gef.requests.ChangeBoundsRequest.getMouseLocation()
Use `ChangeBoundsRequest.getLocation()`
org.eclipse.gef.requests.ChangeBoundsRequest.setMouseLocation(Point)
Use `ChangeBoundsRequest.setLocation(Point)`
org.eclipse.gef.tools.AbstractTool.debug(String)
org.eclipse.gef.ui.parts.AbstractEditPartViewer.removeDragSourceListener(TransferDragSourceListener)
org.eclipse.gef.ui.parts.AbstractEditPartViewer.removeDropTargetListener(TransferDropTargetListener)
org.eclipse.gef.ui.parts.GraphicalViewerImpl.getEventDispatcher()
This method should not be called by subclasses
org.eclipse.gef.ui.parts.GraphicalViewerImpl.getRootFigure()
There is no reason to call this method $TODO delete this method
org.eclipse.gef.ui.parts.GraphicalViewerImpl.setRootFigure(IFigure)
This method should no longer be used.

Deprecated Constructors
Constructor
Description
org.eclipse.gef.dnd.TemplateTransferDragSourceListener(EditPartViewer, Transfer)
Use the constructor without the transfer specified.
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator(List)
this constructor should not be used
org.eclipse.gef.editparts.ZoomManager(ScalableFreeformLayeredPane, Viewport)
Use `ZoomManager(ScalableFigure, Viewport)` instead. Creates a new ZoomManager
org.eclipse.gef.tools.ResizeTracker(int)
use ResizeTracker(GraphicalEditPart, int) instead
org.eclipse.gef.ui.actions.AlignmentAction(IEditorPart, int)
use AlignmentAction(IWorkbenchPart, int align)
org.eclipse.gef.ui.actions.Clipboard()
As of 3.1, the GEF Clipboard synchronizes with the system clipboard. Multiple instances of this class should not be created. Use `Clipboard.getDefault()`. This method will be removed in future releases.
org.eclipse.gef.ui.actions.DeleteAction(IEditorPart)
use DeleteAction(IWorkbenchPart part)
org.eclipse.gef.ui.actions.DeleteAction(IEditorPart, String)
use DeleteAction(IWorkbenchPart)