Skip to content

Commit 3021b58

Browse files
committed
Add getter for the supplied error status of ErrorEditorPart
Currently the ErrorEditorPart supplied status can only be seen by a user in the UI, this is a bit unfortunate if for example in an automated test and ErrorEditorPart is seen there is no way to find out what's going wrong and give good assertion messages. This adds ErrorEditorPart#getError to allow such programmatic investigations if ErrorEditorPart is seen in the code.
1 parent bcb4a55 commit 3021b58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,12 @@ public void dispose() {
9494
super.dispose();
9595
parentControl = null;
9696
}
97+
98+
/**
99+
* @return Returns the error status or <code>null</code> if part was created
100+
* without an explicit error status.
101+
*/
102+
public IStatus getError() {
103+
return error;
104+
}
97105
}

0 commit comments

Comments
 (0)