Examples of NewMenuActionCommand


Examples of com.volantis.mcs.eclipse.ab.actions.layout.NewMenuActionCommand

        final ODOMSelectionManager manager = context.
                getODOMSelectionManager();

        actions.put(ActionID.CANVAS_NEW_MENU,
                new SubMenuAction(
                        new NewMenuActionCommand(manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.CANVAS_NEW_MENU.getPrefix()));
        actions.put(ActionID.NEW_PANE_MENU,
                new SubMenuAction(
                        new DefaultActionCommand(),
                        LayoutActions.BUNDLE,
                        ActionID.NEW_PANE_MENU.getPrefix()));
        actions.put(ActionID.NEW_PANE,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.PANE,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_PANE.getPrefix()));
        actions.put(ActionID.NEW_ROW_ITERATOR_PANE,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.ROW_ITERATOR_PANE,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_ROW_ITERATOR_PANE.getPrefix()));
        actions.put(ActionID.NEW_COLUMN_ITERATOR_PANE,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.COLUMN_ITERATOR_PANE,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_COLUMN_ITERATOR_PANE.getPrefix()));
        actions.put(ActionID.NEW_DISSECTING_PANE,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.DISSECTING_PANE,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_DISSECTING_PANE.getPrefix()));
        actions.put(ActionID.NEW_ITERATOR_MENU,
                new SubMenuAction(
                        new DefaultActionCommand(),
                        LayoutActions.BUNDLE,
                        ActionID.NEW_ITERATOR_MENU.getPrefix()));
        actions.put(ActionID.NEW_SPATIAL_ITERATOR,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.SPATIAL_FORMAT_ITERATOR,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_SPATIAL_ITERATOR.getPrefix()));
        actions.put(ActionID.NEW_TEMPORAL_ITERATOR,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.TEMPORAL_FORMAT_ITERATOR,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_TEMPORAL_ITERATOR.getPrefix()));
        actions.put(ActionID.NEW_GRID_MENU,
                new SubMenuAction(
                        new DefaultActionCommand(),
                        LayoutActions.BUNDLE,
                        ActionID.NEW_GRID_MENU.getPrefix()));
        actions.put(ActionID.NEW_2_COLUMN_GRID,
                new ODOMAction(
                        new NewGridFormatActionCommand(FormatType.GRID,
                                manager) {
                            protected Dimension getGridDimensions() {
                                return new Dimension(2, 1);
                            }
                        },
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_2_COLUMN_GRID.getPrefix()));
        actions.put(ActionID.NEW_3_ROW_GRID,
                new ODOMAction(
                        new NewGridFormatActionCommand(FormatType.GRID,
                                manager) {
                            protected Dimension getGridDimensions() {
                                return new Dimension(1, 3);
                            }
                        },
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_3_ROW_GRID.getPrefix()));
        actions.put(ActionID.NEW_N_BY_M_GRID,
                new ODOMAction(
                        new NewGridFormatActionCommand(FormatType.GRID,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_N_BY_M_GRID.getPrefix()));
        actions.put(ActionID.NEW_FRAGMENT,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.FRAGMENT, manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_FRAGMENT.getPrefix()));
        actions.put(ActionID.NEW_FORM,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.FORM,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_FORM.getPrefix()));
        actions.put(ActionID.NEW_REGION,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.REGION,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_REGION.getPrefix()));
        actions.put(ActionID.NEW_REPLICA,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.REPLICA,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_REPLICA.getPrefix()));
        actions.put(ActionID.NEW_FORM_FRAGMENT,
                new ODOMAction(
                        new NewNonGridFormatActionCommand(
                                FormatType.FORM_FRAGMENT,
                                manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.NEW_FORM_FRAGMENT.getPrefix()));

        actions.put(ActionID.MONTAGE_NEW_MENU,
                new SubMenuAction(
                        new NewMenuActionCommand(manager),
                        context,
                        null,
                        LayoutActions.BUNDLE,
                        ActionID.MONTAGE_NEW_MENU.getPrefix()));
        actions.put(ActionID.NEW_SEGMENT_GRID_MENU,
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.