//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();