Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.Style


  /**
   * Assert that the given edit part is openable, that is, it has an Open Diagram Hint
   */
  public void assertOpenable(ShapeNodeEditPart part) {
    View view = (View) part.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (link == null || !(link instanceof HintedDiagramLinkStyle))
      fail("part '" + part + "' is not a shortcut, it should be (link=" + link + ")");
  }
View Full Code Here


  /**
   * Assert that the given edit part is not openable, that is, it does not have an Open Diagram Hint
   */
  public void assertNotOpenable(ShapeNodeEditPart part) {
    View view = (View) part.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (!(link == null || !(link instanceof HintedDiagramLinkStyle)))
      fail("part '" + part + "' is not a shortcut, it should be (link=" + link + ")");
  }
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

    EditPart targetEditPart = getTargetEditPart(request);
    if (false == targetEditPart.getModel() instanceof View) {
      return null;
    }
    View view = (View) targetEditPart.getModel();
    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.notation.Style

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.