|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.container.project.ui.builder.CollaborationResourceHandler
public abstract class CollaborationResourceHandler
Field Summary | |
---|---|
protected org.eclipse.core.resources.IResourceDelta |
delta
|
protected int |
deltaFlags
Flags that indicate how the resource was changed |
protected int |
deltaKind
The kind of change made to the resource |
protected org.eclipse.core.resources.IResource |
deltaResource
Resource that was change |
protected boolean |
m_bCollaborationProject
Flag that indicates if resource contained in a Corona Collaboration project |
protected ProjectEvent |
projectEvent
|
Constructor Summary | |
---|---|
CollaborationResourceHandler(ICollaborationEventAdmin eventAdmin)
Class constructor performs basic intializatio of the class instance. |
Method Summary | |
---|---|
protected void |
buildEvent(org.eclipse.core.resources.IResource fileResource,
java.lang.String eventType)
Build the event properties required for a file event. |
java.lang.String |
getProjectGuid(org.eclipse.core.resources.IProject project)
Gets a guid of project. |
void |
initProjectEvent(org.eclipse.core.resources.IProject project,
java.lang.String eventType)
Initializie the collaboration ProjectEvent |
void |
postEvent()
|
protected abstract boolean |
processResourceChange()
This method MUST be implemented by sub classes to process the folderresource change. |
boolean |
processResourceChange(org.eclipse.core.resources.IResourceDelta delta)
Process the file resource change. |
void |
processResourceCommit(org.eclipse.core.resources.IResource resource)
|
void |
processResourceCommit(org.eclipse.team.core.subscribers.ISubscriberChangeEvent delta)
|
java.lang.String |
resourceIPathToURI(org.eclipse.core.runtime.IPath ipath)
Convert the resource path to a URI |
void |
sendEvent()
Send a Collaboration Event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.core.resources.IResourceDelta delta
protected org.eclipse.core.resources.IResource deltaResource
protected int deltaKind
protected int deltaFlags
protected boolean m_bCollaborationProject
protected ProjectEvent projectEvent
Constructor Detail |
---|
public CollaborationResourceHandler(ICollaborationEventAdmin eventAdmin)
Method Detail |
---|
protected void buildEvent(org.eclipse.core.resources.IResource fileResource, java.lang.String eventType) throws CoronaException
eventType
- Type of event properties to be built.userProps
- Additional user properties for the event.
CoronaException
- when
initProjectEvent(IProject, String)
method failes to initialize ProjectEvent.public boolean processResourceChange(org.eclipse.core.resources.IResourceDelta delta)
delta
- An IResourceDelta instance that describes the changes made to
the project resource.public void processResourceCommit(org.eclipse.team.core.subscribers.ISubscriberChangeEvent delta)
public void processResourceCommit(org.eclipse.core.resources.IResource resource)
protected abstract boolean processResourceChange()
m_ResourceDeltaKind
and
m_ResourceDeltaFlags
fields. The method is called while
the resource tree is locked, therefore changes to the resource may not be
possible.
public java.lang.String resourceIPathToURI(org.eclipse.core.runtime.IPath ipath)
ipath
- Path to the resource to be converted.
public void initProjectEvent(org.eclipse.core.resources.IProject project, java.lang.String eventType) throws CoronaException
project
- The project connected with the event.eventType
- userProps
-
CoronaException
- when ProjectContextContainer cannot be found for given project.public java.lang.String getProjectGuid(org.eclipse.core.resources.IProject project)
project
- The project for which the guid is required.
public void postEvent()
ICollaborationEventAdmin.postEvent(CollaborationEvent)
public void sendEvent()
ICollaborationEventAdmin.sendEvent(CollaborationEvent)
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |