View Javadoc

1   package sk.uniba.euromath.editor.textEditor.viewers;
2   
3   import org.eclipse.gef.ui.parts.GraphicalViewerImpl;
4   
5   import sk.baka.ikslibs.ids.IDManager;
6   import sk.baka.ikslibs.interval.DOMIntervalSet;
7   import sk.uniba.euromath.document.XMLAccess;
8   import sk.uniba.euromath.editor.selections.DOMSelectionChangedEvent;
9   import sk.uniba.euromath.editor.selections.IDOMSelectionChangedListener;
10  import sk.uniba.euromath.editor.selections.IDOMSelectionProvider;
11  import sk.uniba.euromath.editor.xmlEditor.XMLEditDomain;
12  import sk.uniba.euromath.editor.xmlEditor.XMLEditor;
13  
14  /***
15   * 
16   * @author Martin Kollar
17   */
18  public class TextGraphicalViewerImpl extends GraphicalViewerImpl 
19  				implements IDOMSelectionProvider, IDOMSelectionChangedListener{
20  
21  	private XMLEditor editor;
22  	
23  	/***
24  	 * @param editor Editor that uses this viewer to view its state
25  	 */
26  	public TextGraphicalViewerImpl(XMLEditor editor){
27  		super();
28  		this.editor = editor;
29  	}
30  	
31      private XMLAccess getXMLAccess(){
32          return ((XMLEditDomain)getEditDomain()).getXMLEditor().getXMLAccess();
33      }
34  
35      private IDManager getIDManager(){
36          return ((XMLEditDomain)getEditDomain()).getXMLEditor().getXMLAccess().getIdManager();
37      }
38  
39      public void addSelectionChangedListener(IDOMSelectionChangedListener listener) {
40          // TODO Auto-generated method stub
41          
42      }
43  
44      public DOMIntervalSet getDOMSelection() {
45          // TODO Auto-generated method stub
46          return null;
47      }
48  
49      public void removeSelectionChangedListener(IDOMSelectionChangedListener listener) {
50          // TODO Auto-generated method stub
51          
52      }
53  
54      public void setSelection(DOMIntervalSet selection) {
55          // TODO Auto-generated method stub
56          
57      }
58  
59      public void selectionChanged(DOMSelectionChangedEvent event) {
60          // TODO Auto-generated method stub
61          
62      }
63  }