Skip to main content

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

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;   

Back to the top