/* * (non-Javadoc) * * @see muvitorkit.gef.editparts.AdapterGraphicalEditPart#performOpen() */ @Override protected void performOpen() { Unit parent = null; if (getParent().getModel() instanceof TransformationUnitPart<?>) { parent = ((TransformationUnitPart<?>) getParent().getModel()).getModel(); } else { parent = (Unit) getParent().getModel(); } transUnitPage.nextTransUnit(parent, getCastedModel()); }
/** * Sets the model activated. * * @param activated the activated * @return true, if successful */ public boolean setModelActivated(boolean activated) { transUnitPage.setActivated(getCastedModel(), activated); return getCastedModel().isActivated(); }