Examples of save()


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

               
                sort( root );
               
                root.format();
               
                xmlResourceStore.save();
            }
            catch( ResourceStoreException e )
            {
                return Status.createErrorStatus( e );
            }
View Full Code Here

Examples of org.eclipse.swt.graphics.ImageLoader.save()

    ImageLoader loader = new ImageLoader();
    loader.data = new ImageData[] { imgData };
    FileOutputStream fOs = null;
    try {
      fOs = new FileOutputStream(file);
      loader.save(fOs, format);
    } catch (FileNotFoundException e) {
      Activator.getDefault().logError(e.getMessage(), e);
    } finally {
      if (fOs != null)
        try {
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor.save()

  }

  public SWTBotEclipseEditor createFileWithText(String name, String text) {
    SWTBotEclipseEditor file = createFile(name);
    file.setText(text);
    file.save();
    return file;
  }

  public SWTBotEclipseEditor createFile(String name) {
    menu("File").menu("New").menu("File").click();
View Full Code Here

Examples of org.eclipse.tycho.p2.repository.TychoRepositoryIndex.save()

                failDueToPartialP2Data(artifact, p2Data);
            }
        }

        try {
            p2ArtifactsInLocalRepo.save();
        } catch (IOException e) {
            throw new RuntimeException(
                    "I/O error while updating p2 artifact repository view on local Maven repository", e);
        }
    }
View Full Code Here

Examples of org.eclipse.ui.XMLMemento.save()

        final XMLMemento memento = XMLMemento.createWriteRoot("workingSet"); //$NON-NLS-1$
        workingSetFilterActionGroup.saveState(memento);
        workingSetFilterActionGroup.dispose();
        final StringWriter writer = new StringWriter();
        try {
            memento.save(writer);
            settings.put(WORKINGS_SET_SETTINGS, writer.getBuffer().toString());
        } catch (final IOException e) {
            StatusManager.getManager().handle(
                    new Status(IStatus.ERROR, ErlideUIPlugin.PLUGIN_ID, IStatus.ERROR,
                            "", e)); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore.save()

          StringWriter output = new StringWriter();
          TemplateReaderWriter writer = new TemplateReaderWriter();
          writer.save(getTemplateData(false), output);

          projectSettings.setValue(KEY, output.toString());
          projectSettings.save();
        }
      };
    }
  }
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntimeWorkingCopy.save()

    if (path != null) {
      wc.setLocation(path);
    }

    runtime = wc.save(true, new SubProgressMonitor(monitor, 1));

    return runtime;
  }

  private IServer createServer(IServerType st, IRuntime runtime, IProgressMonitor monitor, IOverwriteQuery query,
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerWorkingCopy.save()

        }
        else {
          // Delete them first
          IServerWorkingCopy wc = server.createWorkingCopy();
          wc.modifyModules(null, modules, monitor);
          wc.save(true, null);
          cloudServer.getBehaviour().refreshModules(monitor);

          new WaitWithProgressJob(5, 1000) {

            @Override
View Full Code Here

Examples of org.eclipse.wst.server.core.internal.RuntimeWorkingCopy.save()

      m.put("key", "generic_server_instance_properties");
      m.putAll(runtimeProperties);
      rwc.setAttribute("generic_server_instance_properties", m);
      rwc.setAttribute("runtime-type-id", runtimeType.getId());
      rwc.setAttribute("server_definition_id", serverRuntime.getId());
      final IRuntime runtime = rwc.save(true, monitor);

      System.out.println("Server runtime created: " + runtime.getName());

      System.out.println("Creating server instance...");
View Full Code Here

Examples of org.eclipse.wst.server.core.internal.ServerWorkingCopy.save()

        }
      }

      System.out.println("Modules to assign to server: " + Arrays.asList(add));
      swc.modifyModules(add, new IModule[0], monitor);
      server = swc.save(true, monitor);

      System.out.println("Server instance created: " + server.getName());
    }
    else
    {
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.