Organized imports.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPEditor.java
index ade4363..9cf0602 100644 (file)
@@ -171,7 +171,6 @@ import org.eclipse.ui.texteditor.ITextEditorActionConstants;
 import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
 import org.eclipse.ui.texteditor.IUpdate;
 import org.eclipse.ui.texteditor.MarkerAnnotation;
-import org.eclipse.ui.texteditor.ResourceAction;
 import org.eclipse.ui.texteditor.SourceViewerDecorationSupport;
 import org.eclipse.ui.texteditor.TextEditorAction;
 import org.eclipse.ui.texteditor.TextNavigationAction;
@@ -901,7 +900,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
   //
   //        while (offset >= 0) {
   //          c = document.getChar(offset);
-  //          if (!Character.isJavaIdentifierPart(c))
+  //          if (!Scanner.isPHPIdentifierPart(c))
   //            break;
   //          --offset;
   //        }
@@ -913,7 +912,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
   //
   //        while (offset < length) {
   //          c = document.getChar(offset);
-  //          if (!Character.isJavaIdentifierPart(c))
+  //          if (!Scanner.isPHPIdentifierPart(c))
   //            break;
   //          ++offset;
   //        }
@@ -1578,7 +1577,6 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
 
         while (offset >= 0) {
           c = document.getChar(offset);
-          //                                   if (!Character.isJavaIdentifierPart(c)&&c!='$')
           if (!Scanner.isPHPIdentifierPart(c) && c != '$')
             break;
           --offset;
@@ -1591,7 +1589,6 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
 
         while (offset < length) {
           c = document.getChar(offset);
-          //                                   if (!Character.isJavaIdentifierPart(c)&&c!='$')
           if (!Scanner.isPHPIdentifierPart(c) && c != '$')
             break;
           ++offset;
@@ -2287,7 +2284,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       getTextWidget().setCaretOffset(modelOffset2WidgetOffset(getSourceViewer(), position));
@@ -2309,7 +2306,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       if (!validateEditorInputState())
@@ -2326,7 +2323,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#findNextPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#findNextPosition(int)
      */
     protected int findNextPosition(int position) {
       return fIterator.following(position);
@@ -2355,7 +2352,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.NextSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       final ISourceViewer viewer = getSourceViewer();
@@ -2464,7 +2461,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       getTextWidget().setCaretOffset(modelOffset2WidgetOffset(getSourceViewer(), position));
@@ -2486,7 +2483,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       if (!validateEditorInputState())
@@ -2503,7 +2500,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#findPreviousPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#findPreviousPosition(int)
      */
     protected int findPreviousPosition(int position) {
       return fIterator.preceding(position);
@@ -2532,7 +2529,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
     }
 
     /*
-     * @see org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
+     * @see net.sourceforge.phpdt.internal.ui.javaeditor.JavaEditor.PreviousSubWordAction#setCaretPosition(int)
      */
     protected void setCaretPosition(final int position) {
       final ISourceViewer viewer = getSourceViewer();
@@ -3187,12 +3184,13 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
 
     fFoldingGroup = new FoldingActionGroup(this, getViewer());
 
-    ResourceAction resAction = new TextOperationAction(PHPEditorMessages.getResourceBundle(),
-        "ShowJavaDoc.", this, ISourceViewer.INFORMATION, true); //$NON-NLS-1$
-    resAction = new InformationDispatchAction(PHPEditorMessages.getResourceBundle(),
-        "ShowJavaDoc.", (TextOperationAction) resAction); //$NON-NLS-1$
-    resAction.setActionDefinitionId(net.sourceforge.phpdt.ui.actions.PHPEditorActionDefinitionIds.SHOW_JAVADOC);
-    setAction("ShowJavaDoc", resAction); //$NON-NLS-1$
+//    ResourceAction resAction = new TextOperationAction(PHPEditorMessages.getResourceBundle(),
+//        "ShowJavaDoc.", this, ISourceViewer.INFORMATION, true); //$NON-NLS-1$
+//    resAction = new InformationDispatchAction(PHPEditorMessages.getResourceBundle(),
+//        "ShowJavaDoc.", (TextOperationAction) resAction); //$NON-NLS-1$
+//    resAction.setActionDefinitionId(net.sourceforge.phpdt.ui.actions.PHPEditorActionDefinitionIds.SHOW_JAVADOC);
+//    setAction("ShowJavaDoc", resAction); //$NON-NLS-1$
+    
     // WorkbenchHelp.setHelp(resAction,
     // IJavaHelpContextIds.SHOW_JAVADOC_ACTION);