1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

handle waitForInitCompletion() cases

This commit is contained in:
David McKnight 2008-05-20 18:51:11 +00:00
parent 83bd97bcdf
commit f9470bfb50

View file

@ -675,11 +675,16 @@ public class SystemTableViewPart extends ViewPart
public IStatus run(final IProgressMonitor monitor) public IStatus run(final IProgressMonitor monitor)
{ {
try { try {
RSECorePlugin.waitForInitCompletion(); IStatus wstatus = RSECorePlugin.waitForInitCompletion();
if (!wstatus.isOK()){
return wstatus;
}
} }
catch (InterruptedException e){ catch (InterruptedException e){
return Status.CANCEL_STATUS;
} }
final IMemento memento = _rmemento; final IMemento memento = _rmemento;
String profileId = memento.getString(TAG_TABLE_VIEW_PROFILE_ID); String profileId = memento.getString(TAG_TABLE_VIEW_PROFILE_ID);
String connectionId = memento.getString(TAG_TABLE_VIEW_CONNECTION_ID); String connectionId = memento.getString(TAG_TABLE_VIEW_CONNECTION_ID);