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

Examples of org.jitterbit.application.ui.window.editor.Editor.save()


    private boolean saveIfDirty(IntegrationEntity e) {
        Editor page = (pages != null ? pages.findOpenPage(e) : null);
        if (page != null && page.isDirty()) {
            try {
                page.save();
            } catch (SaveEditorException ex) {
                pages.openPage(e);
                ErrorLog.attention(AllLocationsTester.class, "Failed to save the " +
                                e.getEntityType().getDisplayName() + " \"" + e.getName() + "\".", ex);
                return false;
View Full Code Here


            @Override
            public SaveEditorException get() {
                Editor page = pageLocator.findOpenPage(entity);
                if (page != null && page.isDirty()) {
                    try {
                        page.save();
                    } catch (SaveEditorException e) {
                        return e;
                    }
                } else {
                    writeToDisk = saveToDiskEvenIfNotDirty;
View Full Code Here

    private boolean isTemplateClean(F template) {
        if (pageLocator != null) {
            Editor page = pageLocator.findOpenPage(template);
            if (page != null && page.isDirty()) {
                try {
                    page.save();
                } catch (SaveEditorException e) {
                    ErrorLog.attention(getClass(), null, e);
                    return false;
                }
            }
View Full Code Here

    }

    private void saveEntityIfNeeded(IntegrationEntity entity) throws SaveEditorException {
        Editor editor = pageLocator.findOpenPage(entity);
        if (editor != null && editor.isDirty()) {
            editor.save();
        }
    }

    private void openPluginDialog(IntegrationEntity entity) {
        ManagedProject project = ProjectUtils.getManagedProject(entity);
View Full Code Here

            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

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.