Examples of saveChangesTo()


Examples of aQute.bnd.build.model.BndEditModel.saveChangesTo()

                projectModel.genericSet(propertyName, null);
                newBundleModel.genericSet(propertyName, value);
            }

            // Save the project model
            projectModel.saveChangesTo(projectDocument);
            FileUtils.writeFully(projectDocument.get(), projectFile, false);
        }

        // Generate the new bundle model
        Document newBundleDocument = new Document("");
View Full Code Here

Examples of aQute.bnd.build.model.BndEditModel.saveChangesTo()

        updateBundleBlueprintIfNecessary(editModel, blueprintrelativePath);

        updateIncludeResourceIfNecessary(editModel, blueprintrelativePath, blueprintFile);

        if (editor == null) {
            editModel.saveChangesTo(new IDocumentWrapper(doc));
            FileUtils.writeFully(doc, bndFile, false);
        }
    }

    private void updateIncludeResourceIfNecessary(BndEditModel editModel, String blueprintrelativePath, IFile blueprintFile) throws Exception {
View Full Code Here

Examples of aQute.bnd.build.model.BndEditModel.saveChangesTo()

            properties.setProperty(Constants.BUNDLE_VERSION, templateVersion);

            final Document finalDoc = document;
            Runnable run = new Runnable() {
                public void run() {
                    model.saveChangesTo(finalDoc);

                    try {
                        writeFully(finalDoc.get(), resource, false);
                        resource.refreshLocal(IResource.DEPTH_ZERO, null);
                    } catch (CoreException e) {
View Full Code Here

Examples of aQute.bnd.build.model.BndEditModel.saveChangesTo()

      properties.setProperty(Constants.BUNDLE_VERSION, templateVersion);

      final Document finalDoc = document;
      Runnable run = new Runnable() {
        public void run() {
          model.saveChangesTo(finalDoc);

          try {
            writeFully(finalDoc.get(), resource, false);
            resource.refreshLocal(IResource.DEPTH_ZERO, null);
          } catch (CoreException e) {
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.