Getting project location



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

.



Relevant Pages

  • Epson GT-10000+ Photoshop plugin
    ... plugin for this scanner? ... I have had to replace my hard disk after a ... crash that wiped everything and lost the plugin. ... Epson technical support they said they didn't have it any more. ...
    (comp.periphs.scanners)
  • Re: Get a file thru FTP?
    ... FTP to my hard disk. ... Is there any command or code or plugin or ... The Monkeybread Software Realbasic Plugin v7.0. ...
    (comp.lang.basic.realbasic)