From b2bb4da71be62cecae298db80b692028a8d3e542 Mon Sep 17 00:00:00 2001 From: lingutln Date: Mon, 30 Jan 2012 21:23:23 +0000 Subject: [PATCH] Layout changes. Done by Nikhil. svn path=/; revision=284 --- Annotation/src/ie/dcu/apps/ist/AppWindow.java | 2 +- Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Annotation/src/ie/dcu/apps/ist/AppWindow.java b/Annotation/src/ie/dcu/apps/ist/AppWindow.java index d157336..48a77cf 100644 --- a/Annotation/src/ie/dcu/apps/ist/AppWindow.java +++ b/Annotation/src/ie/dcu/apps/ist/AppWindow.java @@ -253,7 +253,7 @@ public class AppWindow extends ApplicationWindow implements FileDropListener { protected Control createContents(Composite parent) { content = new Composite(parent, SWT.NONE); - content.setLayout(LayoutFactory.createGridLayout(0, 0, 3, false)); + content.setLayout(LayoutFactory.createGridLayout(0, 0, 1, false)); view = createView(content); view.setLayoutData(LayoutFactory.createGridData()); diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index bb01738..6db9763 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -11,6 +11,7 @@ import ie.dcu.segment.options.SegmenterOptionDialog; import ie.dcu.segment.painters.SegmentationPainter; import ie.dcu.swt.*; import ie.dcu.swt.event.*; +import ie.dcu.swt.layout.LayoutFactory; import java.lang.reflect.InvocationTargetException; import java.net.*; @@ -47,6 +48,9 @@ public class SegmentationView extends Composite { // tool bars private final ToolBar mainToolbar, viewSelectionToolbar, termLookupBar; + // Composite for Term details + private Composite termDetailComposite; + // term detail table private final Table termDetailTable; @@ -334,6 +338,7 @@ public class SegmentationView extends Composite { gd.verticalAlignment = SWT.FILL; view.setLayoutData(gd); + // Layout term lookup toolbar gd = new GridData(); gd.horizontalAlignment = SWT.FILL; @@ -349,6 +354,7 @@ public class SegmentationView extends Composite { gd.verticalIndent = 1; gd.verticalSpan = 1; termDetailTable.setLayoutData(gd); + } -- 2.34.1