Hello!

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

Note that updates take place every 10 minutes, commits may not be seen immediately.
in progress: term details web service call
authorpreecej <preecej@localhost>
Tue, 15 May 2012 21:36:26 +0000 (21:36 +0000)
committerpreecej <preecej@localhost>
Tue, 15 May 2012 21:36:26 +0000 (21:36 +0000)
svn path=/; revision=328

Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java

index 68bfe3c455f6e2053a2ce577425d78ca11530ff5..ff817790ba46137c414ff753195d068bc48f4044 100644 (file)
@@ -248,10 +248,10 @@ public class SegmentationView extends Composite {
                });
                comboLabel.addSelectionListener(new SelectionAdapter() {
                        public void widgetSelected(SelectionEvent e) {
-                               selectDropdownLabel(e);                                         
+                               selectDropdownLabel(e, comboLabel.getText().substring(comboLabel.getText().indexOf('{')+1,comboLabel.getText().length()-1));                                            
                        }
                });
-               assign = SwtUtils.addButton(termLookupBar, 50, "Assign");
+               assign = SwtUtils.addButton(termLookupBar, 55, "Assign");
                assign.addSelectionListener(new SelectionAdapter() {
         public void widgetSelected(SelectionEvent arg0) {
                if(view.getContext().isEnabled())
@@ -311,13 +311,19 @@ public class SegmentationView extends Composite {
                speciesCombo.setListVisible(true);
        }
        
+       // TODO: you need to find the event hook for segment selection, that resets the comboLabel and the .accessionId (you should use accessionId in this context)
+       public void selectSegment(SelectionEvent e) {
+               System.out.println("curr accession id (from segment): " + this.view.getContext().getEnabledMask().accessionId);
+               termDetailLookup(this.view.getContext().getEnabledMask().accessionId);  
+       }
        
-
-       public void selectDropdownLabel(SelectionEvent e) {
-               termDetailLookup();
+       public void selectDropdownLabel(SelectionEvent e, String accessionId) {
+               System.out.println("curr accession id (from label): " + accessionId);
+               //System.out.println("curr comboLabel value: " + comboLabel.getText());
+               termDetailLookup(accessionId);  
        }
        
-       private void termDetailLookup() {
+       private void termDetailLookup(String accessionId) {
                // 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);
        }