use of org.eclipse.wst.xsd.ui.internal.adt.edit.ComponentReferenceEditManager2 in project webtools.sourceediting by eclipse.
the class TypeReferenceDirectEditManager method getComponentReferenceEditManager.
protected ComponentReferenceEditManager getComponentReferenceEditManager() {
ComponentReferenceEditManager result = null;
IEditorPart editor = getActiveEditor();
if (editor != null) {
result = (ComponentReferenceEditManager) editor.getAdapter(XSDTypeReferenceEditManager.class);
if (result instanceof ComponentReferenceEditManager2) {
ComponentReferenceEditManager2 manager = (ComponentReferenceEditManager2) result;
manager.setReferencer(setObject);
}
}
return result;
}
Aggregations