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_2010) {
                  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_2003) {
                  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

    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_3031) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.MixinAttributeCompartmentEditPart.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_2002) {
                  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_2007) {
                  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_3028) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.CategoryAttributeCompartmentEditPart.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_2008) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.RelatorAttributeCompartmentEditPart.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_2004) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.MixinAttributeCompartmentEditPart.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_2006) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.PhaseAttributeCompartmentEditPart.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_2013) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.SubKindAttributeCompartmentEditPart.VISUAL_ID));
                  return compartmentEditPart == null ? null
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.