Package org.eclipse.gmf.runtime.emf.type.core

Examples of org.eclipse.gmf.runtime.emf.type.core.IElementType


   * @generated
   */
  protected void doConfigure(org.dmg.pmml._40.DataDictionaryType newElement,
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    IElementType elementType = ((CreateElementRequest) getRequest())
        .getElementType();
    ConfigureRequest configureRequest = new ConfigureRequest(
        getEditingDomain(), newElement, elementType);
    configureRequest.setClientContext(((CreateElementRequest) getRequest())
        .getClientContext());
    configureRequest.addParameters(getRequest().getParameters());
    ICommand configureCommand = elementType
        .getEditCommand(configureRequest);
    if (configureCommand != null && configureCommand.canExecute()) {
      configureCommand.execute(monitor, info);
    }
  }
View Full Code Here


   * @generated
   */
  protected void doConfigure(org.dmg.pmml._40.InlineTableType newElement,
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    IElementType elementType = ((CreateElementRequest) getRequest())
        .getElementType();
    ConfigureRequest configureRequest = new ConfigureRequest(
        getEditingDomain(), newElement, elementType);
    configureRequest.setClientContext(((CreateElementRequest) getRequest())
        .getClientContext());
    configureRequest.addParameters(getRequest().getParameters());
    ICommand configureCommand = elementType
        .getEditCommand(configureRequest);
    if (configureCommand != null && configureCommand.canExecute()) {
      configureCommand.execute(monitor, info);
    }
  }
View Full Code Here

  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

      request
          .setParameter(
              eu.admire.visual.pmml._40.diagram.edit.helpers.PMMLBaseEditHelper.EDIT_POLICY_COMMAND,
              command);
    }
    IElementType requestContextElementType = getContextElementType(request);
    request
        .setParameter(
            eu.admire.visual.pmml._40.diagram.edit.helpers.PMMLBaseEditHelper.CONTEXT_ELEMENT_TYPE,
            requestContextElementType);
    ICommand command = requestContextElementType.getEditCommand(request);
    request
        .setParameter(
            eu.admire.visual.pmml._40.diagram.edit.helpers.PMMLBaseEditHelper.EDIT_POLICY_COMMAND,
            null);
    request
View Full Code Here

  /**
   * @generated
   */
  private IElementType getContextElementType(IEditCommandRequest request) {
    IElementType requestContextElementType = eu.admire.visual.pmml._40.diagram.providers.PMMLElementTypes
        .getElementType(getVisualID(request));
    return requestContextElementType != null ? requestContextElementType
        : myElementType;
  }
View Full Code Here

   * @generated
   */
  protected void doConfigure(org.dmg.pmml._40.DataFieldType newElement,
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    IElementType elementType = ((CreateElementRequest) getRequest())
        .getElementType();
    ConfigureRequest configureRequest = new ConfigureRequest(
        getEditingDomain(), newElement, elementType);
    configureRequest.setClientContext(((CreateElementRequest) getRequest())
        .getClientContext());
    configureRequest.addParameters(getRequest().getParameters());
    ICommand configureCommand = elementType
        .getEditCommand(configureRequest);
    if (configureCommand != null && configureCommand.canExecute()) {
      configureCommand.execute(monitor, info);
    }
  }
View Full Code Here

  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

   * @generated
   */
  protected void doConfigure(org.dmg.pmml._40.ValueType newElement,
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
    IElementType elementType = ((CreateElementRequest) getRequest())
        .getElementType();
    ConfigureRequest configureRequest = new ConfigureRequest(
        getEditingDomain(), newElement, elementType);
    configureRequest.setClientContext(((CreateElementRequest) getRequest())
        .getClientContext());
    configureRequest.addParameters(getRequest().getParameters());
    ICommand configureCommand = elementType
        .getEditCommand(configureRequest);
    if (configureCommand != null && configureCommand.canExecute()) {
      configureCommand.execute(monitor, info);
    }
  }
View Full Code Here

  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

  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.RowType_3006) {
        return getChildBySemanticHint(eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
            .getType(eu.admire.visual.pmml._40.diagram.edit.parts.InlineTableTypeRowCompartmentEditPart.VISUAL_ID));
      }
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.emf.type.core.IElementType

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.