Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Get Physical path of package selected in createPackageDialog
Get Physical path of package selected in createPackageDialog [message #1706414] Wed, 26 August 2015 17:24 Go to next message
yev xxxxx is currently offline yev xxxxxFriend
Messages: 17
Registered: July 2014
Junior Member
How can I get Physical path of package (location on disk) after it was selected via '.createPackageDialog'


 SelectionDialog dlg=JavaUI.createPackageDialog(shell,project,0);
  if (dlg.open() == Window.OK) {
		        Object[] results=dlg.getResult(); // returns PackageFragment[]
}
Re: Get Physical path of package selected in createPackageDialog [message #1707947 is a reply to message #1706414] Thu, 10 September 2015 17:50 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Try this:
   IPackageFragment pkg = ...
   String location = pkg.getUnderlyingResource().getLocation();


HTH
Stephan
Previous Topic:UI Dialog empty depending on platform export
Next Topic:Eclipse on Windows 10
Goto Forum:
  


Current Time: Thu Apr 25 04:17:01 GMT 2024

Powered by FUDForum. Page generated in 0.02814 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top