aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2010-04-23 20:29:36 (EDT)
committerRemy Suen2010-04-23 20:29:36 (EDT)
commitb83aa3d33b581b2d92f043a92b953f1f329ad289 (patch)
tree9abdbf96db3842ae982c4a9633cc8aeb435d2654
parente9e5ba4bcbb8180098f0ff8f3258ed29e019ef84 (diff)
downloadegit-b83aa3d33b581b2d92f043a92b953f1f329ad289.zip
egit-b83aa3d33b581b2d92f043a92b953f1f329ad289.tar.gz
egit-b83aa3d33b581b2d92f043a92b953f1f329ad289.tar.bz2
Remove an extraneous border from 'Git Repositories' viewrefs/changes/95/595/1
The view creates a regular TreeViewer using the basic constructor that does not specify a style bit. Internally, the JFace code will create a new SWT Tree widget using SWT.BORDER. This introduces an unnecessary border around the tree which takes away precious pixels from the user interface. Change-Id: Ie644cf9895e0f18045c677c5f8d0e267e3ac06cc
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java
index 7d70f30..e23e2eb 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java
@@ -72,7 +72,6 @@ import org.eclipse.swt.events.MenuDetectListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
@@ -226,11 +225,7 @@ public class RepositoriesView extends ViewPart implements ISelectionProvider {
@Override
public void createPartControl(Composite parent) {
-
- Composite main = new Composite(parent, SWT.NONE);
- main.setLayout(new FillLayout());
-
- tv = new TreeViewer(main);
+ tv = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
tv.setContentProvider(new RepositoriesViewContentProvider());
// the label provider registers itself
new RepositoriesViewLabelProvider(tv);