use of com.amalto.workbench.models.TreeObject in project tmdm-studio-se by Talend.
the class XObjectEditor method addPages.
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.forms.editor.FormEditor#addPages()
*/
@Override
protected void addPages() {
updateTitle();
TreeObject xobject = (TreeObject) ((XObjectEditorInput) this.getEditorInput()).getModel();
// backup initial object
this.initialXObject = new TreeObject(xobject.getDisplayName(), xobject.getServerRoot(), xobject.getType(), xobject.getWsKey(), xobject.getWsObject(), xobject.getAdditionalInfo());
if (!xobject.isXObject()) {
return;
}
// register model listener
xobject.addListener(this);
// available models
java.util.List<IAvailableModel> availablemodels = AvailableModelUtil.getAvailableModels(isLocalInput());
for (IAvailableModel model : availablemodels) {
model.addPage(xobject, this);
}
addPageForXObject(xobject);
}
use of com.amalto.workbench.models.TreeObject in project tmdm-studio-se by Talend.
the class AFormPage method commitChanges.
/**
* Commit changes back to the model - must be called by the listeners
*
* @param onSave
*/
protected void commitChanges() {
this.comitting = true;
if (!this.refreshing) {
TreeObject xobject = (TreeObject) this.getEditor().getEditorInput().getAdapter(XObjectEditor.class);
commit();
if (xobject.getParent() != null) {
// e.g. not standalone but part
// of model
xobject.fireEvent(IXObjectModelListener.UPDATE, xobject.getParent(), xobject);
}
}
this.comitting = false;
}
use of com.amalto.workbench.models.TreeObject in project tmdm-studio-se by Talend.
the class ViewBrowserInput method init.
protected void init(Item item) {
MDMServerObject serverObject = ((MDMServerObjectItem) item).getMDMServerObject();
Object treeObject = Bean2EObjUtil.getInstance().wrapEObjWithTreeObject(serverObject);
setModel(treeObject);
setName(serverObject.getName());
}
use of com.amalto.workbench.models.TreeObject in project tmdm-studio-se by Talend.
the class XObjectBrowserInput2 method init.
protected void init(Item item) {
MDMServerObject serverObject = ((MDMServerObjectItem) item).getMDMServerObject();
Object treeObject = Bean2EObjUtil.getInstance().wrapEObjWithTreeObject(serverObject);
setModel(treeObject);
setName(serverObject.getName());
}
use of com.amalto.workbench.models.TreeObject in project tmdm-studio-se by Talend.
the class XObjectEditorInput2 method init.
protected void init(Item item) {
MDMServerObject serverObject = ((MDMServerObjectItem) item).getMDMServerObject();
Object treeObject = Bean2EObjUtil.getInstance().wrapEObjWithTreeObject(serverObject);
setModel(treeObject);
setName(serverObject.getName());
}
Aggregations