use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DesignDocumentTreeObject in project convertigo by convertigo.
the class CreateDesignDocumentUpdateAction method selectionChanged.
public void selectionChanged(IAction action, ISelection selection) {
super.selectionChanged(action, selection);
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
TreeObject treeObject = (TreeObject) structuredSelection.getFirstElement();
if (treeObject instanceof DesignDocumentTreeObject) {
action.setText(((DesignDocumentTreeObject) treeObject).getDefaultUpdateName());
}
}
use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DesignDocumentTreeObject in project convertigo by convertigo.
the class CreateDesignDocumentValidateAction method run.
public void run() {
Display display = Display.getDefault();
Cursor waitCursor = new Cursor(display, SWT.CURSOR_WAIT);
Shell shell = getParentShell();
shell.setCursor(waitCursor);
try {
ProjectExplorerView explorerView = getProjectExplorerView();
if (explorerView != null) {
DesignDocumentTreeObject ddto = (DesignDocumentTreeObject) explorerView.getFirstSelectedTreeObject();
DesignDocumentValidateTreeObject ddvto = ddto.addNewValidate();
if (ddto.hasChanged()) {
TreeParent treeParent = ddto.getParent();
if (treeParent instanceof FolderTreeObject)
treeParent = treeParent.getParent();
explorerView.objectChanged(new CompositeEvent(treeParent.getObject(), ddvto.getPath()));
}
}
} catch (Throwable e) {
ConvertigoPlugin.logException(e, "Unable to create a new Validate!");
} finally {
shell.setCursor(null);
waitCursor.dispose();
}
}
use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DesignDocumentTreeObject in project convertigo by convertigo.
the class CreateDesignDocumentFilterAction method selectionChanged.
public void selectionChanged(IAction action, ISelection selection) {
super.selectionChanged(action, selection);
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
TreeObject treeObject = (TreeObject) structuredSelection.getFirstElement();
if (treeObject instanceof DesignDocumentTreeObject) {
action.setText(((DesignDocumentTreeObject) treeObject).getDefaultFilterName());
}
}
use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DesignDocumentTreeObject in project convertigo by convertigo.
the class CreateDesignDocumentValidateAction method selectionChanged.
public void selectionChanged(IAction action, ISelection selection) {
super.selectionChanged(action, selection);
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
TreeObject treeObject = (TreeObject) structuredSelection.getFirstElement();
if (treeObject instanceof DesignDocumentTreeObject) {
action.setText(((DesignDocumentTreeObject) treeObject).getDefaultValidateName());
}
}
use of com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DesignDocumentTreeObject in project convertigo by convertigo.
the class CreateDesignDocumentViewAction method selectionChanged.
public void selectionChanged(IAction action, ISelection selection) {
super.selectionChanged(action, selection);
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
TreeObject treeObject = (TreeObject) structuredSelection.getFirstElement();
if (treeObject instanceof DesignDocumentTreeObject) {
action.setText(((DesignDocumentTreeObject) treeObject).getDefaultViewName());
}
}
Aggregations