I was trying to load and unload rhapsody project from APIs
But if the pkg is already loaded before load() API is called, returned will be null.
Is there any other way to check if a Unit is loaded or not, other than comparing with null return value, something like isLoaded(0).
Also this would be usefull if only check has to be made and not to be loaded. Because if pkg.getSaveUnit().load(0) is called to check if it is loaded, pkg will be loaded even if it was not the intent.
Please can any one tell me how to carry out this check or is there any other better way to load and unload with all these checks.
This topic has been locked.
1 reply Latest Post - 2012-11-12T15:52:35Z by SystemAdmin
Pinned topic Rhapsody IRPSaveUnit
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-12T15:52:35Z at 2012-11-12T15:52:35Z by SystemAdmin
SystemAdmin 110000D4XK1305 PostsACCEPTED ANSWER
Re: Rhapsody IRPSaveUnit2012-11-12T15:52:35Z in response to SystemAdminIRPUnit has a method called getIsStub. I think this should work for what you are trying to do.
from the javadoc for the API:
Checks whether the unit is currently unloaded.
1 if the unit is not currently loaded, 0 if it is currently loaded