From: preecej Date: Tue, 7 Feb 2012 01:32:27 +0000 (+0000) Subject: Changed curator names in application.properties; added SelectionListener to term... X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=9f4f44055f28ed3ea2aff61e8425bea0ca288e33;p=old-jaiswallab-svn%2F.git Changed curator names in application.properties; added SelectionListener to term lookup combobox svn path=/; revision=296 --- diff --git a/Annotation/resources/config/application.properties b/Annotation/resources/config/application.properties index 3b458e8..9b65cb4 100644 --- a/Annotation/resources/config/application.properties +++ b/Annotation/resources/config/application.properties @@ -31,4 +31,4 @@ POWebService.TermSearch.URL=http://palea.cgrb.oregonstate.edu/services/PO_web_se POWebService.TermDetail.URL=http://palea.cgrb.oregonstate.edu/services/PO_web_service.php?request_type=term_detail&accession_id= #Curators names -CuratorNamesList=Nikhil,Justin,Pankaj,Lol Cooper,Rajani \ No newline at end of file +CuratorNamesList=Nikhil Lingutla,Justin Preece,Pankaj Jaiswal,Laurel Cooper,Rajani Raja \ No newline at end of file diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index 9391788..b928b26 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -240,13 +240,11 @@ public class SegmentationView extends Composite { dropdownLabels(e); } }); - /* - comboLabel.addFocusListener(new FocusAdapter() { - public void focusGained(FocusEvent e) { - termDetailLookup(e); + comboLabel.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + selectDropdownLabel(e); } }); - */ assign = SwtUtils.addButton(termLookupBar, 52, "Assign"); assign.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent arg0) { @@ -287,9 +285,6 @@ public class SegmentationView extends Composite { comboLabel.remove(0,comboLabel.getItemCount()-1); terms = labels.getLabels(comboLabel.getText()); assign.setEnabled(!(comboLabel.getText().isEmpty())); - if (e.keyCode == 32) { - termDetailLookup(); - } } int i = 0; for (OntologyTerm term : terms) @@ -300,6 +295,10 @@ public class SegmentationView extends Composite { } } + public void selectDropdownLabel(SelectionEvent e) { + termDetailLookup(); + } + private void termDetailLookup() { // call term detail web service method using accession id (from 1) segment obj or 2) label selection (before assign button is clicked)) termDetailTable.setEnabled(true);