Examples of CreateElementRequestAdapter


Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3014) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.GeneralizationSetAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3034) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.QuantityAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3029) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.CollectiveAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3037) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.RoleMixinAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3036) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.RoleAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3038) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.SimpleDatatypeAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

    installEditPolicy(EditPolicyRoles.CREATION_ROLE,
        new CreationEditPolicy() {
          public Command getCommand(Request request) {
            if (understandsRequest(request)) {
              if (request instanceof CreateViewAndElementRequest) {
                CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
                    .getViewAndElementDescriptor()
                    .getCreateElementRequestAdapter();
                IElementType type = (IElementType) adapter
                    .getAdapter(IElementType.class);
                if (type == OntoUML.diagram.providers.OntoUMLElementTypes.Property_3030) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.KindAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

  /**
   * @generated
   */
  public EditPart getTargetEditPart(Request request) {
    if (request instanceof CreateViewAndElementRequest) {
      CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
          .getViewAndElementDescriptor()
          .getCreateElementRequestAdapter();
      IElementType type = (IElementType) adapter
          .getAdapter(IElementType.class);
      if (type == eu.admire.visual.pmml._40.diagram.providers.PMMLElementTypes.ChildParentType_3004) {
        return getChildBySemanticHint(eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
            .getType(eu.admire.visual.pmml._40.diagram.edit.parts.TaxonomyTypeChildParentCompartmentEditPart.VISUAL_ID));
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

  /**
   * @generated
   */
  public EditPart getTargetEditPart(Request request) {
    if (request instanceof CreateViewAndElementRequest) {
      CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
          .getViewAndElementDescriptor()
          .getCreateElementRequestAdapter();
      IElementType type = (IElementType) adapter
          .getAdapter(IElementType.class);
      if (type == eu.admire.visual.pmml._40.diagram.providers.PMMLElementTypes.DataFieldType_3001) {
        return getChildBySemanticHint(eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
            .getType(eu.admire.visual.pmml._40.diagram.edit.parts.DataDictionaryTypeDataFieldCompartmentEditPart.VISUAL_ID));
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter

  /**
   * @generated
   */
  public EditPart getTargetEditPart(Request request) {
    if (request instanceof CreateViewAndElementRequest) {
      CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest) request)
          .getViewAndElementDescriptor()
          .getCreateElementRequestAdapter();
      IElementType type = (IElementType) adapter
          .getAdapter(IElementType.class);
      if (type == eu.admire.visual.pmml._40.diagram.providers.PMMLElementTypes.ValueType_3002) {
        return getChildBySemanticHint(eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
            .getType(eu.admire.visual.pmml._40.diagram.edit.parts.DataFieldTypeValueCompartmentEditPart.VISUAL_ID));
      }
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.