|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.electrocodeogram.cpc.core.api.hub.event.CPCEvent org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent org.electrocodeogram.cpc.core.api.hub.event.EclipseEditorPartEvent
public class EclipseEditorPartEvent
This event is generated by the CPC Sensor module, whenever a file is opened or closed
in an editor or when an editor window gains or looses the input focus.
The event only contains information about the type of event.
Nested Class Summary | |
---|---|
static class |
EclipseEditorPartEvent.Type
The type of an EclipseEditorPartEvent . |
Field Summary | |
---|---|
protected EclipseEditorPartEvent.Type |
type
|
Fields inherited from class org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent |
---|
fileLocatedInWorkspace, fileLocatedInWorkspaceCached, filePath, project, supportedFile, supportedFileCached, user |
Constructor Summary | |
---|---|
EclipseEditorPartEvent(java.lang.String user,
java.lang.String project)
Creates a new EclipseEditorPartEvent for the given
user and project. |
Method Summary | |
---|---|
EclipseEditorPartEvent.Type |
getType()
Retrieves the type of this event. |
boolean |
isValid()
Checks if this event has been fully initialised. |
void |
setType(EclipseEditorPartEvent.Type type)
Sets the type of this event. |
java.lang.String |
toString()
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 |
---|
protected EclipseEditorPartEvent.Type type
Constructor Detail |
---|
public EclipseEditorPartEvent(java.lang.String user, java.lang.String project)
EclipseEditorPartEvent
for the given
user and project.
user
- the current user, never null.project
- the project for the file affected by this event, never null.Method Detail |
---|
public EclipseEditorPartEvent.Type getType()
public void setType(EclipseEditorPartEvent.Type type)
This is a required value.
type
- the type of this editor part event, never null.public boolean isValid()
CPCEvent
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.
isValid
in class EclipseEvent
IEventHubRegistry.dispatch(CPCEvent)
public java.lang.String toString()
CPCEvent
toString
in class CPCEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |