Package vg.core.request

Examples of vg.core.request.UIRequestReplaceCurrentTab


    newView.setInvisibleEdges(invibleEdges);
    if(this.actionMode == DEF_ACTION_MODE_1) {
      UIRequestOpenSubGraph request = new UIRequestOpenSubGraph("[" + ssg.getId() + "]", "", newView, this.owner);
      this.param.userInterface.addRequest(request);
    } else {
      UIRequestReplaceCurrentTab request = new UIRequestReplaceCurrentTab("[" + ssg.getId() + "]", "", newView, this.owner);
      this.param.userInterface.addRequest(request);     
    }
  }
View Full Code Here


          IGraphView igv = GraphView.newGraphView(this.currentView.getStorableSubGraph(), this.parameter.userInterface);
          if(!this.vertexConditionCheckBox.isSelected()) lviids = null;
          if(!this.edgeConditionCheckBox.isSelected()) leiids = null;
          igv.setInvisibleVertices(lviids);
          igv.setInvisibleEdges(leiids);
          UIRequestReplaceCurrentTab requestOpenSubGraph = new UIRequestReplaceCurrentTab(igv, null);
          this.parameter.userInterface.addRequest(requestOpenSubGraph);
          break;
        }
        case DEF_ACTION_MODE_3: {
          if(this.currentView != null) {
View Full Code Here

          showAdditionalAttribute(igv);
          if(this.model.getActionMode() == SearchPanelModel.DEF_ACTION_MODE_1) {
            UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
            this.parameter.userInterface.addRequest(req);
          } else {
            UIRequestReplaceCurrentTab req = new UIRequestReplaceCurrentTab(igv, null);
            this.parameter.userInterface.addRequest(req);         
          }       
        } else {
          VisualGraph.windowMessage.warningMessage("Selection should be subgraph, if you want to open subgraph in new tab", "Opening of subgraph");       
        }
View Full Code Here

        showAdditionalAttribute(igv);
        if(this.model.getActionMode() == SearchPanelModel.DEF_ACTION_MODE_1) {
          UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
          this.parameter.userInterface.addRequest(req);
        } else {
          UIRequestReplaceCurrentTab req = new UIRequestReplaceCurrentTab(igv, null);
          this.parameter.userInterface.addRequest(req);
        }
      }
    } else {
      VisualGraph.log.printDebug("[" + this.getClass().getName()+".actionPerformed] [BAD] Openning of composition of vertexes in new tab(from navigator).");
View Full Code Here

            IUIRequestOwner bufOwner = request.getOwner();
            if(bufOwner != null) {
              bufOwner.callRequestOwner(new AUIRequest(EUIRequestType.PROCESS, null) {});
            }
            // execute query
            UIRequestReplaceCurrentTab req = (UIRequestReplaceCurrentTab)request;
            int index = this.tabs.getSelectedIndex();
            if(index >= 0) {
              for(Integer buf : this.comTabIdAndTab.keySet()) {
                Integer value = this.comTabIdAndTab.get(buf);
                if(value != null && value.equals(index)) {
                  closeTab(buf);
                  IGraphView igv = req.getSubGraphView();
                  if(igv != null) {
                    addTab(igv.getTitle(), igv);
                  }
                  break;
                }
View Full Code Here

TOP

Related Classes of vg.core.request.UIRequestReplaceCurrentTab

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.