Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » selections in the workbench
selections in the workbench [message #31371] Wed, 16 October 2002 07:59 Go to next message
Carlo Marchiori is currently offline Carlo MarchioriFriend
Messages: 5
Registered: July 2009
Junior Member
I have written an editor and a countent outline page.
Both let the user select elements and I want the selection to
in sync. By adding directly a selection listener to the editor and
to the countent outline page, and than, upon notification, calling
setSelection on the selection provider, leads to an infinite loop,
and besides its not very elegant: I would like the two component
to post the selection, without knowing of each other.

Surely, I miss something about selections in the workbench which
are not well documented.

I would be thankful for any help,
Carlo.
Re: selections in the workbench [message #31416 is a reply to message #31371] Wed, 16 October 2002 08:04 Go to previous messageGo to next message
Carlo Marchiori is currently offline Carlo MarchioriFriend
Messages: 5
Registered: July 2009
Junior Member
I would like to add to my previous message.
I see each workbench site has a selection provider. What's its role?
Should I implement it and than set it on the site, or should I use it as
I find it on the site? I tried both ways, with no success.
I want to post the selection to the other viewers
of the workbench, avoiding loops or other concerns.

Bye,
Carlo.

"exquisitus" <marchiori@cad.it> wrote in message
news:aoj4nd$ih$1@rogue.oti.com...
> I have written an editor and a countent outline page.
> Both let the user select elements and I want the selection to
> in sync. By adding directly a selection listener to the editor and
> to the countent outline page, and than, upon notification, calling
> setSelection on the selection provider, leads to an infinite loop,
> and besides its not very elegant: I would like the two component
> to post the selection, without knowing of each other.
>
> Surely, I miss something about selections in the workbench which
> are not well documented.
>
> I would be thankful for any help,
> Carlo.
>
>
Re: selections in the workbench [message #31472 is a reply to message #31371] Wed, 16 October 2002 14:36 Go to previous message
Eclipse UserFriend
Originally posted by: john_arthorne.o_ti.com

The eclipse.tools newsgroup would be the appropriate place for this
question.
-

exquisitus wrote:

>I have written an editor and a countent outline page.
>Both let the user select elements and I want the selection to
>in sync. By adding directly a selection listener to the editor and
>to the countent outline page, and than, upon notification, calling
>setSelection on the selection provider, leads to an infinite loop,
>and besides its not very elegant: I would like the two component
>to post the selection, without knowing of each other.
>
>Surely, I miss something about selections in the workbench which
>are not well documented.
>
>I would be thankful for any help,
>Carlo.
>
>
Re: selections in the workbench [message #584740 is a reply to message #31371] Wed, 16 October 2002 08:04 Go to previous message
Carlo Marchiori is currently offline Carlo MarchioriFriend
Messages: 5
Registered: July 2009
Junior Member
I would like to add to my previous message.
I see each workbench site has a selection provider. What's its role?
Should I implement it and than set it on the site, or should I use it as
I find it on the site? I tried both ways, with no success.
I want to post the selection to the other viewers
of the workbench, avoiding loops or other concerns.

Bye,
Carlo.

"exquisitus" <marchiori@cad.it> wrote in message
news:aoj4nd$ih$1@rogue.oti.com...
> I have written an editor and a countent outline page.
> Both let the user select elements and I want the selection to
> in sync. By adding directly a selection listener to the editor and
> to the countent outline page, and than, upon notification, calling
> setSelection on the selection provider, leads to an infinite loop,
> and besides its not very elegant: I would like the two component
> to post the selection, without knowing of each other.
>
> Surely, I miss something about selections in the workbench which
> are not well documented.
>
> I would be thankful for any help,
> Carlo.
>
>
Re: selections in the workbench [message #584773 is a reply to message #31371] Wed, 16 October 2002 14:36 Go to previous message
John Arthorne is currently offline John ArthorneFriend
Messages: 176
Registered: July 2009
Senior Member
The eclipse.tools newsgroup would be the appropriate place for this
question.
-

exquisitus wrote:

>I have written an editor and a countent outline page.
>Both let the user select elements and I want the selection to
>in sync. By adding directly a selection listener to the editor and
>to the countent outline page, and than, upon notification, calling
>setSelection on the selection provider, leads to an infinite loop,
>and besides its not very elegant: I would like the two component
>to post the selection, without knowing of each other.
>
>Surely, I miss something about selections in the workbench which
>are not well documented.
>
>I would be thankful for any help,
>Carlo.
>
>
Previous Topic:selections in the workbench
Next Topic:Eclipse and JUnit
Goto Forum:
  


Current Time: Tue Apr 23 02:55:17 GMT 2024

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

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

Back to the top