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_3033) {
                  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_2012) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.StructuralDatatypeAttributeCompartmentEditPart.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_3040) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.SubKindAttributeCompartmentEditPart.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_2009) {
                  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_2011) {
                  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_2001) {
                  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_3032) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.ModeAttributeCompartmentEditPart.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_3039) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.StructuralDatatypeAttributeCompartmentEditPart.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_2005) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.ModeAttributeCompartmentEditPart.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_3035) {
                  EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
                      .getType(OntoUML.diagram.edit.parts.RelatorAttributeCompartmentEditPart.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.