Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » webdav/ftp plugin
webdav/ftp plugin [message #418101] Wed, 23 March 2005 12:07
Eclipse UserFriend
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
Previous Topic:Inter-process communication
Next Topic:inter-plugin communication
Goto Forum:
  


Current Time: Wed Jul 30 13:34:57 EDT 2025

Powered by FUDForum. Page generated in 0.04207 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top