Search in sources :

Example 1 with ContextWizard

use of org.talend.metadata.managment.ui.wizard.context.ContextWizard in project tdi-studio-se by Talend.

the class EditContextAction method doRun.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.action.Action#run()
     */
@Override
protected void doRun() {
    if (repositoryNode == null) {
        repositoryNode = getCurrentRepositoryNode();
    }
    ContextWizard contextWizard = new ContextWizard(PlatformUI.getWorkbench(), false, repositoryNode, false);
    WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), contextWizard);
    dlg.open();
}
Also used : ContextWizard(org.talend.metadata.managment.ui.wizard.context.ContextWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Example 2 with ContextWizard

use of org.talend.metadata.managment.ui.wizard.context.ContextWizard in project tdi-studio-se by Talend.

the class ReadContextAction method doRun.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.action.Action#run()
     */
protected void doRun() {
    if (repositoryNode == null) {
        repositoryNode = getCurrentRepositoryNode();
    }
    ContextWizard contextWizard = new ContextWizard(PlatformUI.getWorkbench(), false, repositoryNode, true);
    WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), contextWizard);
    dlg.open();
    RepositoryNode node = (RepositoryNode) ((IStructuredSelection) getSelection()).getFirstElement();
    refresh(node);
}
Also used : ContextWizard(org.talend.metadata.managment.ui.wizard.context.ContextWizard) RepositoryNode(org.talend.repository.model.RepositoryNode) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Example 3 with ContextWizard

use of org.talend.metadata.managment.ui.wizard.context.ContextWizard in project tdi-studio-se by Talend.

the class CreateContextAction method doRun.

@Override
protected void doRun() {
    if (repositoryNode == null) {
        repositoryNode = getCurrentRepositoryNode();
    }
    ContextWizard contextWizard = new ContextWizard(PlatformUI.getWorkbench(), true, repositoryNode, false);
    WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), contextWizard);
    dlg.open();
    RepositoryNode node = (RepositoryNode) ((IStructuredSelection) getSelection()).getFirstElement();
}
Also used : ContextWizard(org.talend.metadata.managment.ui.wizard.context.ContextWizard) RepositoryNode(org.talend.repository.model.RepositoryNode) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)3 ContextWizard (org.talend.metadata.managment.ui.wizard.context.ContextWizard)3 RepositoryNode (org.talend.repository.model.RepositoryNode)2