Package org.jitterbit.application.ui.window

Examples of org.jitterbit.application.ui.window.ApplicationWindow


                owner = null;
            }
            return ret;
        }
        ErrorLog.log(this, null, new Exception("Editor without an owner."));
        ApplicationWindow window = getWindow();
        if (window != null) {
            return window.getEditorService().closeEditor(this);
        }
        return true;
    }
View Full Code Here


                new DeleteLayoutFileAction(controller));
        return menu;
    }
   
    private Action createPreferencesAction() {
        ApplicationWindow appWin = controller.getView().getWindow();
        ViewPreferencesAction action = new ViewPreferencesAction(appWin);
        action.putValue(Action.ACCELERATOR_KEY, null);
        action.setInitialPath(OperationGraphPreferencesPage.PATH());
        return action;
    }
View Full Code Here

* @since 1.3.0
*/
public class SimpleStructureFileTemplateWizardTest {

    public void run() {
        ApplicationWindow window = new DummyApplicationWindow();
        CallbackResult callback = new CallbackResult() {

            @Override
            public void cancelled(Object o) {
                System.out.println("Cancelled");
View Full Code Here

        tree.getAdaptee().makeNodeExpanded(tree.getAdaptee().getModel().getRoot());
        return new SingleTreeContentViewer(view, view.getWindow().getWindowSection(ApplicationWindow.WEST), id, tree);
    }

    public MultiTreeContentViewer newEmptyMultiTree(InterchangeView view) {
        ApplicationWindow window = view.getWindow();
        WindowSection windowSection = window.getWindowSection(ApplicationWindow.WEST);
        return new MultiTreeContentViewer(windowSection, view, config);
    }
View Full Code Here

                ApplicationMessageEvent.postInformationMessage(UploadJob.class, "");
            }
        }

        private Window getDialogOwner() {
            ApplicationWindow appWin = getWindow();
            if (appWin != null) {
                return appWin.getFrame();
            }
            return UiUtils.getActiveFrame();
        }
View Full Code Here

            EditorService editorService = getEditorService();
            editorService.openEditor(editor);
        }

        private EditorService getEditorService() {
            ApplicationWindow appWin = launcher.getWindow();
            EditorService editorService = appWin.getEditorService();
            return editorService;
        }
View Full Code Here

    private void installHotKeyActivator() {
        KeyStroke ks = ApplicationUi.requestGlobalKeyStroke(ProjectContentViewer.ACTIVATOR_KEY, getClass());
        if (ks != null) {
            HotKeyActivator activator = new HotKeyActivator();
            ApplicationWindow appWin = view.getWindow();
            appWin.addGlobalKeyDispatcher(ks, activator);
        }
    }
View Full Code Here

                throw new ConnectionChangeVetoException(UserConsolePage.class.getName());
            }
        }

        private void switchToEditor() {
            ApplicationWindow appWin = owner.getWindow();
            if (appWin != null) {
                appWin.getEditorService().openEditor(owner);
            }
        }
View Full Code Here

            ActionDecorators.decorateFromDictionary(this, WindowActionDictionary.DICTIONARY, CloseOtherEditorsAction.ID);
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            ApplicationWindow window = editor.getWindow();
            if (window != null) {
                EditorService editors = window.getEditorService();
                editors.closeOtherEditors(editor);
            }
        }
View Full Code Here

        checkInitialDirtyState();
    }

    @Override
    public boolean removeFromWindow(boolean useForce) {
        ApplicationWindow window = getWindow();
        boolean ret = super.removeFromWindow(useForce || isObjectDeleted());
        if (ret) {
            prepareForRemoval(window);
        }
        return ret;
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.window.ApplicationWindow

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.