Difference between getFullPathName() and getCurrentDirectory() methods in the Rational Rhapsody Java API
What is the difference between the Java API usage of getFullPathName() and getCurrentDirectory() methods in IBM Rational Rhapsody?
You would like to extract the path information of your project in Rational Rhapsody.
These two methods namely getFullPathName() and getCurrentDirectory() are available while declaring an instance of the interface IRPProject in the Rational Rhapsody API.
This method returns the internal path in a UML model that is loaded in Rational Rhapsody and not the local system path of the model location. If you invoke this method directly from IRPProject, it will most likely return an empty space as most models do not have their internal paths set. This is expected behavior.
This method returns the system path ( i.e. Windows or Unix file path to the model itself) e.g. C:\Program Files\Models\modelexample.rpy
However, it doesn't include the model name.e.g. : C\Program Files\Models\
More support for:
Software version: 7.5, 188.8.131.52, 7.5.1, 184.108.40.206, 7.5.2, 220.127.116.11, 7.5.3, 18.104.22.168, 22.214.171.124, 7.6, 126.96.36.199, 7.6.1
Operating system(s): Windows
Reference #: 1575584
Modified date: 2012-12-11