import org.eclipse.ui.texteditor.DefaultRangeIndicator;
import org.eclipse.ui.texteditor.TextOperationAction;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-
+import org.eclipse.jface.action.IAction;
/**
* Java specific text editor.
*/
public class PHPEditor extends TextEditor {
-
+
/** The outline page */
private PHPContentOutlinePage fOutlinePage;
*/
public void doSave(IProgressMonitor monitor) {
super.doSave(monitor);
+ // compile or not, according to the user preferences
+ IAction a = PHPParserAction.getInstance();
+ if (a != null)
+ a.run();
if (fOutlinePage != null)
fOutlinePage.update();
}
// showMessage(shell, dialogTitle, ActionMessages.getString("Open help not available"), false); //$NON-NLS-1$
}
}
-
+
private String getFunctionName(IDocument doc, int pos) {
Point word = PHPWordExtractor.findWord(doc, pos);
if (word != null) {