Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java
index 7547035fd..205d268e0 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangesSection.java
@@ -26,7 +26,7 @@ import org.eclipse.ui.part.PageBook;
/**
* Section shown in a participant page to show the changes for this participant. This
* includes a diff viewer for browsing the changes.
- *
+ *
* @since 3.2
*/
public class ChangesSection extends Composite {
@@ -34,14 +34,14 @@ public class ChangesSection extends Composite {
private AbstractSynchronizePage page;
private ISynchronizePageConfiguration configuration;
private FormToolkit forms;
-
+
/**
* Page book either shows the diff tree viewer if there are changes or
* shows a message to the user if there are no changes that would be
* shown in the tree.
*/
private PageBook changesSectionContainer;
-
+
/**
* Diff tree viewer that shows synchronization changes. This is created
* by the participant.
@@ -50,7 +50,7 @@ public class ChangesSection extends Composite {
/**
* Create a changes section on the following page.
- *
+ *
* @param parent the parent control
* @param page the page showing this section
* @param configuration the configuration for the synchronize page
@@ -59,7 +59,7 @@ public class ChangesSection extends Composite {
super(parent, SWT.NONE);
this.page = page;
this.configuration = configuration;
-
+
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
@@ -67,23 +67,23 @@ public class ChangesSection extends Composite {
GridData data = new GridData(GridData.FILL_BOTH);
data.grabExcessVerticalSpace = true;
setLayoutData(data);
-
+
forms = new FormToolkit(parent.getDisplay());
forms.setBackground(getListBackgroundColor());
HyperlinkGroup group = forms.getHyperlinkGroup();
group.setBackground(getListBackgroundColor());
-
+
changesSectionContainer = new PageBook(this, SWT.NONE);
data = new GridData(GridData.FILL_BOTH);
data.grabExcessHorizontalSpace = true;
data.grabExcessVerticalSpace = true;
changesSectionContainer.setLayoutData(data);
}
-
+
protected Color getListBackgroundColor() {
return getShell().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
}
-
+
public PageBook getContainer() {
return changesSectionContainer;
}
@@ -99,7 +99,7 @@ public class ChangesSection extends Composite {
protected AbstractSynchronizePage getPage() {
return page;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.swt.widgets.Widget#dispose()
*/
@@ -108,7 +108,7 @@ public class ChangesSection extends Composite {
super.dispose();
forms.dispose();
}
-
+
public void setViewer(Viewer viewer) {
this.changesViewer = viewer;
initializeChangesViewer();
@@ -129,7 +129,7 @@ public class ChangesSection extends Composite {
public Viewer getChangesViewer() {
return changesViewer;
}
-
+
protected boolean isThreeWay() {
return ISynchronizePageConfiguration.THREE_WAY.equals(getConfiguration().getComparisonType());
}

Back to the top