Getting project location
- From: Praki <visitprakashindia@xxxxxxxxx>
- Date: Mon, 27 Aug 2007 11:03:06 -0000
Hi all,
i m creating plugin for my envivronment.for my plugin to access some
of my file in the general location in the hard disk i have hard coded
the plugin. i want to make it generalised for all the user.now i have
hard coded the path in the code.
public RecordingUpload(IWorkbenchWindow window){
try{
BaseSelectionListenerAction
baseSelectionListenerAction = new
ExportResourcesAction(window);
IStructuredSelection structuredSelection =
baseSelectionListenerAction.getStructuredSelection();
IResource currentResource
=(IResource)structuredSelection.getFirstElement();
System.out.println("workspace.fullpath:"+
currentResource.getFullPath());
i m using this code to get the path in one of my menu.when i take that
menu i m getting java.lang.NullPointerException. please correct me if
i m wrong the way or the place i m using.Recording Upload in my menu
class constructor.
plz guide me where and how i have to use this code to get the project
location.
thanks in advance
Prakash
.
- Prev by Date: Eclipse doesn't behave like built-in help says...
- Next by Date: Too to speed up directory intensive apps
- Previous by thread: Eclipse doesn't behave like built-in help says...
- Next by thread: Too to speed up directory intensive apps
- Index(es):
Relevant Pages
|