[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[News.eclipse.foundation] Re: Converting a Java package name in an IPath instance

convert your "myapp.mypackage....." to desired format "myapp/mypackage/.." through String parsers.say the resultant String is "strpath"
Get the path of you project by calling :



IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("myproject");
//get a handle to IPath object IPath path=project.getFullPath();
//append the desired String to modify the IPath object.
path.append("/src/"+strpath);
angelo randazzo wrote:


Hi,

I need to convert a package name (like 'myapp.mypackage.mysubpackage') in
an IPath instance (like '/myproject/mysrc/myapp/mypackage/mysubpackage').

How to obtain this? Anyone can help me? Thanks in advance.

BYE
Angelo