webdav/ftp plugin [message #418101] |
Wed, 23 March 2005 12:07 |
Eclipse User |
|
|
|
Originally posted by: kent.generatescape.com
Sorry this may or may not be the right place, but I can't find any place
that deals with webdav.
Anways, any, any and I mean any help with this problem would be grand.
I integrated the webdav / ftp plugin in an rcp application and it works
great, BUT I need to somehow to know which directory is selected in the plug
in and bugger me if I can figure out how to do that.
Here are some approaches I took, but selection changed never fires.
getSite().getPage().addSelectionListener(
"org.eclipse.team.ui.target.SiteExplorerView", new
ISelectionListener()
{
public void selectionChanged(IWorkbenchPart part, ISelection
selection)
{
System.out.println("Selection changed!");
}
});
This one gives me a null pointer for the ISelectionProvider.
IWorkbenchPage page = getViewSite().getPage();
IViewPart ivp = page
.findView("org.eclipse.team.ui.target.SiteExplorerView");
IViewSite ivs = ivp.getViewSite();
ISelectionProvider isp = ivs.getSelectionProvider();
isp.addSelectionChangedListener(new ISelectionChangedListener()
{
public void selectionChanged(SelectionChangedEvent event)
{
System.out.println("Selection changed!");
}
});
Does anyone have any ideas?
thanks a million
kent
|
|
|
Powered by
FUDForum. Page generated in 0.03145 seconds