Eclipseplugins
ExpandAllHandler.java
1 package com.proalpha.java.oea.plugins.oeaextension.codefoldingutility.handlers;
2 
3 import org.eclipse.core.commands.ExecutionEvent;
4 import org.eclipse.core.commands.ExecutionException;
5 
6 import com.openedge.pdt.text.editor.OETextEditor;
7 
9 
10  public Object execute(ExecutionEvent event) throws ExecutionException {
11 
12  OETextEditor editor = getOETextEditor();
13 
14  if (editor != null)
15  editor.getOESourceViewer().getProjectionAnnotationModel()
16  .expandAll(0, editor.getDocument().getLength());
17 
18  return null;
19 
20  }
21 
22 }