From: khartlage Date: Wed, 16 Jun 2004 17:44:42 +0000 (+0000) Subject: fixed: java.lang.IllegalArgumentException: Attempted to beginRule... X-Git-Url: http://git.phpeclipse.com?hp=ebbae61c704f4da48ce1aa97d29d13cd90035a17 fixed: java.lang.IllegalArgumentException: Attempted to beginRule... --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java index f6d643b..4c62baf 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java @@ -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;