Package org.eclipse.gef.requests

Examples of org.eclipse.gef.requests.CreationFactory


  return root;
}

public static CreationFactory getFullAdderFactory() {
  return new CreationFactory(){
    public Object getNewObject(){
      return createFullAdder();
    }
    public Object getObjectType(){
      return "Full Adder"//$NON-NLS-1$
View Full Code Here


    }
  };
}

public static CreationFactory getHalfAdderFactory() {
  return new CreationFactory(){
    public Object getNewObject(){
      return createHalfAdder();
    }
    public Object getObjectType(){
      return "Half Adder";    //$NON-NLS-1$
View Full Code Here

    public PaletteEntry createConnectionEntry() {
        final ElementConnectionFactory normalConnectionFactory = new ConnectionWrapperFactory();
        PaletteEntry tool = new ConnectionCreationToolEntry(
            "Sequence Flow",
            "Creating connections",
            new CreationFactory() {
                public Object getNewObject() {
                    return normalConnectionFactory.createElementConnection();
                }
                public Object getObjectType() {
                    return ConnectionWrapper.class;
View Full Code Here

TOP

Related Classes of org.eclipse.gef.requests.CreationFactory

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.