Package fbench.graph.popup

Examples of fbench.graph.popup.ContextMenu


                FBTypeDialog fbTypeDialog = new FBTypeDialog(getElement(), evt);
                fbTypeDialog.create("Edit Event");
              }
            }
            else if(evt.getButton() == MouseEvent.BUTTON3){
              ContextMenu contextMenu = new ContextMenu(getElement(), evt);
              contextMenu.create(getElement().getNodeName());
            }
          }
         
          public void mousePressed(MouseEvent evt){
            currentMouseButton = evt.getButton();


      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        FBNetworkDialog fbNetworkDialog = new FBNetworkDialog(getElement(), evt);
        fbNetworkDialog.create("Edit Connection");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        ECCDialog eccDialog = new ECCDialog(elem, evt);
        eccDialog.create("Edit Transition");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

          System.out.println("GraphView."+element.getNodeName());
          Element fbNetworkElem = (Element) (element.getNodeName().equals("Resource")
              ? element.getFirstChild() : element);
          if(fbNetworkElem != null){
            String elementName = fbNetworkElem.getNodeName();
            ContextMenu contextMenu = new ContextMenu(fbNetworkElem, evt);
            contextMenu.create(elementName);
          }
        }
      }
    });
  }

      //ex.printStackTrace();
      fbNetworkElem = element;
      elementName = fbNetworkElem.getNodeName();
    }
    System.out.println("GraphView."+elementName);
    ContextMenu contextMenu = new ContextMenu(fbNetworkElem, evt);
    contextMenu.create(elementName)
  }

              Element el = selectedNode.getElement();
              java.lang.System.out.println("[DOMT] Element: " + el.getNodeName());
              if(FBench.getTreeMenus().containsKey(el.getNodeName())) {
                java.lang.System.out.println("[DOMT] Element: " + el.getNodeName()
                    + " has a menu");
                ContextMenu menu = new ContextMenu(el, mouseEvent);
                menu.create(el.getNodeName());
              }
             
              mouseEvent = null;
              mouseButton = -1;
            }

      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        ECCDialog eccDialog = new ECCDialog(elem, evt);
        eccDialog.create("Edit State");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

      if(evt.getButton() == MouseEvent.BUTTON1 && evt.getClickCount() == 2){
        FBNetworkDialog fbNetworkDialog = new FBNetworkDialog(elem, evt);
        fbNetworkDialog.create("Edit Function Block");
      }
      else if(evt.getButton() == MouseEvent.BUTTON3){
        ContextMenu contextMenu = new ContextMenu(getElement(), evt);
        contextMenu.create(getElement().getNodeName());
      }
    }
  }

TOP

Related Classes of fbench.graph.popup.ContextMenu

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.