use of org.eclipse.wst.xsd.ui.internal.adt.design.editparts.IAutoDirectEdit in project webtools.sourceediting by eclipse.
the class XSDBaseAction method doEdit.
protected void doEdit(Object obj, IWorkbenchPart part) {
if (obj instanceof TopLevelComponentEditPart) {
TopLevelComponentEditPart editPart = (TopLevelComponentEditPart) obj;
if (addedComponent == ((XSDBaseAdapter) editPart.getModel()).getTarget()) {
editPart.setScroll(true);
editPart.addFeedback();
editPart.doEditName(!(part instanceof ContentOutline));
}
} else if (obj instanceof BaseFieldEditPart) {
BaseFieldEditPart editPart = (BaseFieldEditPart) obj;
editPart.doEditName(!(part instanceof ContentOutline));
} else if (obj instanceof IAutoDirectEdit) {
((IAutoDirectEdit) obj).doEditName(!(part instanceof ContentOutline));
}
}
Aggregations