blob: 8e12a6918f108da6805d691a5357fe3a919bcf5e (
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
|
package org.eclipse.team.internal.ui.synchronize;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.team.internal.ui.widgets.FormSection;
import org.eclipse.team.internal.ui.widgets.FormWidgetFactory;
import org.eclipse.team.ui.synchronize.ISynchronizeParticipant;
import org.eclipse.team.ui.synchronize.ISynchronizeView;
public class DropDownParticipantSection extends FormSection {
private ISynchronizeParticipant participant;
private Composite parent;
private ParticipantComposite participantComposite;
private ISynchronizeView view;
public DropDownParticipantSection(Composite parent, ISynchronizeParticipant participant, ISynchronizeView view) {
this.participant = participant;
this.parent = parent;
this.view = view;
setCollapsable(true);
setCollapsed(true);
}
/*
* (non-Javadoc)
* @see org.eclipse.team.internal.ui.widgets.FormSection#getDescription()
*/
public String getDescription() {
return null;
}
/*
* (non-Javadoc)
* @see org.eclipse.team.internal.ui.widgets.FormSection#getHeaderText()
*/
public String getHeaderText() {
return "Summary";
}
/*
* (non-Javadoc)
* @see org.eclipse.team.internal.ui.widgets.FormSection#createClient(org.eclipse.swt.widgets.Composite,
* org.eclipse.team.internal.ui.widgets.FormWidgetFactory)
*/
public Composite createClient(Composite parent, FormWidgetFactory factory) {
participantComposite = new ParticipantComposite(parent, participant, view, SWT.NONE);
return participantComposite;
}
protected void reflow() {
super.reflow();
parent.setRedraw(false);
parent.getParent().setRedraw(false);
parent.layout(true);
parent.getParent().layout(true);
parent.setRedraw(true);
parent.getParent().setRedraw(true);
}
}
|