[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Good practice using resource plug-in

You can also look here:

http://wiki.eclipse.org/Common_Navigator_Framework

Francis

marsha wrote:
Hi
Thank you for your reply.
Yes I did have a look and I implemented it and it worked. But then I think that I used it wrong in that case.


I have done it as follows:

In my view that extends CommonNavigator I have:
protected IAdaptable getInitialInput() {
    return new ProjectsCollector();
}

My ProjectsCollector:
public class ProjectsCollector extends PlatformObject {

    public IProject[] getProjects() {
        return ResourcesPlugin.getWorkspace().getRoot().getProjects();
    }
}

So I still use the resources plug-in.
Can you tell me how I can do it better? Sorry I'm really a newbie.

Thanks

Marsha