Package org.cfeclipse.frameworks.fusebox.dialogs

Examples of org.cfeclipse.frameworks.fusebox.dialogs.AddCurcuitDialog


    Object obj = ((IStructuredSelection)selection).getFirstElement();
   
    if (obj instanceof FBXApplication){
      //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


  public void addCircuit(){
    //We need to get the slected object and test it
    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

Related Classes of org.cfeclipse.frameworks.fusebox.dialogs.AddCurcuitDialog

Copyright © 2018 www.massapicom. 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.