aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2010-04-01 06:12:17 (EDT)
committerChris Aniszczyk2010-04-01 13:00:07 (EDT)
commit724ceb01f229990ee9527c237e90dfaf8e06f98d (patch)
treefceaefd7b59c19b71b627056113f13b5876ecd01
parent686e36359884d673a1a77e2a00ae5f5c643efc6f (diff)
downloadegit-724ceb01f229990ee9527c237e90dfaf8e06f98d.zip
egit-724ceb01f229990ee9527c237e90dfaf8e06f98d.tar.gz
egit-724ceb01f229990ee9527c237e90dfaf8e06f98d.tar.bz2
Repositories View marginsrefs/changes/06/506/3
This does away with some unneccessary margins. Bug: 307797 Change-Id: I5e64e44c0fafc4f56e40d3a47cb1c05fe8539fd0 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesView.java9
1 files changed, 2 insertions, 7 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 d641636..214acfb 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
@@ -52,7 +52,6 @@ import org.eclipse.egit.ui.internal.repository.RepositoryTreeNode.RepositoryTree
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
@@ -73,7 +72,7 @@ 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.GridLayout;
+import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
@@ -230,9 +229,7 @@ public class RepositoriesView extends ViewPart implements ISelectionProvider {
public void createPartControl(Composite parent) {
Composite main = new Composite(parent, SWT.NONE);
- main.setLayout(new GridLayout(1, false));
- GridDataFactory.fillDefaults().grab(true, true).applyTo(main);
- main.setLayout(new GridLayout(1, false));
+ main.setLayout(new FillLayout());
tv = new TreeViewer(main);
tv.setContentProvider(new RepositoriesViewContentProvider());
@@ -258,8 +255,6 @@ public class RepositoriesView extends ViewPart implements ISelectionProvider {
// make the tree rather wide to accommodate long directory names
tv.getTree().getColumn(0).setWidth(700);
- GridDataFactory.fillDefaults().grab(true, true).applyTo(tv.getTree());
-
addContextMenu();
addActionsToToolbar();