3
Je développe une application Eclipse RCP, appelons-la MyRcpApp. Ainsi, MyRcpApp aura le fichier MyRcpApp.ini, près de son lanceur MyRcpApp.exe.Eclipse RCP: comment obtenir le chemin vers le fichier ini?
Est-il possible d'obtenir le chemin d'accès complet au fichier ini (comme C:
Merci à l'avance, Sergey
Sauf si vous êtes sur Mac. Sur Mac, le fichier ini se trouve à l'intérieur de youappname.app. \t 'Chaîne spec = Platform.getInstallLocation(). GetURL() \t \t \t \t \t + Platform.getProduct(). GetName() +" .ini "; \t \t \t \t si (Util.isMac()) { \t \t \t spec = Platform.getInstallLocation(). GetURL() \t \t \t \t \t + Platform.getProduct(). GetName() + » .app/Sommaire/MacOS/" \t \t \t \t \t + Platform.getProduct(). GetName() +" .ini "; \t \t} \t \t URL url = nouvelle URL (spec); ' – Alex