public void setInput(IADTObject object) { RootContentEditPart rootContentEditPart = (RootContentEditPart) getRootEditPart().getContents(); rootContentEditPart.setModel(object); rootContentEditPart.refresh(); if (object != null) { inputChangeManager.setSelection(new StructuredSelection(object)); } // Select the editpart when it is set as input EditPart editPart = getEditPart(rootContentEditPart, object); if (editPart != null) select(editPart); }
public IADTObject getInput() { RootContentEditPart rootContentEditPart = (RootContentEditPart) getRootEditPart().getContents(); return (IADTObject) rootContentEditPart.getModel(); }