Examples of NewAction


Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction

    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    menu.add(editor.bind(mxResources.get("importStencil"), new ImportAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction

    super(orientation);
    setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createEmptyBorder(3, 3, 3, 3), getBorder()));
    setFloatable(false);

    add(editor.bind("New", new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    add(editor.bind("Open", new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    add(editor.bind("Save", new SaveAction(false),
        "/com/mxgraph/examples/swing/images/save.gif"));
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction

    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));

    menu.addSeparator();
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction

    super(orientation);
    setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createEmptyBorder(3, 3, 3, 3), getBorder()));
    setFloatable(false);

    add(editor.bind("New", new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    add(editor.bind("Open", new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    add(editor.bind("Save", new SaveAction(false),
        "/com/mxgraph/examples/swing/images/save.gif"));
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction

    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(), "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(), "/com/mxgraph/examples/swing/images/open.gif"));
    menu.add(editor.bind(mxResources.get("importStencil"), new ImportAction(), "/com/mxgraph/examples/swing/images/open.gif"));

    menu.addSeparator();
View Full Code Here

Examples of de.grey.ownsync.action.NewAction

                    return null;
                case FileState.UNCHANGED_FILE:
                case FileState.CHANGED_FILE:
                case FileState.NEW_FILE:
                case FileState.UNKNOWN:
                    return new NewAction(fileStateA, folderStateB);
            }
        }
       
        // fileStateA == null
        if (fileStateA == null && fileStateB != null)
        {
            switch (fileStateB.getModifications())
            {
                case FileState.DELETED_FILE:
//                    return new NoAction(fileStateA, fileStateB);
                    return null;
                case FileState.UNCHANGED_FILE:
                case FileState.CHANGED_FILE:
                case FileState.NEW_FILE:
                case FileState.UNKNOWN:
                    return new NewAction(fileStateB, folderStateA);
            }
        }
       
        // fileStateA != null and fileStateB != null
       
View Full Code Here

Examples of de.grey.ownsync.action.NewAction

                    return null;
                case FileState.UNCHANGED_FILE:
                case FileState.CHANGED_FILE:
                case FileState.NEW_FILE:
                case FileState.UNKNOWN:
                    return new NewAction(fileStateA, folderStateB);
            }
        }
       
        // fileStateA == null
        if (fileStateA == null && fileStateB != null)
        {
            if (folderStateB.getSyncExclusionPatterns().matches(fileStateB.getFile()))
                return null;
           
            switch (fileStateB.getModifications())
            {
                case FileState.DELETED_FILE:
                    return null;
                case FileState.UNCHANGED_FILE:
                case FileState.CHANGED_FILE:
                case FileState.NEW_FILE:
                case FileState.UNKNOWN:
                    return new NewAction(fileStateB, folderStateA);
            }
        }
       
        // fileStateA != null and fileStateB != null
       
View Full Code Here

Examples of org.joshy.sketch.actions.NewAction

        return "Tiled Bitmap";
    }

    @Override
    public SAction getNewDocAction(Main main) {
        return new NewAction(main) {
            @Override
            protected void newDocDialog() {
                PixelDoc doc = new PixelDoc();
                doc.setRepeatSize(16);
                doc.setRepeat(true);
View Full Code Here

Examples of org.joshy.sketch.actions.NewAction

        return new SketchDocument();
    }

    @Override
    public SAction getNewDocAction(Main main) {
        return new NewAction(main);
    }
View Full Code Here

Examples of org.neo4j.neoclipse.property.action.NewAction

     */
    private MenuManager createNewSubmenu( final Composite parent )
    {
        MenuManager addMenuMgr = new MenuManager( "New",
                Icons.NEW_ENABLED.descriptor(), "propertiesAddSubmenu" );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( String.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Character.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Long.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Integer.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Short.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Byte.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Double.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Float.class ) ) );
        addMenuMgr.add( new NewAction( parent, this,
                PropertyTransform.getHandler( Boolean.class ) ) );
        return addMenuMgr;
    }
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.