AddMappingListener.java
Go to the documentation of this file.
00001 package instruction.gui;
00002 
00003 import instruction.gui.dialog.AddMappingDlg;
00004 import instruction.importer.AddCycMappingListener;
00005 import instruction.semanticObjects.Word;
00006 
00007 public class AddMappingListener implements AddCycMappingListener {
00008 
00009         String synset = null;
00010         String concept = null;
00011         
00012         @Override
00013         public String[] getCycMappingForWord(Word word) {
00014                 AddMappingDlg dlg = new AddMappingDlg(null, word);
00015                 dlg.setModal( true );           
00016                 dlg.setVisible( true );
00017                 
00018                 synset = dlg.getSynset();
00019                 concept = dlg.getConcept();
00020                 if (synset == null)
00021                         return null;
00022                 return new String[] {synset, concept};
00023         }
00024 
00025 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


comp_ehow
Author(s): Moritz Tenorth, Daniel Nyga
autogenerated on Tue Apr 16 2013 00:18:02