Examples of ReachabilityGraphVC


Examples of org.woped.qualanalysis.reachabilitygraph.gui.ReachabilityGraphVC

    private void deHighlightRG() {
        ReferenceProvider refer = new ReferenceProvider();
        Object[] a = refer.getDesktopReference().getComponents();
        for (int i = 0; i < refer.getDesktopReference().getComponentCount(); i++) {
            if (a[i] instanceof ReachabilityGraphVC) {
                ReachabilityGraphVC rvc = (ReachabilityGraphVC) a[i];

                if (rvc.hasEditor(thisEditor)) {
                    rvc.setUnselectButtonEnabled(thisEditor, false);
                    ((ReachabilityJGraph) rvc.getJGraph(thisEditor)).deHighlight();
                }
                break;
            }
        }
    }
View Full Code Here

Examples of org.woped.qualanalysis.reachabilitygraph.gui.ReachabilityGraphVC

            ParentControl = new ReferenceProvider();
        }
        Object[] a = ParentControl.getDesktopReference().getComponents();
        for (int i = 0; i < ParentControl.getDesktopReference().getComponentCount(); i++) {
            if (a[i] instanceof ReachabilityGraphVC) {
                ReachabilityGraphVC rvc = (ReachabilityGraphVC) a[i];
                if (rvc.hasEditor(thisEditor)) {
                    ((ReachabilityJGraph) rvc.getJGraph(thisEditor)).highlightMarking(mark);
                }
                break;
            }
        }
    }
View Full Code Here

Examples of org.woped.qualanalysis.reachabilitygraph.gui.ReachabilityGraphVC

        if(editor.isTokenGameEnabled()){
          ReachabilityWarning.showReachabilityWarning(desktop, "QuanlAna.ReachabilityGraph.SimulationWarning");
          return;
        }
        JInternalFrame edit = desktop.getSelectedFrame();
        ReachabilityGraphVC toAdd = ReachabilityGraphVC.getInstance(dui);
        if(!desktop.isAncestorOf(toAdd)){
          rg_listener = new ReachabilityGraphVCListener(toAdd, mediator);
          edit.addInternalFrameListener(rg_listener);
          desktop.add(toAdd);
        } else {
          if(!hasAlreadyListener(edit, rg_listener)){
            edit.addInternalFrameListener(rg_listener);
          }
        }
        toAdd.setVisible(true);
        toAdd.validate();
        try { // to activate the JInternalFrame
          toAdd.setSelected(true);
        } catch (PropertyVetoException e) { //  if some component does not like this
          toAdd.moveToFront(); // then move it to front without activating
        }
        if(editor.isReachabilityEnabled()){ // is editor already added to RGVC ??
          toAdd.updatePanelsVisibility(editor);
        } else {
          toAdd.addEditor(editor);
          toAdd.refreshGraph(AbstractReachabilityGraphModel.HIERARCHIC);
        }
//        dui.getToolBar().getReachabilityGraphButton().setEnabled(false);
      }
    }
    LoggerManager.debug(Constants.QUALANALYSIS_LOGGER, "<- processViewEvent " + this.getClass().getName());
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.