예제 #1
0
 public void run() {
   if (textViewer == null) {
     textViewer = notesViewer.getImplementation().getTextViewer();
   }
   if (textViewer != null) {
     if (textViewer.canDoOperation(op)) {
       textViewer.doOperation(op);
     }
   }
 }
예제 #2
0
 public void update(TextViewer textViewer) {
   setEnabled(textViewer.canDoOperation(op));
 }