Esempio n. 1
0
  public static void writeFile(
      IFile file, final InputStream contents, final String charset, IProgressMonitor monitor)
      throws CoreException {

    WorkspaceUtilities.writeFile(file, contents, charset, monitor);
  }
Esempio n. 2
0
 private IProject getUninitializedTargetProject(IProject project) {
   return WorkspaceUtilities.getWorkspaceRoot()
       .getProject(project.getName() + SharpenConstants.SHARPENED_PROJECT_SUFFIX);
 }
Esempio n. 3
0
 public void save(IProgressMonitor monitor) throws CoreException {
   WorkspaceUtilities.writeFile(
       getSettingsFile(), toEncodedXml(), WorkspaceUtilities.DEFAULT_CHARSET, monitor);
 }
Esempio n. 4
0
 private InputStream encode(String xml) throws CoreException {
   return WorkspaceUtilities.encode(xml, WorkspaceUtilities.DEFAULT_CHARSET);
 }