Search in sources :

Example 1 with AddParameterWizard

use of org.yamcs.studio.ui.alphanum.AddParameterWizard in project yamcs-studio by yamcs.

the class AddNewParameterAction method run.

@Override
public void run() {
    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    AddParameterWizard wizard = new AddParameterWizard();
    WizardDialog dialog = new WizardDialog(shell, wizard);
    if (dialog.open() == Window.OK)
        for (ParameterInfo info : wizard.getParameter()) viewer.addParameter(info);
}
Also used : AddParameterWizard(org.yamcs.studio.ui.alphanum.AddParameterWizard) Shell(org.eclipse.swt.widgets.Shell) ParameterInfo(org.yamcs.protobuf.Mdb.ParameterInfo) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Shell (org.eclipse.swt.widgets.Shell)1 ParameterInfo (org.yamcs.protobuf.Mdb.ParameterInfo)1 AddParameterWizard (org.yamcs.studio.ui.alphanum.AddParameterWizard)1