Fixed bug in CodeFormatter; for partial formatting select complete <?php ... ?> range
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / CompilationUnitEditorActionContributor.java
index c33d664..6eea5b8 100644 (file)
@@ -14,12 +14,10 @@ import net.sourceforge.phpeclipse.PHPeclipsePlugin;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.swt.SWT;
 import org.eclipse.ui.IActionBars;
 import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.IEditorPart;
 import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.texteditor.AbstractTextEditor;
 import org.eclipse.ui.texteditor.ITextEditor;
 
 public class CompilationUnitEditorActionContributor
@@ -51,12 +49,12 @@ public class CompilationUnitEditorActionContributor
                                getAction(textEditor, "ToggleComment")); //$NON-NLS-1$
                bars.setGlobalActionHandler(PHPdtActionConstants.FORMAT, getAction(
                                textEditor, "Format")); //$NON-NLS-1$
-               bars.setGlobalActionHandler(PHPdtActionConstants.ADD_BLOCK_COMMENT,
-                               getAction(textEditor, "AddBlockComment")); //$NON-NLS-1$
-               bars.setGlobalActionHandler(PHPdtActionConstants.REMOVE_BLOCK_COMMENT,
-                               getAction(textEditor, "RemoveBlockComment")); //$NON-NLS-1$
-               bars.setGlobalActionHandler(PHPdtActionConstants.INDENT, getAction(
-                               textEditor, "Indent")); //$NON-NLS-1$ //$NON-NLS-2$
+//             bars.setGlobalActionHandler(PHPdtActionConstants.ADD_BLOCK_COMMENT,
+//                             getAction(textEditor, "AddBlockComment")); //$NON-NLS-1$
+//             bars.setGlobalActionHandler(PHPdtActionConstants.REMOVE_BLOCK_COMMENT,
+//                             getAction(textEditor, "RemoveBlockComment")); //$NON-NLS-1$
+//             bars.setGlobalActionHandler(PHPdtActionConstants.INDENT, getAction(
+//                             textEditor, "Indent")); //$NON-NLS-1$ //$NON-NLS-2$
 
                if (textEditor != null) {
                        IFile file = null;