Eclipse Platform
Release 3.3

org.eclipse.compare.patch
Class WorkspacePatcherUI

java.lang.Object
  extended byorg.eclipse.compare.patch.WorkspacePatcherUI

public class WorkspacePatcherUI
extends Object

Provides the headers required to create a workspace patch.

Since:
3.2

Constructor Summary
WorkspacePatcherUI()
           
 
Method Summary
static String getWorkspacePatchHeader()
          Returns a string that must be the first line of a workspace patch (a multi-project patch that is understood by the Apply Patch wizard).
static String getWorkspacePatchProjectHeader(IProject project)
          Returns the project header that must appear before any patches that apply to that project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspacePatcherUI

public WorkspacePatcherUI()
Method Detail

getWorkspacePatchHeader

public static String getWorkspacePatchHeader()
Returns a string that must be the first line of a workspace patch (a multi-project patch that is understood by the Apply Patch wizard). Each project to be included in the patch must be prefixed by the line obtained from the getWorkspacePatchProjectHeader(). This snippet outlines how the a workspace patch is to be created:
  //Write out workspace patch header
  stream.println(CompareUI.getWorkspacePatchHeader());
  for (int i=0; i

Returns:
String
Since:
3.2
See Also:
getWorkspacePatchProjectHeader(IProject)

getWorkspacePatchProjectHeader

public static String getWorkspacePatchProjectHeader(IProject project)
Returns the project header that must appear before any patches that apply to that project. All patches that are encountered after this header and before the next header are understood to belong the the project.

Parameters:
project - project to be patched
Returns:
String
Since:
3.2
See Also:
getWorkspacePatchHeader()

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.