fixed: java.lang.IllegalArgumentException: Attempted to beginRule...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPUnitEditor.java
index f6d643b..4c62baf 100644 (file)
@@ -1779,8 +1779,10 @@ public class PHPUnitEditor extends PHPEditor { //implements
 
                        setStatusLineErrorMessage(null);
 
-                       IWorkingCopyManager manager = PHPeclipsePlugin.getDefault()
-                                       .getWorkingCopyManager();
+                       updateState(getEditorInput());
+                       validateState(getEditorInput());
+                       
+                       IWorkingCopyManager manager = PHPeclipsePlugin.getDefault().getWorkingCopyManager();
                        ICompilationUnit unit = manager.getWorkingCopy(getEditorInput());
 
                        if (unit != null) {
@@ -1975,8 +1977,7 @@ public class PHPUnitEditor extends PHPEditor { //implements
         * @see org.eclipse.ui.texteditor.AbstractTextEditor#performSave(boolean,
         *      org.eclipse.core.runtime.IProgressMonitor)
         */
-       protected void performSave(boolean overwrite,
-                       IProgressMonitor progressMonitor) {
+       protected void performSave(boolean overwrite, IProgressMonitor progressMonitor) {
                IDocumentProvider p = getDocumentProvider();
                if (p instanceof PHPDocumentProvider) {
                        PHPDocumentProvider cp = (PHPDocumentProvider) p;