Object obj = ((IStructuredSelection) main.getViewer().getSelection()).
getFirstElement();
if (!(obj instanceof ScalableRootEditPart))
{
GraphObject model =
(GraphObject) ((AbstractEditPart) obj).getModel();
if (model instanceof EdgeModel)
{
EdgeInspector.getInstance(model, "Edge", main);