Cosmetic
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPEditor.java
index ade4363..32d4442 100644 (file)
@@ -901,7 +901,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 +913,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 +1578,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 +1590,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 +2285,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 +2307,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 +2324,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 +2353,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 +2462,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 +2484,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 +2501,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 +2530,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 +3185,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);