Examples of DiagramEditor


Examples of org.eclipse.graphiti.ui.editor.DiagramEditor

    // Determine the part the property sheet page is in
    final IWorkbenchPart part = tabbedPropertySheetPage.getSite().getWorkbenchWindow().getPartService().getActivePart();

    // If the part is a diagram editor, get the project from the diagram
    if (part instanceof DiagramEditor) {
      final DiagramEditor editor = (DiagramEditor) part;
      final IProject project = ActivitiUiUtil.getProjectFromDiagram(editor.getDiagramTypeProvider().getDiagram());

      // Determine the custom service tasks using the project found
      return getCustomServiceTasks(project);
    }
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(StructureDiagram diagram) {
    currentEditor = new DiagramEditor(this, diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
    JPanel editorPanel = new JPanel(new BorderLayout());
    spane.getVerticalScrollBar().setUnitIncrement(10);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(UmlDiagram diagram) {
    currentEditor = new DiagramEditor(this, diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
    JPanel editorPanel = new JPanel(new BorderLayout());
    spane.getVerticalScrollBar().setUnitIncrement(10);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(UmlDiagram diagram) {
    currentEditor = new DiagramEditor(diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
    JPanel editorPanel = new JPanel(new BorderLayout());
    spane.getVerticalScrollBar().setUnitIncrement(10);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(StructureDiagram diagram) {
    currentEditor = new DiagramEditor(this, diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    currentEditor.addAppCommandListener(editorDispatcher);
    currentEditor.addAppCommandListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(UmlDiagram diagram) {
    this.currentEditor = new DiagramEditor(diagram, elementFactory);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
    JPanel editorPanel = new JPanel(new BorderLayout());
    spane.getVerticalScrollBar().setUnitIncrement(10);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(StructureDiagram diagram) {
    currentEditor = new DiagramEditor(this, diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    currentEditor.addAppCommandListener(editorDispatcher);
    currentEditor.addAppCommandListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

   * Creates an editor for the specified diagram and adds it to the tabbed
   * pane.
   * @param diagram the diagram
   */
  private void createEditor(UmlDiagram diagram) {
    currentEditor = new DiagramEditor(diagram);
    currentEditor.addEditorStateListener(this);
    currentEditor.addSelectionListener(this);
    JScrollPane spane = new JScrollPane(currentEditor);
    JPanel editorPanel = new JPanel(new BorderLayout());
    spane.getVerticalScrollBar().setUnitIncrement(10);
View Full Code Here

Examples of org.tinyuml.ui.diagram.DiagramEditor

  public void handleCommand(String command) {
    MethodCall methodcall = selectorMap.get(command);
    if (methodcall != null) {
      methodcall.call(this);
    } else {
      DiagramEditor editor = getCurrentEditor();
      if (editor != null) editor.handleCommand(command);
    }
  }
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.