From: preecej Date: Tue, 31 Jan 2012 01:33:35 +0000 (+0000) Subject: updated list of termDetailTable items to build from an enum (up in declarations) X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=8391d019a3cccf675b0424a39ababefa0fbfb429;p=old-jaiswallab-svn%2F.git updated list of termDetailTable items to build from an enum (up in declarations) svn path=/; revision=288 --- diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index 1359f80..209f538 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -117,6 +117,14 @@ public class SegmentationView extends Composite { private ToolAction action; }; + public enum termDetailLabels { + n("Name"), a("Accession ID"), b("Branch") /* a.k.a. "Aspect" */, d("Definition"), c("Comment"), s("Synonyms"); + final String extendedLabel; + termDetailLabels(String extendedLabel) { + this.extendedLabel = extendedLabel; + } + }; + // constructor public SegmentationView(Properties props, Composite parent, int style) { super(parent, style); @@ -303,38 +311,13 @@ public class SegmentationView extends Composite { column.setText (titles [i]); } - TableItem item1 = new TableItem (termDetailTable, SWT.NONE); - item1.setText (0, "Name"); - item1.setText (1, ""); - - TableItem item2 = new TableItem (termDetailTable, SWT.NONE); - item2.setText (0, "Accession ID"); - item2.setText (1, ""); - - TableItem item3 = new TableItem (termDetailTable, SWT.NONE); - item3.setText (0, "Branch"); // a.k.a. "Aspect" - item3.setText (1, ""); - - TableItem item4 = new TableItem (termDetailTable, SWT.NONE); - item4.setText (0, "Definition"); - item4.setText (1, ""); - - TableItem item5 = new TableItem (termDetailTable, SWT.NONE); - item5.setText (0, "Comment"); - item5.setText (1, ""); - - TableItem item6 = new TableItem (termDetailTable, SWT.NONE); - item6.setText (0, "Synonyms"); - item6.setText (1, ""); - - /* - int count = 6; - for (int i=0; i