Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Eclipse アプリケーションを使用して DSL を実行しています。実行中の UI からファイルを取得して何かを行う機能を追加したいと考えています。
実行時にプラグインのファイル ディレクトリを取得するにはどうすればよいですか?
ありがとう、ダナ
myPlugin.getBundle().getLocation()
また
URL pluginUrl = myPlugin.getBundle().getEntry("/"); pluginUrl = FileLocator.resolve(pluginUrl); File pluginLocation = new File(pluginUrl.getFile);