Examples of ApplicationWindow


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

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

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

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

            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

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

        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

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

        Worker worker = new Worker(destinationTypes, waitLock);
        worker.execute();
    }
   
    private WaitLock startWait() {
        ApplicationWindow appWin = ApplicationUi.getAppWin();
        if (appWin != null) {
            return appWin.startWait();
        }
        DummyWaitService d = new DummyWaitService();
        return d.startWait();
    }
View Full Code Here

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

        synchronized (lock) {
            if (active == isActive()) {
                return;
            }
            super.setActive(active);
            ApplicationWindow appWin = getWindow();
            if (active) {
                ApplicationUiHelp.getHelp().enableWindowHelpKey("welcome");
                updateTitleBar(appWin);
                WindowSection ws = appWin.getWindowSection(ApplicationWindow.WEST);
                ws.setActiveContent(contentViewerManager.getWindowContent());
            }
        }
    }
View Full Code Here

Examples of org.jwall.app.ui.ApplicationWindow

    name = appName;

    if (System.getProperty("org.jwall.app.laf") == null)
      setLookAndFeel();

    win = new ApplicationWindow(this);

    try {
      loadResources();
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

        int ret = JOptionPane.showConfirmDialog(null, tr.get(ID + ".question",
                settings.getNumberOfDays(), settings.getTimeslotsPerDay()));
        if (ret != JOptionPane.OK_OPTION)
            return;

        ApplicationWindow aw = getApplicationWindow();
        final StatusBar bar = aw.getStatusBar();
        ProgressMonitor pm = bar.getProgressMonitor();

        JFileChooser fc = new JFileChooser();
        fc.setDialogTitle(tr.get(ID + ".fileDialog"));
        fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int res = fc.showOpenDialog(aw.getControl());
        if (res != JFileChooser.APPROVE_OPTION) {
            bar.setMessage(tr.get(ID + ".noFileSelected"));
            return;
        }
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

        this.algorithm = algorithm;
    }

    @Override
    protected void doOnce() {
        ApplicationWindow aw = getApplicationWindow();
        aw.getStatusBar().clear();

        // TODO make variable
        int sec = 5 * 60;
        algorithm.setCondition(new AlgorithmConditionTime(sec));
        String msg = tr.get(ID + ".startTask", sec / 60.0f);

        aw.getStatusBar().getProgressMonitor().taskStarted(msg, -1);
        MySwingWorker sw = new MySwingWorker(ID) {

            @Override
            protected void myconstruct() throws Exception {
                algorithm.setDataPool(dataPool);
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

    @Override
    protected void doOnce() {
        checkIfDataIsAlreadyAvailable();
        closeAllViews();

        ApplicationWindow aw = getApplicationWindow();
        final StatusBar bar = aw.getStatusBar();
        final ProgressMonitor pm = bar.getProgressMonitor();

        JFileChooser fc = new JFileChooser();
        fc.setDialogTitle(tr.get(ID + ".fileDialog"));
        fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int res = fc.showOpenDialog(aw.getControl());
        if (res != JFileChooser.APPROVE_OPTION) {
            bar.setMessage(tr.get(ID + ".noFileSelected"));
            return;
        }
        file = fc.getSelectedFile();
View Full Code Here

Examples of org.springframework.richclient.application.ApplicationWindow

        this.settings = settings;
    }

    @Override
    protected void doOnce() {
        ApplicationWindow aw = getApplicationWindow();
        aw.getStatusBar().clear();

        // inject via spring and using the same optimizer command class?
        final Algorithm algorithm = new UniTimeOptimization();
        ((UniTimeOptimization) algorithm).setInitialAssignment(true);

        // TODO make seconds editable via GUI
        int sec = 5 * 60;
        algorithm.setCondition(new AlgorithmConditionTime(sec));
        String msg = tr.get(ID + ".startTask", sec / 60.0f);

        aw.getStatusBar().getProgressMonitor().taskStarted(msg, -1);
        MySwingWorker sw = new MySwingWorker(ID) {

            @Override
            protected void myconstruct() throws Exception {
                algorithm.setDataPoolSettings(settings);
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.