Package org.cfeclipse.frameworks.fusebox.dialogs

Examples of org.cfeclipse.frameworks.fusebox.dialogs.AddCurcuitDialog.open()


      //Show the edit FBXApplication dialog
      FBXApplication app = (FBXApplication)obj;
      AddCurcuitDialog addCircuit =  new AddCurcuitDialog(applicationTree.getControl().getShell());
      addCircuit.setCreatefolders(true);
     
      if(addCircuit.open() == IDialogConstants.OK_ID){
        FBXCircuit circ = new FBXCircuit(addCircuit.getCircuitName(), addCircuit.getCircuitPath());
        circ.setCreateFolders(addCircuit.isCreatefolders());
        app.addChild(circ);
        //now we have set it, refresh the tree?
        applicationTree.refresh();
View Full Code Here


    IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();
    FBXApplication app  = (FBXApplication)selection.getFirstElement();
    //Here we create a dialog and pass the items to the app
    AddCurcuitDialog dialog = new AddCurcuitDialog(this.getViewSite().getShell());
   
    if(dialog.open() == IDialogConstants.OK_ID){
      app.addCircuit(dialog.getCircuitName(), dialog.getCircuitPath(), dialog.isCreatefolders());
    }
   
   
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.