Search in sources :

Example 1 with ComponentReferenceEditManager2

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;
}
Also used : ComponentReferenceEditManager(org.eclipse.wst.xsd.ui.internal.adt.edit.ComponentReferenceEditManager) IEditorPart(org.eclipse.ui.IEditorPart) ComponentReferenceEditManager2(org.eclipse.wst.xsd.ui.internal.adt.edit.ComponentReferenceEditManager2)

Aggregations

IEditorPart (org.eclipse.ui.IEditorPart)1 ComponentReferenceEditManager (org.eclipse.wst.xsd.ui.internal.adt.edit.ComponentReferenceEditManager)1 ComponentReferenceEditManager2 (org.eclipse.wst.xsd.ui.internal.adt.edit.ComponentReferenceEditManager2)1