Package org.jitterbit.application.ui.window.editor

Examples of org.jitterbit.application.ui.window.editor.Editor


        private int getDelay(Script script) {
            // If the page needs to be created and opened we allow for a greater
            // delay before we highlight the text. This is so that the page has
            // time to be initialized correctly.
            Editor openPage = view.getEditorForEntity(script);
            return (openPage == null) ? 250 : 50;
        }
View Full Code Here


            replaceDisplayedExpression(newExpression, page);
            return true;
        }

        private ScriptPage findOpenPage(Script script) {
            Editor page = view.getEditorForEntity(script);
            if (page instanceof ScriptPage) {
                return (ScriptPage) page;
            }
            return null;
        }
View Full Code Here

        }
    }

    public void closeOtherEditorsInCategory(EditorCategory category) {
        EditorService svc = appWin.getEditorService();
        Editor active = svc.getActiveEditor();
        if (active == null) {
            return;
        }
        EditorCategory activeEditorsCategory = model.categorize(active);
        if (!category.equals(activeEditorsCategory)) {
View Full Code Here

            return null;
        }
        int index = tabs.getSelectedIndex();
        CardPanel cards = tabCards.get(index);
        String id = cards.getCurrentCard();
        Editor active = editorIdMap.get(id);
        return active;
    }
View Full Code Here

        return new StrictDeployChecker(project.getDependencyStore());
    }

    EditorSaverResult saveIfDirty(IntegrationEntity e) {
        EditorSaverResult result = EditorSaverResult.noOp();
        Editor page = view.getEditorForEntity(e);
        if (page != null && page.isDirty()) {
            result = tryToSave(page);
        }
        return result;
    }
View Full Code Here

        @Override
        public void mouseReleased(MouseEvent e) {
            if (e.getButton() == MouseEvent.BUTTON1) {
                IntegrationEntity selected = getSelectedEntity();
                if (selected != null) {
                    Editor p = view.getEditorForDisplayedObject(selected);
                    if (p != null) {
                        view.displayEditor(p);
                        getTree().requestFocusInWindow();
                    }
                }
View Full Code Here

            Alert.error("Nothing matches the path \"" + path + "\".", "Path Not Found");
        }
    }

    private void deployDisplayedObject() throws CommandException {
        Editor editor = view.getActiveEditor();
        if (editor instanceof IntegrationEntityPage) {
            IntegrationEntity object = ((IntegrationEntityPage) editor).getObject();
            deployObjects(Sets.newHashSet(object));
        } else {
            throw new CommandException("No object open to deploy.");
View Full Code Here

        if (entity == null) {
            ErrorLog.log(getClass(),null, new Exception(
                "Trying to restore the editor for an entity that no longer exists in memory. This is a bug."));
            return;
        }
        Editor editor = pageLocator.findOpenPage(entity);
        if (editor == null) {
            editor = pageFactory.createPage(entity);
            String group = ProjectPageGroup.get(entity);
            svc.openEditor(editor, group);
        } else {
View Full Code Here

    @Override
    public void process(IntegrationEntity item) throws DeployException {
        if (item instanceof Folder) {
            return;
        }
        Editor editor = pageLocator.findOpenPage(item);
        if (editor != null) {
            try {
                editor.save();
            } catch (SaveEditorException ex) {
                throw new DeployException("Failed to save the current changes made to " + item.getName(), ex);
            }
        }
    }
View Full Code Here

                SloganOpener.this.dispose(page);
            }
        }
       
        private boolean isValidState() {
            Editor active = appWin.getEditorService().getActiveEditor();
            return active == page;
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.window.editor.Editor

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.