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;
//
// while (offset >= 0) {
// c = document.getChar(offset);
- // if (!Character.isJavaIdentifierPart(c))
+ // if (!Scanner.isPHPIdentifierPart(c))
// break;
// --offset;
// }
//
// while (offset < length) {
// c = document.getChar(offset);
- // if (!Character.isJavaIdentifierPart(c))
+ // if (!Scanner.isPHPIdentifierPart(c))
// break;
// ++offset;
// }
while (offset >= 0) {
c = document.getChar(offset);
- // if (!Character.isJavaIdentifierPart(c)&&c!='$')
if (!Scanner.isPHPIdentifierPart(c) && c != '$')
break;
--offset;
while (offset < length) {
c = document.getChar(offset);
- // if (!Character.isJavaIdentifierPart(c)&&c!='$')
if (!Scanner.isPHPIdentifierPart(c) && c != '$')
break;
++offset;
}
/*
- * @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));
}
/*
- * @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())
}
/*
- * @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);
}
/*
- * @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();
}
/*
- * @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));
}
/*
- * @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())
}
/*
- * @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);
}
/*
- * @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();
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);