Package org.openbp.cockpit.modeler.drawing

Examples of org.openbp.cockpit.modeler.drawing.DrawingEditorPlugin


      visualStatus &= ~ VisualElement.VISUAL_DND_PARTICIPANT;
    }

    else if (event.type == VisualElementEvent.DOUBLE_CLICK)
    {
      DrawingEditorPlugin editor = getDrawing().getEditor();
      if (editor instanceof Modeler)
      {
        // Display parameter value wizard if appropriate
        ParamValueWizard.displayParameterValueWizard((Modeler) editor, (NodeFigure) getParent(), socket.getName(), null);
        return true;
View Full Code Here


  public boolean handleEvent(VisualElementEvent event)
  {
    if (event.type == VisualElementEvent.DOUBLE_CLICK)
    {
      DrawingEditorPlugin editor = getDrawing().getEditor();

      editor.startUndo("Remove Link Control Point");

      if (!joinSegments(event.x, event.y))
      {
        splitSegment(event.x, event.y);

        ModelerUndoable undoable = (ModelerUndoable) ((Modeler) editor).getCurrentUndoable();
        undoable.setDisplayName("Add Link Control Point");
      }

      editor.view().toggleSelection(this);
      editor.view().toggleSelection(this);

      editor.endUndo();

      layoutConnection();

      return true;
    }
View Full Code Here

    }

    tracking = false;

    // Focus the editor workspace
    DrawingEditorPlugin editor = (DrawingEditorPlugin) miniView.editor();
    editor.focusPlugin();
  }
View Full Code Here

      return true;
    }

    else if (event.type == VisualElementEvent.DOUBLE_CLICK)
    {
      DrawingEditorPlugin editor = getDrawing().getEditor();
      if (editor instanceof Modeler)
      {
        // Display parameter value wizard if appropriate
        SocketFigure socketFigure = (SocketFigure) getParent();
        ParamValueWizard.displayParameterValueWizard((Modeler) editor, (NodeFigure) socketFigure.getParent(), socketFigure.getNodeSocket().getName(), nodeParam.getName());
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.drawing.DrawingEditorPlugin

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.