public class JavaSourceViewer extends ProjectionViewer implements IPropertyChangeListener {
-
+
/**
* Text operation code for requesting the outline for the current input.
*/
case SHOW_HIERARCHY:
// fHierarchyPresenter.showInformation();
return;
+ case FORMAT:
+ Point point = getSelectedRange();
+ if (point.y==0) {
+ setSelectedRange(0, getDocument().getLength());
+ }
+ break;
}
super.doOperation(operation);