blob: 5d399e0d54ef44daef62be7ce92a5d01f576d4e1 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
package org.eclipse.team.ui.sync;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.team.core.subscribers.TeamSubscriber;
import org.eclipse.team.internal.ui.TeamUIPlugin;
import org.eclipse.team.internal.ui.sync.pages.SubscriberSynchronizeViewPage;
import org.eclipse.team.internal.ui.sync.sets.SubscriberInput;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.part.IPageBookViewPage;
public class SubscriberPage extends AbstractSynchronizeViewPage {
protected TeamSubscriber subscriber;
protected SubscriberSynchronizeViewPage page;
/**
* Property constant indicating the mode of a page has changed.
*/
public static final String P_SYNCVIEWPAGE_MODE = TeamUIPlugin.ID + ".P_SYNCVIEWPAGE_MODE"; //$NON-NLS-1$
/**
* Modes are direction filters for the view
*/
public final static int INCOMING_MODE = 1;
public final static int OUTGOING_MODE = 2;
public final static int BOTH_MODE = 3;
public final static int CONFLICTING_MODE = 4;
/**
* Property constant indicating the mode of a page has changed.
*/
public static final String P_SYNCVIEWPAGE_LAYOUT = TeamUIPlugin.ID + ".P_SYNCVIEWPAGE_LAYOUT"; //$NON-NLS-1$
/**
* View type constant (value 0) indicating that the synchronize view will be shown
* as a tree.
*/
public static final int TREE_LAYOUT = 0;
/**
* View type constant (value 1) indicating that the synchronize view will be shown
* as a table.
*/
public static final int TABLE_LAYOUT = 1;
public SubscriberPage(TeamSubscriber subscriber, String name, ImageDescriptor imageDescriptor) {
super(name, imageDescriptor);
this.subscriber = subscriber;
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.sync.ISynchronizeViewPage#createPage(org.eclipse.team.ui.sync.ISynchronizeView)
*/
public IPageBookViewPage createPage(INewSynchronizeView view) {
this.page = new SubscriberSynchronizeViewPage(this, view);
return page;
}
public SubscriberInput getInput() {
return page.getInput();
}
public void setMode(int mode) {
firePropertyChange(this, P_SYNCVIEWPAGE_MODE, new Integer(page.getMode()), new Integer(mode));
}
public int getMode() {
return page.getMode();
}
public void setLayout(int layout) {
firePropertyChange(this, P_SYNCVIEWPAGE_LAYOUT, new Integer(page.getLayout()), new Integer(layout));
}
public int getLayout() {
return page.getLayout();
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.sync.AbstractSynchronizeViewPage#dispose()
*/
protected void dispose() {
super.dispose();
}
/* (non-Javadoc)
* @see org.eclipse.team.ui.sync.AbstractSynchronizeViewPage#init()
*/
protected void init() {
super.init();
}
public TeamSubscriber getSubscriber() {
return subscriber;
}
public void setActionsBars(IActionBars actionBars) {
}
}
|