org.electrocodeogram.cpc.core.api.hub.event
Class EclipseCodeDiffEvent

java.lang.Object
  extended by org.electrocodeogram.cpc.core.api.hub.event.CPCEvent
      extended by org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent
          extended by org.electrocodeogram.cpc.core.api.hub.event.EclipseCodeDiffEvent
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<CPCEvent>

Deprecated. this class is no longer in use, please refer to the CPC Track module.

@Deprecated
public class EclipseCodeDiffEvent
extends EclipseEvent

Author:
vw

Field Summary
protected  java.lang.String addedText
          Deprecated.  
protected  java.lang.String editorContent
          Deprecated.  
protected  java.lang.String filePath
          Deprecated.  
protected  int offset
          Deprecated.  
protected  java.lang.String replacedText
          Deprecated.  
 
Fields inherited from class org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent
fileLocatedInWorkspace, fileLocatedInWorkspaceCached, project, supportedFile, supportedFileCached, user
 
Constructor Summary
EclipseCodeDiffEvent(java.lang.String user, java.lang.String project)
          Deprecated.  
 
Method Summary
 java.lang.String getAddedText()
          Deprecated.  
 java.lang.String getEditorContent()
          Deprecated.  
 int getOffset()
          Deprecated.  
 java.lang.String getReplacedText()
          Deprecated.  
 boolean isValid()
          Deprecated. Checks if this event has been fully initialised.
 void setAddedText(java.lang.String addedText)
          Deprecated.  
 void setEditorContent(java.lang.String editorContent)
          Deprecated.  
 void setOffset(int offset)
          Deprecated.  
 void setReplacedText(java.lang.String replacedText)
          Deprecated.  
 java.lang.String toString()
          Deprecated. Every event should implement a sensible toString method for use in debugging log messages.
 
Methods inherited from class org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent
getFilePath, getProject, getUser, isFileLocatedInWorkspace, isSupportedFile, setFilePath, subToString
 
Methods inherited from class org.electrocodeogram.cpc.core.api.hub.event.CPCEvent
checkSeal, clone, compareTo, getCreationTime, seal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filePath

protected java.lang.String filePath
Deprecated. 

offset

protected int offset
Deprecated. 

addedText

protected java.lang.String addedText
Deprecated. 

replacedText

protected java.lang.String replacedText
Deprecated. 

editorContent

protected java.lang.String editorContent
Deprecated. 
Constructor Detail

EclipseCodeDiffEvent

public EclipseCodeDiffEvent(java.lang.String user,
                            java.lang.String project)
Deprecated. 
Method Detail

getOffset

public int getOffset()
Deprecated. 
Returns:
offset at which the diff starts, starts at 0

setOffset

public void setOffset(int offset)
Deprecated. 

getAddedText

public java.lang.String getAddedText()
Deprecated. 
Returns:
text which was added in this diff, never null

setAddedText

public void setAddedText(java.lang.String addedText)
Deprecated. 

getReplacedText

public java.lang.String getReplacedText()
Deprecated. 
Returns:
text which was replaced in this diff, never null

setReplacedText

public void setReplacedText(java.lang.String replacedText)
Deprecated. 

getEditorContent

public java.lang.String getEditorContent()
Deprecated. 
Returns:
the content of the editor AFTER this event

setEditorContent

public void setEditorContent(java.lang.String editorContent)
Deprecated. 

isValid

public boolean isValid()
Deprecated. 
Description copied from class: CPCEvent
Checks if this event has been fully initialised.
Will return false if one of the mandatory fields of the event has not yet been filled out.

Subclasses should override this method but should never return true. Instead they should delegate to the super class implementation once all validity checks on their level have passed.

The CPCEvent.isValid() implementation always returns true.

Overrides:
isValid in class EclipseEvent
Returns:
true if this event is valid, false otherwise.
See Also:
IEventHubRegistry.dispatch(CPCEvent)

toString

public java.lang.String toString()
Deprecated. 
Description copied from class: CPCEvent
Every event should implement a sensible toString method for use in debugging log messages.

Specified by:
toString in class CPCEvent
Returns:
debug string representation, never null.