Examples of save()


Examples of org.eclipse.jface.text.templates.persistence.TemplateReaderWriter.save()

    if (!fileInfo.exists() || confirmOverwrite(fileStore)) {
      OutputStream output= null;
      try {
        output= new BufferedOutputStream(fileStore.openOutputStream(EFS.NONE, null));
        TemplateReaderWriter writer= new TemplateReaderWriter();
        writer.save(templates, output);
      } catch (CoreException e) {
        openWriteErrorDialog();
      } catch (IOException e) {
        openWriteErrorDialog();
      } finally {
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryConfig.save()

                    String value = this.getValue(option);
                    config.setString("nbgit", "action" + i, option.name(), value);
                }

                try {
                    config.save();
                } catch (IOException ex) {
                }
            } else {
                Preferences prefs = GitModuleConfig.getDefault().getPreferences();
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.save()

          config.setString(ConfigConstants.CONFIG_BRANCH_SECTION,
              name, ConfigConstants.CONFIG_KEY_REMOTE, ".");
          config.setString(ConfigConstants.CONFIG_BRANCH_SECTION,
              name, ConfigConstants.CONFIG_KEY_MERGE, baseBranch);
        }
        config.save();
      }
      return result;
    } catch (IOException ioe) {
      throw new JGitInternalException(ioe.getMessage(), ioe);
    } finally {
View Full Code Here

Examples of org.eclipse.jgit.storage.file.FileBasedConfig.save()

            FileBasedConfig config = new FileBasedConfig(new File(dotGit, "config"), FS.DETECTED);
            config.load();
            if (gitPushUrl != null) {
                config.setString(ConfigConstants.CONFIG_REMOTE_SECTION, "origin", "pushurl", gitPushUrl);
            }
            config.save();
        }

        FileRepositoryBuilder builder = new FileRepositoryBuilder();
        repository = builder.setGitDir(dotGit).readEnvironment().findGitDir().build();
        localRepos.put(dotGit, repository);
View Full Code Here

Examples of org.eclipse.jst.jsf.designtime.internal.view.model.jsp.persistence.MasterIndex.ProjectIndex.save()

    public void save(Map<String, SerializableTLDNamespace> namespaces) throws IOException,
            ClassNotFoundException
    {
        final MasterIndex index = getOrCreateMasterIndex();
        final ProjectIndex projectIndex = index.getProjectIndex(_project);
        projectIndex.save(namespaces);
    }

    public void clearAll() throws IOException, ClassNotFoundException
    {
        final MasterIndex index = getOrCreateMasterIndex();
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.data.TaskDataModel.save()

             
            }
          }

          if(!openTask) {
            model.save(new NullProgressMonitor());
          }

                   
        } catch (CoreException e) {
          ILogService log = RedmineUiPlugin.getLogService(getClass());
View Full Code Here

Examples of org.eclipse.orion.internal.server.hosting.SiteInfo.save()

    SiteInfo site = SiteInfo.newSiteConfiguration(user, "mysite", "myworkspace");
    site.setId("s1");
    site.setName("Some site");
    site.setHostHint("foo");
    site.save(user);

    hostingService.start(site, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));

    IHostedSite vhost = hostingService.get(site, user);
    assertEquals("https://foo.sites.example.org:1234", vhost.getUrl());
View Full Code Here

Examples of org.eclipse.persistence.sdo.helper.SDOXMLHelper.save()

                DataFactory dataFactory = parent.getHelperContext().getDataFactory();
                saveOptions = dataFactory.create(SDOConstants.ORACLE_SDO_URL,
                    SDOConstants.XMLHELPER_LOAD_OPTIONS);
                saveOptions.set(SDOConstants.ATTACHMENT_MARSHALLER_OPTION, marshaller);
            }
            sdoXMLHelper.save(xmlDoc, result, saveOptions);

        } catch (Exception e) {
            throw new SDODatabindingException(e);
        }
    }
View Full Code Here

Examples of org.eclipse.sapphire.Resource.save()

                        final Element element = type.instantiate( resource );
                       
                        try
                        {
                            element.initialize();
                            resource.save();
                        }
                        finally
                        {
                            element.dispose();
                        }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.RootXmlResource.save()

       
        final XmlResourceStore xmlResourceStore = new XmlResourceStore();
        final RootXmlResource xmlResource = new RootXmlResource( xmlResourceStore );
        final XmlConversionTestElement elementOnXml = XmlConversionTestElement.TYPE.instantiate( xmlResource );
       
        xmlResource.save();

        final Element xmlElement = service.convert( elementOnXml, Element.class );
       
        assertNotNull( xmlElement );
        assertSame( xmlElement, xmlResource.getXmlElement().getDomNode() );
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.