Examples of IElementHandling


Examples of net.sourceforge.coffea.uml2.model.IElementHandling

                        UMLClassDiagramJavaEditor
                    ) {
                      UMLClassDiagramJavaEditor umlEditor
                      = ((UMLClassDiagramJavaEditor)
                            editor);
                      IElementHandling elH =
                        umlEditor
                        .getLastSelectedElementHandler();
                      if(
                          (elH!=null)
                          &&(
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

        }
        if(name!=null) {
          TransactionalEditingDomain domain =
            g.getEditingDomain();
          if(listeners.get(name)==null) {
            IElementHandling elH = findHandler(g);
            if(elH!=null) {
              domain.addResourceSetListener(elH);
              listeners.put(name, elH);
            }
          }
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

   * Name of the element to return the handler for
   * @return Element handler responding to the given element name
   */
  protected IElementHandling getElementHandler(String name) {
    IModelHandling mdl = null;
    IElementHandling rt = null;
    if(creator!=null) {
      mdl = creator.getModelHandler();
      if(mdl!=null) {
        rt = mdl.getElementHandler(name);
        if(rt==null) {
          IElementHandling defaultPackageElement =
            mdl.getElementHandler(
                IModelHandling.defaultPackageFileName
            );
          if(defaultPackageElement instanceof IPackageHandling) {
            rt =
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

      Object child = null;
      EditPart childEditPart = null;
      String childName = null;
      NamedElement childElement = null;
      Node childModel = null;
      IElementHandling childH = null;
      for(int i=0 ; i<children.size() ; i++) {
        child = children.get(i);
        if((child!=null)&&(child instanceof EditPart)) {
          childEditPart = (EditPart)child;
          if(childEditPart.getModel() instanceof Node) {
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

   * @param p
   * Edit part for which the edit policy must be initialized
   */
  private void initEditPolicy(EditPart p) {
    if(p!=null) {
      IElementHandling elH =
        findHandler(p);
      ensureEditPolicy(p, elH);
      if((mainPackagePart == null)&&(p instanceof PackageEditPart)) {
        mainPackagePart = (PackageEditPart)p;
      }
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

    else if(packSel!=null) {
      name = PackageHandler.buildFullyQualifiedName(packSel);
    }
     */
    // From the element name we get the corresponding tool
    IElementHandling elH = getElementHandler(name);
    return elH;
  }
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

    if(!initialized) {
      initialized = true;
    }
    else {
      String name = new String();
      IElementHandling el =
        creator.getModelHandler().getElementHandler(name);
      if(el instanceof IPackageHandling) {
        IPackageHandling pack = (IPackageHandling)el;
        EditionHandler.getEditionReceiver().edit(
            pack.getJavaElement(),
View Full Code Here

Examples of net.sourceforge.coffea.uml2.model.IElementHandling

              // source
              IMemberHandling<?, ?> memH =
                (IMemberHandling<?, ?>)
                lastSelectedElementHandler;
              IClassifierHandling<?, ?> tpH = null;
              IElementHandling cont = memH;
              while(
                  (
                      !(
                          cont
                          instanceof
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.