Examples of RiderEditor


Examples of org.fusesource.ide.camel.editor.editor.RiderEditor

    if (window != null) {
      IWorkbenchPage activePage = window.getActivePage();
      if (activePage != null) {
        IEditorPart activeEditor = activePage.getActiveEditor();
        if (activeEditor instanceof RiderEditor) {
          RiderEditor editor = (RiderEditor) activeEditor;
          RiderDesignEditor designEditor = editor.getDesignEditor();
          if (designEditor != null) {
            Route route = new Route();
            designEditor.getModel().addChild(route);
            designEditor.setSelectedRoute(route);
          }
View Full Code Here

Examples of org.fusesource.ide.camel.editor.editor.RiderEditor

            // and also if the active editor is equal to the ref editor otherwise we might pick
            // a wrong editor and return it...bad thing
            if (ref.getId().equals(RIDER_EDITOR_ID) &&
              page.getActiveEditor().equals(ref.getEditor(false))) {
              // ok, we found a route editor and it is also the acitve editor
              RiderEditor ed = (RiderEditor)ref.getEditor(true);
              // so return it
              return ed.getDesignEditor();
            }
          }
        }
      }
    }
View Full Code Here

Examples of org.fusesource.ide.camel.editor.editor.RiderEditor

    if (window != null) {
      IWorkbenchPage activePage = window.getActivePage();
      if (activePage != null) {
        IEditorPart activeEditor = activePage.getActiveEditor();
        if (activeEditor instanceof RiderEditor) {
          RiderEditor editor = (RiderEditor) activeEditor;
          RiderDesignEditor designEditor = editor.getDesignEditor();
          if (designEditor != null) {
            DiagramOperations.deleteRoute(designEditor, designEditor.getSelectedRoute());
            if (designEditor.getModel().getChildren().size() < 1) {
              designEditor.addNewRoute();
            }
View Full Code Here

Examples of org.fusesource.ide.camel.editor.editor.RiderEditor

    if (window != null) {
      IWorkbenchPage activePage = window.getActivePage();
      if (activePage != null) {
        IEditorPart activeEditor = activePage.getActiveEditor();
        if (activeEditor instanceof RiderEditor) {
          RiderEditor editor = (RiderEditor) activeEditor;
          RiderDesignEditor designEditor = editor.getDesignEditor();
          if (designEditor != null) {
            designEditor.autoLayoutRoute();
          }
        }
      }
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.