Package org.jitterbit.application.ui.action

Examples of org.jitterbit.application.ui.action.ActionDictionary


        aboutAction = new AboutAction();
    }

    @Override
    protected List<JMenuItem> getMenuItems() {
        ActionDictionary ad = WindowActionDictionary.DICTIONARY;
        List<JMenuItem> items = new ArrayList<JMenuItem>();
        items.add(getHelpItem(ad));
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_1);
        addExtensionItems(items, MenuExtensionPoint.EXTENSION_POINT_2);
        items.add(null);
View Full Code Here


     * Creates a <code>CloseEditorAction</code> that attempts to close the given <code>Editor</code>
     * when invoked. The action is given a default name and icon.
     */
    public CloseEditorAction(Editor editor) {
        this.editor = editor;
        ActionDictionary dict = WindowActionDictionary.DICTIONARY;
        String id = CloseActiveEditorAction.ID;
        putValue(NAME, dict.getName(id).getRaw());
        putValue(SMALL_ICON, CommonIcons.CLOSE_16);
    }
View Full Code Here

        private final String id;

        public ActionBase(String id) {
            this.id = id;
            ActionDictionary dict = WindowActionDictionary.DICTIONARY;
            putValue(ACCELERATOR_KEY, dict.getAccelerator(id));
            putValue(SMALL_ICON, dict.getSmallIcon(id));
            putValue(Action2.MEDIUM_ICON_KEY, dict.getMediumIcon(id));
            putValue(LARGE_ICON_KEY, dict.getLargeIcon(id));
        }
View Full Code Here

        protected final void updateNameAndToolTip(String text) {
            String name;
            String tooltip;
            if (text == null) {
                ActionDictionary dict = WindowActionDictionary.DICTIONARY;
                name = dict.getName(id).getText();
                tooltip = dict.getToolTip(id);
            } else {
                name = text;
                tooltip = text;
            }
            putValue(NAME, name);
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.action.ActionDictionary

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.