Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » SWITCH SELECTION PROVIDER PROBLEM
SWITCH SELECTION PROVIDER PROBLEM [message #67600] Thu, 28 July 2005 19:09
Eclipse UserFriend
Originally posted by: dakanalis.ced.tuc.gr

Hi,

I try to develop a graphical editor with two graphical viewers. I have
implement a listener in order to initialize the editor each time I switch
between the two viewers. Inside that listener I want to set as selection
provider of the editor the current viewer each time. For that purpose I use
the following code:
editor.getSite().setSelectionProvider( currentViewer );
The problem is that when I try to select a part in the second viewer, the
selection is null because the selectionprovider has not change.Of course the
selectionProvider on the site has changed and the getSelectionProvider
method returns the right provider but when I select something in the
graphical area the selection is null. I managed to fix that problem by using
the method partInputChanged of the class AbstractSelectionService, but that
class it belongs in the org.eclipse.ui.internal package.

What I want is to find a way to update the selection provider of my editor
each time I switch between the two viewers without to use anything from the
internal package. Is thos possible? Any Idea?


Thanks
Previous Topic:Problems with "import org.apache.tools.ant.*;"
Next Topic:SWITCH SELECTION PROVIDER PROBLEM
Goto Forum:
  


Current Time: Sat Apr 20 00:32:51 GMT 2024

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

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

Back to the top