Examples of eAdapters()


Examples of org.eclipse.bpmn2.BaseElement.eAdapters()

    ModelUtil.addID(bpmnElement);
    String id = bpmnElement.getId();
    if (shape.getId() == null)
      shape.setId(id);
   
    if (!bpmnElement.eAdapters().contains(liveValidationContentAdapter)) {
      bpmnElement.eAdapters().add(liveValidationContentAdapter);
    }
  }

  private void handleEvents(BaseElement bpmnElement, PictogramElement newContainer) {
View Full Code Here

Examples of org.eclipse.emf.common.notify.Notifier.eAdapters()

        // We need to avoid attaching the adapter during the resolve
        // and also attaching it again as we walk the eContents() later.
        // Checking here avoids having to check during addAdapter.
        //
        Notifier oldValue = (Notifier)notification.getOldValue();
        if (oldValue.eAdapters().contains(this))
        {
          removeAdapter(oldValue);
          Notifier newValue = (Notifier)notification.getNewValue();
          addAdapter(newValue);
        }
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

            /**
             * @see org.locationtech.udig.project.internal.render.RenderListenerAdapter#renderDisposed(org.eclipse.emf.common.notify.Notification)
             */
            protected void renderDisposed( Notification msg ) {
                EObject obj = (EObject) getTarget();
                obj.eAdapters().remove(this);
            }

            /**
             * @see org.locationtech.udig.project.internal.render.RenderListenerAdapter#renderDone()
             */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

            /**
             * @see org.locationtech.udig.project.internal.render.RenderListenerAdapter#renderDisposed(org.eclipse.emf.common.notify.Notification)
             */
            protected void renderDisposed( Notification msg ) {
                EObject obj = (EObject) getTarget();
                obj.eAdapters().remove(this);
            }

            /**
             * @see org.locationtech.udig.project.internal.render.RenderListenerAdapter#renderDone()
             */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

    List params = webApp.getContextParams();
    if (params != null) {
      Iterator itContexts = params.iterator();
      while (itContexts.hasNext()) {
        EObject contextParam = (EObject)itContexts.next();
        contextParam.eAdapters().add(contextParamAdapter);
      }
    }
  }

  private void stopLocatingJ2EEConfigs(WebApp webApp) {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

    List contextParams = webApp.getContextParams();
    if (contextParams != null) {
      Iterator itContextParams = contextParams.iterator();
      while (itContextParams.hasNext()) {
        EObject paramValue = (EObject)itContextParams.next();
        paramValue.eAdapters().remove(contextParamAdapter);
      }
    }
  }
  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

  }

  public void activate() {
    super.activate();
    EObject modelObject = (EObject)getModel();
    modelObject.eAdapters().add(adapter);
  }

  public void deactivate() {
    super.deactivate();
    EObject modelObject = (EObject)getModel();
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

  }

  public void deactivate() {
    super.deactivate();
    EObject modelObject = (EObject)getModel();
    modelObject.eAdapters().remove(adapter);
  }

  /**
   * Provides the label and text for the edit part.
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

           
            EObject extendedObject = extension.getExtendedObject();
           
            // if the exended EObject had an adapter, remove it.
            if(extendedObject != null){
              EList adapters = extendedObject.eAdapters();
              EList removeAdapterList = new BasicEList();             
              for (Iterator iter2 = adapters.iterator();iter2.hasNext();) {
                Adapter adapter = (Adapter) iter2.next();
               
                if((adapter instanceof ExtendedObjectUserAdapter && ((ExtendedObjectUserAdapter)adapter).getNamespace().equals(((ExtensionMap)getTarget()).getNamespace()))||
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAdapters()

                 for (Iterator iter2 = removeAdapterList.iterator(); iter2.hasNext();) {
                   Adapter adapter = (Adapter) iter2.next();
                   try{
                     ((ExtendedObjectAdapter)adapter).setExtension(null);
                   }catch(ClassCastException e){}
                   extendedObject.eAdapters().remove(adapter);
              }
            }
           
            // Set the Extension attributes to null.
            if (!(notification.getNotifier() instanceof Extension)){
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.