Examples of BackwardForwardStack


Examples of org.jitterbit.application.ui.window.editor.service.BackwardForwardStack

            }
        }

        private JPopupMenu createEditorList() {
            EditorService svc = appWin.getEditorService();
            BackwardForwardStack stack = svc.getBackwardForwardStack();
            if (stack.size() == 0) {
                return null;
            }
            JPopupMenu popup = new JPopupMenu();
            int currentPosition = stack.getPosition();
            int min = Math.max(0, currentPosition - 9);
            int max = Math.min(stack.size(), currentPosition + 10);
            for (int n = min; n < max; ++n) {
                Editor e = stack.getEditorAt(n);
                JMenuItem mi = new JCheckBoxMenuItem(new EditorSwitchAction(stack, e, n));
                if (n == currentPosition) {
                    mi.setSelected(true);
                }
                popup.add(mi);
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.