Package org.eclipse.emf.ecore.resource

Examples of org.eclipse.emf.ecore.resource.Resource.save()


        } catch (InvalidXMLException e) {
          // this should not happen. TypeSystemUtil.typeSystem2TypeSystemDescription
          // should never produce an invalid TypeSystemDescription!
          throw new UIMARuntimeException(e);
        }
        outputResource.save(null);
        isModelGenerated = true;
      }

      // write XMI
      out = new FileOutputStream(name);
View Full Code Here


          diagram.setName(diagramName);
          diagram.setElement(model);
        }

        try {
          modelResource
              .save(eu.admire.workbench.pd.packages.diagram.part.DispelDiagramEditorUtil
                  .getSaveOptions());
          diagramResource
              .save(eu.admire.workbench.pd.packages.diagram.part.DispelDiagramEditorUtil
                  .getSaveOptions());
View Full Code Here

          diagram.setName(diagramName);
          diagram.setElement(model);
        }

        try {
          modelResource
              .save(eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLDiagramEditorUtil
                  .getSaveOptions());
          diagramResource
              .save(eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLDiagramEditorUtil
                  .getSaveOptions());
View Full Code Here

              // Save the contents of the resource to the file system.
              //
              Map<Object, Object> options = new HashMap<Object, Object>();
              options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
              resource.save(options);
            }
            catch (Exception exception) {
              DispelEditorPlugin.INSTANCE.log(exception);
            }
            finally {
View Full Code Here

              // Save the contents of the resource to the file system.
              //
              Map<Object, Object> options = new HashMap<Object, Object>();
              options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
              resource.save(options);
            }
            catch (Exception exception) {
              DispelEditorPlugin.INSTANCE.log(exception);
            }
            finally {
View Full Code Here

                  nextResource.getURI()));
          if (nextResource.isLoaded()
              && !info.getEditingDomain()
                  .isReadOnly(nextResource)) {
            try {
              nextResource.save(DispelDiagramEditorUtil
                  .getSaveOptions());
            } catch (IOException e) {
              fireElementStateChangeFailed(element);
              throw new CoreException(new Status(IStatus.ERROR,
                  DispelDiagramEditorPlugin.ID,
View Full Code Here

              throws ExecutionException {
            newResource.getContents().add(diagramCopy);
            return CommandResult.newOKCommandResult();
          }
        }.execute(monitor, null);
        newResource.save(DispelDiagramEditorUtil.getSaveOptions());
      } catch (ExecutionException e) {
        fireElementStateChangeFailed(element);
        throw new CoreException(new Status(IStatus.ERROR,
            DispelDiagramEditorPlugin.ID, 0,
            e.getLocalizedMessage(), null));
View Full Code Here

              // Save the contents of the resource to the file system.
              //
              Map<Object, Object> options = new HashMap<Object, Object>();
              options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
              resource.save(options);
            }
            catch (Exception exception) {
              DispelEditorPlugin.INSTANCE.log(exception);
            }
            finally {
View Full Code Here

                  .hasNext();) {
                Resource nextResource = (Resource) it.next();
                if (nextResource.isLoaded()
                    && !getEditingDomain().isReadOnly(
                        nextResource)) {
                  nextResource
                      .save(eu.admire.visual.pmml._40.diagram.part.PMMLDiagramEditorUtil
                          .getSaveOptions());
                }
              }
            } catch (IOException ex) {
View Full Code Here

                  .hasNext();) {
                Resource nextResource = (Resource) it.next();
                if (nextResource.isLoaded()
                    && !getEditingDomain().isReadOnly(
                        nextResource)) {
                  nextResource
                      .save(eu.admire.visual.pmml._40.diagram.part.PMMLDiagramEditorUtil
                          .getSaveOptions());
                }
              }
            } catch (IOException 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.