Examples of SimpleFactory


Examples of org.eclipse.gef.requests.SimpleFactory

    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
   
    CombinedTemplateCreationEntry combined;
       
    combined = new CombinedTemplateCreationEntry(MusicMessages.MusicPalette_43,
        MusicMessages.MusicPalette_44, new SimpleFactory(SlurForm.class),
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-slur.png")),//$NON-NLS-1$
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-slur.png"))//$NON-NLS-1$
    );
    entries.add(combined);
   
    combined = new CombinedTemplateCreationEntry(MusicMessages.MusicPalette_45,
        MusicMessages.MusicPalette_46, new SimpleFactory(TieForm.class),
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-tie.png")),//$NON-NLS-1$
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-tie.png"))//$NON-NLS-1$
    );
    entries.add(combined);
   
    combined = new CombinedTemplateCreationEntry(MusicMessages.MusicPalette_32,
        MusicMessages.MusicPalette_33, new SimpleFactory(DynamForm.class),
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-dynam.png")),//$NON-NLS-1$
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-dynam.png"))//$NON-NLS-1$
    );
    entries.add(combined);
   
    combined = new CombinedTemplateCreationEntry(MusicMessages.MusicPalette_47,
        MusicMessages.MusicPalette_48, new SimpleFactory(FermataForm.class),
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-fermata.png")),//$NON-NLS-1$
        ImageDescriptor.createFromImage(HelperMethods
            .createImage("icons/icon-fermata.png"))//$NON-NLS-1$
    );
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.