Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
Changed curator names in application.properties; added SelectionListener to term...
authorpreecej <preecej@localhost>
Tue, 7 Feb 2012 01:32:27 +0000 (01:32 +0000)
committerpreecej <preecej@localhost>
Tue, 7 Feb 2012 01:32:27 +0000 (01:32 +0000)
svn path=/; revision=296

Annotation/resources/config/application.properties
Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java

index 3b458e819ff4a0d9175380b22088246767cefb5b..9b65cb4fff869f7d0df058d2e38e228fa03052e5 100644 (file)
@@ -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=<acc_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
index 9391788962a091b5c9c830a15fdf1fd05fd6c917..b928b269bde5e8f3f854ba6185d5e8d04c48ada5 100644 (file)
@@ -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);