|
Eclipse Platform v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant
org.eclipse.team.ui.synchronize.SubscriberParticipant
org.eclipse.team.internal.ccvs.ui.subscriber.CVSParticipant
org.eclipse.team.internal.ccvs.ui.subscriber.MergeSynchronizeParticipant
public class MergeSynchronizeParticipant
| Nested Class Summary | |
|---|---|
class |
MergeSynchronizeParticipant.MergeParticipantActionContribution
Actions for the merge particpant's toolbar |
| Field Summary | |
|---|---|
static String |
CONTEXT_MENU_CONTRIBUTION_GROUP
|
static String |
NON_MODAL_CONTEXT_MENU_CONTRIBUTION_GROUP
|
static String |
TOOLBAR_CONTRIBUTION_GROUP
The id of a workspace action group to which additions actions can be added. |
| Fields inherited from class org.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant |
|---|
configElement, P_PINNED |
| Constructor Summary | |
|---|---|
MergeSynchronizeParticipant()
|
|
MergeSynchronizeParticipant(CVSMergeSubscriber subscriber)
|
|
| Method Summary | |
|---|---|
protected CVSChangeSetCapability |
createChangeSetCapability()
Create the change set capability for this particpant. |
void |
dispose()
Disposes of this synchronize participant and is called to free the resources associated with a participant. |
protected CVSTag |
getEndTag()
|
protected String |
getLongTaskName()
Returns the long task name to describe the behavior of the refresh operation to the user. |
static MergeSynchronizeParticipant |
getMatchingParticipant(IResource[] resources,
CVSTag startTag,
CVSTag endTag)
|
String |
getName()
Returns the name of this synchronize participant. |
protected String |
getShortTaskName()
Returns the short task name (e.g. |
protected CVSTag |
getStartTag()
|
void |
init(String secondayId,
IMemento memento)
Classes that are persisted must override this method and perform the following initialization. |
protected void |
initializeConfiguration(ISynchronizePageConfiguration configuration)
This method is invoked after a page configuration is created but before it is returned by the createPageConfiguration method. |
void |
saveState(IMemento memento)
Saves the participants object state within the memento. |
void |
setSubscriber(Subscriber subscriber)
Subclasses must call this method to initialize the participant. |
| Methods inherited from class org.eclipse.team.internal.ccvs.ui.subscriber.CVSParticipant |
|---|
addCVSPreferencePages, deriveBaseContentsFromLocal, getChangeSetCapability, getPreferencePages, getSyncInfo, isViewerContributionsSupported, prepareCompareInput, updateLabelsForCVS |
| Methods inherited from class org.eclipse.team.ui.synchronize.SubscriberParticipant |
|---|
createPage, getLongTaskName, getMatchingParticipant, getRefreshSchedule, getResources, getScope, getShortName, getSubscriber, getSubscriberSyncInfoCollector, getSyncInfoSet, propertyChange, refresh, refreshInDialog, refreshNow, reset, run, setRefreshSchedule, setSyncInfoFilter, validateConfiguration |
| Methods inherited from class org.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant |
|---|
addPropertyChangeListener, createPageConfiguration, doesSupportSynchronize, equals, firePropertyChange, getId, getImageDescriptor, getSecondaryId, hashCode, isPinned, pinned, removePropertyChangeListener, setImageDescriptor, setInitializationData, setInitializationData, setName, setPinned, setSecondaryId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TOOLBAR_CONTRIBUTION_GROUP
public static final String CONTEXT_MENU_CONTRIBUTION_GROUP
public static final String NON_MODAL_CONTEXT_MENU_CONTRIBUTION_GROUP
| Constructor Detail |
|---|
public MergeSynchronizeParticipant()
public MergeSynchronizeParticipant(CVSMergeSubscriber subscriber)
| Method Detail |
|---|
public void setSubscriber(Subscriber subscriber)
SubscriberParticipantSubscriberParticipant.init(String, IMemento). This method will initialize
the sync info collector.
setSubscriber in class SubscriberParticipantsubscriber - the subscriber to associate with this participant.
public void init(String secondayId,
IMemento memento)
throws PartInitException
AbstractSynchronizeParticipant
super.init(secondaryId, memento);
try {
ISynchronizeParticipantDescriptor descriptor = TeamUI.getSynchronizeManager().getParticipantDescriptor(PARTICIPANT_ID);
setInitializationData(descriptor);
} catch (CoreException e) {
TeamUIPlugin.log(e);
}
where PARTICIPANT_ID is the id of the particant as defined in the plugin manifest.
init in interface ISynchronizeParticipantinit in class SubscriberParticipantsecondayId - the secondayId of this participant instance or null
if this participant doesn't support multiple instances.memento - the participant state or null if there
is no previous saved state
PartInitException - if this participant was not initialized
successfullyISynchronizeParticipant.init(String, org.eclipse.ui.IMemento)public void saveState(IMemento memento)
ISynchronizeParticipantinit.
This method can be called multiple times during the lifetime of the participant object.
saveState in interface ISynchronizeParticipantsaveState in class SubscriberParticipantmemento - a memento to receive the object statepublic void dispose()
ISynchronizeParticipantISynchronizeManager this method is called when the
manager is shutdown or the participant is removed from the manager.
Within this method a participant may release any resources, fonts, images, etc. held by this part. It is also very important to remove all listeners.
Clients should not call this method (the synchronize manager calls this method at appropriate times).
dispose in interface ISynchronizeParticipantdispose in class SubscriberParticipantpublic String getName()
ISynchronizeParticipant
getName in interface ISynchronizeParticipantgetName in class SubscriberParticipantprotected CVSTag getStartTag()
protected CVSTag getEndTag()
public static MergeSynchronizeParticipant getMatchingParticipant(IResource[] resources,
CVSTag startTag,
CVSTag endTag)
protected void initializeConfiguration(ISynchronizePageConfiguration configuration)
AbstractSynchronizeParticipantcreatePageConfiguration method. Subclasses can implement this method to
tailor the configuration in ways appropriate to the participant.
initializeConfiguration in class CVSParticipantconfiguration - the newly create page configurationprotected String getLongTaskName()
SubscriberParticipant
getLongTaskName in class SubscriberParticipantprotected String getShortTaskName()
SubscriberParticipant
getShortTaskName in class SubscriberParticipantprotected CVSChangeSetCapability createChangeSetCapability()
CVSParticipant
createChangeSetCapability in class CVSParticipant
|
Eclipse Platform v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||