Package org.springframework.ide.eclipse.config.graph.parts

Examples of org.springframework.ide.eclipse.config.graph.parts.ActivityPart


  }

  @Override
  public void run() {
    IWorkbenchPart editor = getWorkbenchPart();
    ActivityPart part = (ActivityPart) getSelectedObjects().get(0);
    if (editor instanceof AbstractConfigGraphicalEditor) {
      AbstractConfigGraphicalEditor graph = (AbstractConfigGraphicalEditor) editor;
      IDOMElement element = part.getModelElement().getInput();
      int start = element.getStartOffset();
      int length = element.getLength();
      graph.getEditor().getSourcePage().selectAndReveal(start, length);
    }
  }
View Full Code Here


    }
    if (!(constraint instanceof Rectangle)) {
      return null;
    }

    ActivityPart part = (ActivityPart) child;
    Activity activity = part.getModelElement();
    IFigure figure = part.getFigure();
    Rectangle oldBounds = figure.getBounds();
    Rectangle newBounds = (Rectangle) constraint;

    if (oldBounds.width != newBounds.width && newBounds.width != -1) {
      return null;
View Full Code Here

    return (parts.get(0) instanceof ActivityPart);
  }

  @Override
  public void run() {
    ActivityPart part = (ActivityPart) getSelectedObjects().get(0);
    part.showProperties();
  }
View Full Code Here

    input = null;
    IStructuredSelection sel = (IStructuredSelection) selection;
    if (sel != null) {
      Object obj = sel.getFirstElement();
      if (obj instanceof ActivityPart) {
        ActivityPart activity = (ActivityPart) obj;
        obj = activity.getModelElement().getInput();
      }
      if (obj instanceof IDOMElement) {
        if (obj != oldInput) {
          input = (IDOMElement) obj;
        }
View Full Code Here

        if (item.getData() instanceof IDOMElement) {
          input = (IDOMElement) item.getData();
        }
      }
      else if (obj instanceof ActivityPart) {
        ActivityPart activity = (ActivityPart) obj;
        input = activity.getModelElement().getInput();
      }
      else if (obj instanceof TransitionPart) {
        TransitionPart trans = (TransitionPart) obj;
        IDOMNode node = ((Transition) trans.getModel()).getInput();
        if (node instanceof IDOMElement) {
View Full Code Here

    if (object instanceof TreeItem) {
      TreeItem item = (TreeItem) object;
      return mapType(item.getData());
    }
    if (object instanceof ActivityPart) {
      ActivityPart part = (ActivityPart) object;
      Activity model = part.getModelElement();
      return mapType(model.getInput());
    }
    if (object instanceof TransitionPart) {
      TransitionPart part = (TransitionPart) object;
      Transition trans = (Transition) part.getModel();
      return mapType(trans.getInput());
    }
    return super.mapType(object);
  }
View Full Code Here

    String toMatch = null;
    // Too specific to current visual editor implementation. What if future
    // editors don't operate on ActivityPart? There is no common way of
    // getting a label from an EditPart.
    if (item instanceof ActivityPart) {
      ActivityPart part = (ActivityPart) item;
      toMatch = part.getModelElement().getName();
    }

    if (toMatch == null) {
      return false;
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.graph.parts.ActivityPart

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.