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

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


    private void saveToFile(File file) throws SaveEditorException {
        try {
            ui.saveToFile(file);
            setClean();
        } catch (IOException ex) {
            throw new SaveEditorException(DefaultTextEditor.this, "Failed to save the file "
                    + ((File) object).getAbsolutePath() + ": " + ex.getMessage(), ex);
        }
    }
View Full Code Here


        private void saveToNewFile() throws SaveEditorException {
            try {
                ui.saveToFile(newFile);
                fileWasSaved();
            } catch (IOException ex) {
                throw new SaveEditorException(DefaultTextEditor.this, "Failed to save the file "
                        + originalFile.getAbsolutePath() + " to " + newFile.getAbsolutePath() + ": " + ex.getMessage(),
                        ex);
            }
        }
View Full Code Here

    }

    @Override
    public void save(IntegrationEntity entity) throws InterchangeSavingException {
        writeToDisk = true;
        SaveEditorException e = savePageIfOpen(entity);
        if (e != null) {
            throw new InterchangeSavingException(e.getMessage(), e);
        }
        if (writeToDisk) {
            saveWorker.save(entity);
        }
    }
View Full Code Here

                readOnlyNotice.showNotSaveableMessage();
            } else {
                controller.save();
            }
        } catch (InvalidUserDataException ex) {
            throw new SaveEditorException(this, "Failed to save the users & groups on the server: " +
                            ex.getMessage(), ex);
        }
    }
View Full Code Here

            try {
                saveImpl(consequence);
            } catch (ApplyAbortedException ex) {
                // Do nothing
            } catch (IntegrationDataPanelException ex) {
                throw new SaveEditorException(this, ex.getMessage(), ex);
            } catch (InterchangeSavingException ex) {
                // In the current version, this error has already been reported by the InterchangeView.
                // This will change in a future version.
            } finally {
                IntegrationProjectLock.release();
View Full Code Here

        public Editor findOpenPage(IntegrationEntity entity) {
            GenericEditor editor = new GenericEditor("dummy", "Test") {

                @Override
                public void save() throws SaveEditorException {
                    throw new SaveEditorException(this, "I will always fail.");
                }
            };
            editor.setDirty();
            return editor;
        }
View Full Code Here

TOP

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

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.