blob: af837b141704a25e65338818b5798374fb3cb4c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.tests.ui.synchronize;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.team.core.synchronize.SyncInfoTree;
import org.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant;
import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
import org.eclipse.ui.part.IPageBookViewPage;
public class TestParticipant extends AbstractSynchronizeParticipant {
public static final String ID = "org.eclipse.team.tests.ui.test-participant"; //$NON-NLS-1$
private SyncInfoTree set = new SyncInfoTree();
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant#initializeConfiguration(org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration)
*/
protected void initializeConfiguration(ISynchronizePageConfiguration configuration) {
configuration.setProperty(ISynchronizePageConfiguration.P_SYNC_INFO_SET, set);
configuration.setMode(ISynchronizePageConfiguration.BOTH_MODE);
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.ISynchronizeParticipant#createPage(org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration)
*/
public IPageBookViewPage createPage(ISynchronizePageConfiguration configuration) {
return new TestPage(configuration);
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.ISynchronizeParticipant#createSynchronizeWizard()
*/
public IWizard createSynchronizeWizard() {
return null;
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.ISynchronizeParticipant#dispose()
*/
public void dispose() {
// Noop
}
/**
*
*/
public void reset() {
set.clear();
}
/**
* @return
*/
public SyncInfoTree getSyncInfoSet() {
return set;
}
}
|