Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Unable to get Project Handle

If it returns  that project does not exists then it does not exists. Print workspace location absolute path to make sure
you debugging it on the same workspace.

Sagar Zaveri wrote:
Dear All,

I am unable to get project handle here.  Please Help. Thanks in advance.


public class TestHandler extends AbstractHandler implements IHandler {

public Object execute(ExecutionEvent event) throws ExecutionException { IProject proj= ResourcesPlugin.getWorkspace().getRoot().getProject("project1");
        if(!proj.exists()) {
System.out.println("Project does not exist!. Quitting. "); return null; }


------------------------------------------------------------------------

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top