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.NeuralInputsType 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(DecimalIntegerLiteral 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(ProcessingElementAnonymousDefinition 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

   */
  protected boolean provides(CreateNodeViewOperation op) {
    if (op.getContainerView() == null) {
      return false;
    }
    IElementType elementType = getSemanticElementType(op
        .getSemanticAdapter());
    EObject domainElement = getSemanticElement(op.getSemanticAdapter());
    int visualID;
    if (op.getSemanticHint() == null) {
      // Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
View Full Code Here

  /**
   * @generated
   */
  protected boolean provides(CreateEdgeViewOperation op) {
    IElementType elementType = getSemanticElementType(op
        .getSemanticAdapter());
    if (!eu.admire.visual.pmml.neuralnetwork._40.diagram.providers.PMMLElementTypes
        .isKnownElementType(elementType)
        || (!(elementType instanceof IHintedType))) {
      return false; // foreign element type
View Full Code Here

   * @generated
   */
  public Edge createEdge(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    IElementType elementType = getSemanticElementType(semanticAdapter);
    String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
    switch (eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLVisualIDRegistry
        .getVisualID(elementTypeHint)) {
    case eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.parts.ConTypeEditPart.VISUAL_ID:
      return createConType_4003(getSemanticElement(semanticAdapter),
View Full Code Here

  /**
   * @generated
   */
  protected void doConfigure(MethodCall 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(MethodCall 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());
    configureRequest.setParameter(CreateRelationshipRequest.SOURCE,
        getSource());
    configureRequest.setParameter(CreateRelationshipRequest.TARGET,
        getTarget());
    ICommand configureCommand = elementType
        .getEditCommand(configureRequest);
    if (configureCommand != null && configureCommand.canExecute()) {
      configureCommand.execute(monitor, info);
    }
  }
View Full Code Here

   * @generated
   */
  protected void doConfigure(ProcessingElementInstance 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
   */
  public PMMLLinkDescriptor(EObject source, EObject destination,
      IElementType elementType, int linkVID) {
    this(source, destination, (EObject) null, linkVID);
    final IElementType elementTypeCopy = elementType;
    mySemanticAdapter = new IAdaptable() {
      public Object getAdapter(Class adapter) {
        if (IElementType.class.equals(adapter)) {
          return elementTypeCopy;
        }
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.