Examples of save()


Examples of org.aspectj.org.eclipse.jdt.core.ICompilationUnit.save()

      // update the contents of the existing unit if fForce is true
      if (force) {
        IBuffer buffer = unit.getBuffer();
        if (buffer == null) return;
        buffer.setContents(fSource);
        unit.save(new NullProgressMonitor(), false);
        resultElements = new IJavaElement[] {unit};
        if (!Util.isExcluded(unit)
            && unit.getParent().exists()) {
          for (int i = 0; i < resultElements.length; i++) {
            delta.changed(resultElements[i], IJavaElementDelta.F_CONTENT);
View Full Code Here

Examples of org.auraframework.service.DefinitionService.save()

        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);

            if (getBooleanAttribute("client.css")) {
                DefDescriptor<StyleDef> styleDescriptor = definitionService.getDefDescriptor(def.getDescriptor(),
                        "css", StyleDef.class);
                new CreateStyleDefQuickFix(styleDescriptor).fix();
View Full Code Here

Examples of org.auraframework.system.MasterDefRegistry.save()

        ContextService contextService = Aura.getContextService();
        contextService.assertEstablished();
       
        def.validateDefinition();
       
    defRegistry.save(def);
    }

    /**
     * Take in the information off the context and sanitize, populating dependencies.
     *
 
View Full Code Here

Examples of org.brain.tool.Jacob2Word.save()

    //在服务器端生成word文件
   
    Jacob2Word word = new Jacob2Word();
    word.createNewDocument();
    word.insertText(fileContext);
    word.save(path);
    word.closeDocument();
    response.sendRedirect(downLoadPath);
   
  }
View Full Code Here

Examples of org.brixcms.jcr.api.JcrNode.save()

    public void removeRule(Rule rule) {
        if (hasNode(RULES)) {
            JcrNode parent = getNode(RULES);
            if (parent.hasNode(rule.getName())) {
                parent.getNode(rule.getName()).remove();
                parent.save();
            }
        }
    }

    public void saveRule(Rule rule) {
View Full Code Here

Examples of org.brixcms.jcr.api.JcrSession.save()

                            if (session.itemExists(brix.getRootPath())) {
                                session.getItem(brix.getRootPath()).remove();
                            }
                            session.importXML("/", s,
                                    ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
                            session.save();

                            brix.initWorkspace(ManageSnapshotsPanel.this.getModelObject(), session);

                            getSession().info(ManageSnapshotsPanel.this.getString("restoreSuccessful"));
                        } catch (IOException e) {
View Full Code Here

Examples of org.brixcms.jcr.wrapper.BrixNode.save()

        form.add(new SubmitLink("save") {
            @Override
            public void onSubmit() {
                BrixNode node = nodeModel.getObject();
                model.apply();
                node.save();
                getSession().info(getString("propertiesSaved"));
                goBack();
            }
        });
View Full Code Here

Examples of org.brixcms.plugin.site.page.AbstractContainer.save()

                AbstractContainer node = (AbstractContainer) VariablesPanel.this.getModelObject();
                for (IModel<?> m : grid.getSelectedItems()) {
                    Entry e = (Entry) m.getObject();
                    node.setVariableValue(e.getKey(), null);
                }
                node.save();
                grid.markAllItemsDirty();
                grid.update();
                grid.resetSelectedItems();
                target.addComponent(this);
            }
View Full Code Here

Examples of org.buildndeploy.server.model.FileCollection.save()

      FileCollection fc = FileCollection.get();
      for (String b : uploadedKeys) {
        log.info("Uploaded " + b);
        fc.add(b);
      }
      fc.save();
    } else {
      log.warning("empty upload");
    }
   
    List<BlobInfo> blobInfos = BlobstoreUtil.loadBlobInfos(uploadedKeys);
View Full Code Here

Examples of org.bukkit.World.save()

      this.genWorldname(0);
      if (this.handleWorld()) {
        World w = WorldManager.getWorld(worldname);
        if (w != null) {
          message(ChatColor.YELLOW + "Saving world '" + worldname + "'...");
          w.save();
          message(ChatColor.GREEN + "World saved!");
        } else {
          Localization.WORLD_NOTLOADED.message(sender, worldname);
        }
      }
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.