Package com.volantis.mcs.eclipse.ab.editors

Examples of com.volantis.mcs.eclipse.ab.editors.SaveCommand


    }

    // javadoc inherited
    public void doSave(final IProgressMonitor progressMonitor) {
        if (context.resourceExists()) {
            SaveCommand command =
                    context.getSaveCommandFactory().createSaveCommand();
            performSaveOperation(createSaveOperation(command),
                    progressMonitor);
        } else {
            if (isSaveAsAllowed()) {
View Full Code Here


                            "saveas.problems.title");
                    ErrorDialog.openError(shell, title, null, status);
                } else {
                    SaveCommandFactory factory =
                            context.getSaveCommandFactory();
                    SaveCommand command = factory.createSaveAsCommand(file);
                    boolean succeeded =
                            performSaveOperation(createSaveOperation(command),
                                    progressMonitor);

                    if (succeeded) {
View Full Code Here

     * repository associated with this context.
     */
    private class DeviceSaveCommandFactory implements SaveCommandFactory {
        // javadoc inherited
        public SaveCommand createSaveAsCommand(final IFile destinationFile) {
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    try {
                        String filename = destinationFile.getLocation().toFile().
View Full Code Here

        }

        // javadoc inherited
        public SaveCommand createSaveCommand() {
            // javadoc inherited
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    // Ask the DeviceRepositoryAccessorManager to save the
                    // repository
View Full Code Here

     * contexts root element to be saved.
     */
    private class ODOMEditorSaveCommandFactory implements SaveCommandFactory {
        // javadoc inherited
        public SaveCommand createSaveCommand() {
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    InputStream contents = createDocumentInputStream();
                    try {
View Full Code Here

            };
        }

        // javadoc inherited
        public SaveCommand createSaveAsCommand(final IFile destinationFile) {
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    InputStream contents = createDocumentInputStream();
                    try {
View Full Code Here

     * contexts root element to be saved.
     */
    private class ODOMEditorSaveCommandFactory implements SaveCommandFactory {
        // javadoc inherited
        public SaveCommand createSaveCommand() {
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    editorContext.saveFile(null, progressMonitor);
                }
View Full Code Here

            };
        }

        // javadoc inherited
        public SaveCommand createSaveAsCommand(final IFile destinationFile) {
            return new SaveCommand() {
                // javadoc inherited
                public void save(IProgressMonitor progressMonitor)
                        throws CoreException {
                    editorContext.saveFile(destinationFile, progressMonitor);
                }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.ab.editors.SaveCommand

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.