deletet because wrongly uploaded
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PresentationAction.java
index 784efcd..e3aef09 100644 (file)
@@ -11,10 +11,10 @@ Contributors:
 **********************************************************************/
 package net.sourceforge.phpeclipse.phpeditor;
 
-import java.util.ResourceBundle;
 import org.eclipse.ui.texteditor.ITextEditor;
 import org.eclipse.ui.texteditor.TextEditorAction;
 
+
 /**
  * A toolbar action which toggles the presentation model of the
  * connected text editor. The editor shows either the highlight range
@@ -22,32 +22,32 @@ import org.eclipse.ui.texteditor.TextEditorAction;
  */
 public class PresentationAction extends TextEditorAction {
 
-       /**
-        * Constructs and updates the action.
-        */
-       public PresentationAction() {
-               super(PHPEditorMessages.getResourceBundle(), "TogglePresentation.", null); //$NON-NLS-1$
-               update();
-       }
-       
-       /* (non-Javadoc)
-        * Method declared on IAction
-        */
-       public void run() {
-
-               ITextEditor editor= getTextEditor();
-
-               editor.resetHighlightRange();
-               boolean show= editor.showsHighlightRangeOnly();
-               setChecked(!show);
-               editor.showHighlightRangeOnly(!show);
-       }
-       
-       /* (non-Javadoc)
-        * Method declared on TextEditorAction
-        */
-       public void update() {
-               setChecked(getTextEditor() != null && getTextEditor().showsHighlightRangeOnly());
-               setEnabled(true);
-       }
+  /**
+   * Constructs and updates the action.
+   */
+  public PresentationAction() {
+    super(PHPEditorMessages.getResourceBundle(), "TogglePresentation.", null); //$NON-NLS-1$
+    update();
+  }
+
+  /* (non-Javadoc)
+   * Method declared on IAction
+   */
+  public void run() {
+
+    ITextEditor editor = getTextEditor();
+
+    editor.resetHighlightRange();
+    boolean show = editor.showsHighlightRangeOnly();
+    setChecked(!show);
+    editor.showHighlightRangeOnly(!show);
+  }
+
+  /* (non-Javadoc)
+   * Method declared on TextEditorAction
+   */
+  public void update() {
+    setChecked(getTextEditor() != null && getTextEditor().showsHighlightRangeOnly());
+    setEnabled(true);
+  }
 }