|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.team.core.subscribers.SubscriberChangeEvent
A concrete implementation of ISubscriberChangeEvent that can
be used by clients.
ISubscriberChangeEvent,
Subscriber| Field Summary |
|---|
| Fields inherited from interface org.eclipse.team.core.subscribers.ISubscriberChangeEvent |
|---|
NO_CHANGE, ROOT_ADDED, ROOT_REMOVED, SYNC_CHANGED |
| Constructor Summary | |
|---|---|
SubscriberChangeEvent(Subscriber subscriber,
int flags,
IResource resource)
Create a change event with the given flags for the given subscriber and resource. |
|
| Method Summary | |
|---|---|
static SubscriberChangeEvent[] |
asSyncChangedDeltas(Subscriber subscriber,
IResource[] resources)
Returns an array of deltas for the resources with ISubscriberChangeEvent.SYNC_CHANGED
as the flag. |
int |
getFlags()
Return the flags that describe the type of change. |
IResource |
getResource()
Return the resource whose state with respect to the subscriber has changed. |
Subscriber |
getSubscriber()
Return the subscriber to which this change event applies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubscriberChangeEvent(Subscriber subscriber,
int flags,
IResource resource)
subscriber - the subscriber to which the state change appliesflags - the flags that describe the changeresource - the resource whose state has change| Method Detail |
public int getFlags()
ISubscriberChangeEvent
if (event.getFlags() & ISubscriberChangeEvent.SYNC_CHANGED) {
// the sync info for the resource has changed
}
getFlags in interface ISubscriberChangeEventpublic IResource getResource()
ISubscriberChangeEvent
getResource in interface ISubscriberChangeEventpublic Subscriber getSubscriber()
ISubscriberChangeEvent
getSubscriber in interface ISubscriberChangeEvent
public static SubscriberChangeEvent[] asSyncChangedDeltas(Subscriber subscriber,
IResource[] resources)
ISubscriberChangeEvent.SYNC_CHANGED
as the flag.
subscriber - the subscriberresources - the resources whose sync info has changed
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.