michael nesterenko
michael nesterenko

Reputation: 14439

project explorer is empty

I have added project explorer view to my own rcp application. It is visible in the window and I can create a new project using new project wizard.

However there are a couple of problems:

I searched for my problem and all solutions I found refer to supplying default page input. I overrode default input in the following way:

@Override
    public IAdaptable getDefaultPageInput() {
        return ResourcesPlugin.getWorkspace().getRoot();
    }

However it did not help, problem remained intact.

There are following plugins referenced from my one:

org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.ide;bundle-version="3.7.0",
org.eclipse.ui.navigator.resources;bundle-version="3.4.300",
org.eclipse.core.resources;bundle-version="3.7.100",
org.eclipse.ui.navigator;bundle-version="3.5.100"

Upvotes: 1

Views: 1598

Answers (1)

michael nesterenko
michael nesterenko

Reputation: 14439

I found root cause of the problem. There were missing adapter mappings in my application. So solution is to call IDE.registerAdapters() to register all necessary adapters. After that call I managed to fill view with some content. Victory!!!!

Upvotes: 2

Related Questions