67686970717273747576
/** * @see org.eclipse.gef.editpolicies.NonResizableEditPolicy#hideFocus() */ protected void hideFocus() { IShapeFigure f = getShapeFigure(); if (f != null) { f.setFocus(false); } }
777879808182838485868788
/** * @see org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy#hideSelection() */ protected void hideSelection() { IShapeFigure f = getShapeFigure(); if (f != null) { f.setSelected(false); f.setFocus(false); removeSelectionHandles(); } }
89909192939495969798
/** * @see org.eclipse.gef.editpolicies.NonResizableEditPolicy#showFocus() */ protected void showFocus() { IShapeFigure f = getShapeFigure(); if (f != null) { f.setFocus(true); } }
99100101102103104105106107108109110
/** * @see org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy#showSelection() */ protected void showPrimarySelection() { IShapeFigure f = getShapeFigure(); if (f != null) { f.setSelected(true); f.setFocus(true); addSelectionHandles(); } }
111112113114115116117118119120121122
/** * @see org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy#showSelection() */ protected void showSelection() { IShapeFigure f = getShapeFigure(); if (f != null) { f.setSelected(true); f.setFocus(false); addSelectionHandles(); } }
123124125126127128129130131132133
return null; } @Override protected void showFocus() { IShapeFigure shapeFigure = getNodeFigure(); if (shapeFigure != null) { shapeFigure.setFocus(true); } }
133134135136137138139140141142143144145
} @Override protected void hideSelection() { IShapeFigure shapeFigure = getNodeFigure(); if (shapeFigure != null) { shapeFigure.setSelected(false); shapeFigure.setFocus(false); removeSelectionHandles(); } }
145146147148149150151152153154155156157
} @Override protected void showPrimarySelection() { IShapeFigure shapeFigure = getNodeFigure(); if (shapeFigure != null) { shapeFigure.setSelected(true); shapeFigure.setFocus(true); addSelectionHandles(); } }
157158159160161162163164165166167168169
} @Override protected void showSelection() { IShapeFigure shapeFigure = getNodeFigure(); if (shapeFigure != null) { shapeFigure.setSelected(true); shapeFigure.setFocus(false); addSelectionHandles(); } }
6364656667686970717273
} @Override protected void hideFocus() { IShapeFigure shapeFigure = getNodeFigure(); if (shapeFigure != null) { shapeFigure.setFocus(false); } }