org.eclipse.mylar.internal.team
Class ContextChangeSet

java.lang.Object
  extended by org.eclipse.team.internal.core.subscribers.ChangeSet
      extended by org.eclipse.team.internal.core.subscribers.DiffChangeSet
          extended by org.eclipse.team.internal.core.subscribers.ActiveChangeSet
              extended by org.eclipse.team.internal.ccvs.core.mapping.CVSActiveChangeSet
                  extended by org.eclipse.mylar.internal.team.ContextChangeSet
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class ContextChangeSet
extends org.eclipse.team.internal.ccvs.core.mapping.CVSActiveChangeSet
implements org.eclipse.core.runtime.IAdaptable

Author:
Mik Kersten

Field Summary
private static java.lang.String CTX_TITLE
           
static java.lang.String SOURCE_ID
           
private  boolean suppressInterestContribution
           
private  ITask task
           
 
Constructor Summary
ContextChangeSet(ITask task, org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager manager)
           
 
Method Summary
 void add(org.eclipse.team.core.diff.IDiff diff)
           
 void add(org.eclipse.team.core.diff.IDiff[] diffs)
           
 void add(org.eclipse.core.resources.IResource[] newResources)
           
 boolean contains(org.eclipse.core.resources.IResource local)
          TODO: unnessary check context?
 boolean equals(java.lang.Object object)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.util.List<org.eclipse.core.resources.IResource> getAllResourcesInChangeContext()
           
 java.lang.String getComment()
           
static java.lang.String getHandleFromPersistedTitle(java.lang.String title)
           
private  org.eclipse.core.resources.IResource getResourceFromDiff(org.eclipse.team.core.diff.IDiff diff)
           
 org.eclipse.core.resources.IResource[] getResources()
           
 ITask getTask()
           
private  java.lang.String getTitleForPersistance()
           
 int hashCode()
           
 void initTitle()
           
 boolean isUserCreated()
           
 void remove(org.eclipse.core.resources.IResource resource)
           
 void remove(org.eclipse.core.resources.IResource[] newResources)
           
 void restoreResources(org.eclipse.core.resources.IResource[] newResources)
           
 void save(org.osgi.service.prefs.Preferences prefs)
          Encodes the handle in the title, since init won't get called on this class.
 
Methods inherited from class org.eclipse.team.internal.core.subscribers.ActiveChangeSet
getTitle, hasComment, init, isValidChange, setComment, setTitle, setUserCreated
 
Methods inherited from class org.eclipse.team.internal.core.subscribers.DiffChangeSet
contains, containsChildren, getDiffTree, internalGetDiffTree, isEmpty, remove, rootRemoved
 
Methods inherited from class org.eclipse.team.internal.core.subscribers.ChangeSet
getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTX_TITLE

private static final java.lang.String CTX_TITLE
See Also:
Constant Field Values

SOURCE_ID

public static final java.lang.String SOURCE_ID
See Also:
Constant Field Values

suppressInterestContribution

private boolean suppressInterestContribution

task

private ITask task
Constructor Detail

ContextChangeSet

public ContextChangeSet(ITask task,
                        org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager manager)
Method Detail

isUserCreated

public boolean isUserCreated()
Overrides:
isUserCreated in class org.eclipse.team.internal.core.subscribers.ActiveChangeSet

initTitle

public void initTitle()

save

public void save(org.osgi.service.prefs.Preferences prefs)
Encodes the handle in the title, since init won't get called on this class.

Overrides:
save in class org.eclipse.team.internal.core.subscribers.ActiveChangeSet

getTitleForPersistance

private java.lang.String getTitleForPersistance()

getHandleFromPersistedTitle

public static java.lang.String getHandleFromPersistedTitle(java.lang.String title)

getComment

public java.lang.String getComment()
Overrides:
getComment in class org.eclipse.team.internal.core.subscribers.ActiveChangeSet

remove

public void remove(org.eclipse.core.resources.IResource resource)
Overrides:
remove in class org.eclipse.team.internal.core.subscribers.DiffChangeSet

remove

public void remove(org.eclipse.core.resources.IResource[] newResources)
Overrides:
remove in class org.eclipse.team.internal.core.subscribers.ChangeSet

add

public void add(org.eclipse.team.core.diff.IDiff diff)
Overrides:
add in class org.eclipse.team.internal.core.subscribers.DiffChangeSet

getResourceFromDiff

private org.eclipse.core.resources.IResource getResourceFromDiff(org.eclipse.team.core.diff.IDiff diff)

add

public void add(org.eclipse.team.core.diff.IDiff[] diffs)
Overrides:
add in class org.eclipse.team.internal.core.subscribers.DiffChangeSet

add

public void add(org.eclipse.core.resources.IResource[] newResources)
         throws org.eclipse.core.runtime.CoreException
Overrides:
add in class org.eclipse.team.internal.core.subscribers.ActiveChangeSet
Throws:
org.eclipse.core.runtime.CoreException

restoreResources

public void restoreResources(org.eclipse.core.resources.IResource[] newResources)
                      throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getResources

public org.eclipse.core.resources.IResource[] getResources()
Overrides:
getResources in class org.eclipse.team.internal.core.subscribers.DiffChangeSet

getAllResourcesInChangeContext

public java.util.List<org.eclipse.core.resources.IResource> getAllResourcesInChangeContext()

contains

public boolean contains(org.eclipse.core.resources.IResource local)
TODO: unnessary check context?

Overrides:
contains in class org.eclipse.team.internal.core.subscribers.DiffChangeSet

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTask

public ITask getTask()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable