use of org.talend.mdm.repository.ui.editors.XObjectEditorInput2 in project tmdm-studio-se by Talend.
the class RepositoryNodeActionProviderAdapter method getOpenEditorInput.
/**
* The child class can override this method, current implement is adapt to most of MDMServerobject
*/
@Override
public IRepositoryViewEditorInput getOpenEditorInput(IRepositoryViewObject viewObj) {
Item item = viewObj.getProperty().getItem();
MDMServerObject serverObject = ((MDMServerObjectItem) item).getMDMServerObject();
if (serverObject.getType() == TreeObject.DATA_CLUSTER) {
// Data Cluster
return new XObjectBrowserInput2(viewObj);
}
return new XObjectEditorInput2(viewObj);
}
Aggregations