Package org.eclipse.graphiti.platform

Examples of org.eclipse.graphiti.platform.IDiagramContainer


              IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
              if (bp != null && bp.isEnabled()) {
                bp.setEnabled(false);
              }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
                    shell = ((RiderDesignEditor) container).getEditorSite().getShell();
                } else {
                    shell = Display.getCurrent().getActiveShell();
View Full Code Here


                  // finally create the endpoint
              CamelDebugUtils.createAndRegisterConditionalBreakpoint(resource, _ep, projectName, fileName, language, condition)
                }
            }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
                    shell = ((RiderDesignEditor) container).getEditorSite().getShell();
                } else {
                    shell = Display.getCurrent().getActiveShell();
View Full Code Here

              IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
              if (bp != null && bp.isEnabled() == false) {
                bp.setEnabled(true);
              }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
                    shell = ((RiderDesignEditor) container).getEditorSite().getShell();
                } else {
                    shell = Display.getCurrent().getActiveShell();
View Full Code Here

              if (userWantsUpdate == null || userWantsUpdate == true) {
                // finally create the endpoint
            CamelDebugUtils.createAndRegisterEndpointBreakpoint(resource, _ep, projectName, fileName)
              }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
                    shell = ((RiderDesignEditor) container).getEditorSite().getShell();
                } else {
                    shell = Display.getCurrent().getActiveShell();
View Full Code Here

  public boolean canExecute(ICustomContext context) {
    return isAvailable(context);
  }
 
  protected IResource getResource() {
        final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
        if (container instanceof RiderDesignEditor) {
            return ((RiderDesignEditor) container).getCamelContextFile();
        }
        return null;
    }
View Full Code Here

   *
   * @param node
   * @return
   */
  protected boolean askForIDUpdate(AbstractNode node) {
    final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
        final Shell shell;
        if (container instanceof RiderDesignEditor) {
            shell = ((RiderDesignEditor) container).getEditorSite().getShell();
        } else {
            shell = Display.getCurrent().getActiveShell();
View Full Code Here

  public boolean hasDoneChanges() {
    return false;
  }
 
  protected void saveEditor() throws CoreException {
    final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
        RiderDesignEditor editor = null;
    if (container instanceof RiderDesignEditor) {
            editor = (RiderDesignEditor) container;
        } else {
            throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Can't find the editor to set the breakpoint!"));
View Full Code Here

                IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
                if (bp != null) {
                  bp.delete();
                }
            } catch (CoreException e) {
              final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
                    shell = ((RiderDesignEditor) container).getEditorSite().getShell();
                } else {
                    shell = Display.getCurrent().getActiveShell();
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.platform.IDiagramContainer

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.