Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to mix GEF's selection display into the PropertySheet with other selections from different Views
How to mix GEF's selection display into the PropertySheet with other selections from different Views [message #142464] Mon, 12 July 2004 17:26 Go to next message
Eclipse UserFriend
Originally posted by: ra.classys.net

Hello everyone,

After I read again my previous question i realized my chances of getting=
=

an answer were quite low.
I have the following problem.

In a MultiPageEditor i have a few pages each of them containing an edito=
r. =

One of them is GEF other is a handcrafted JFace (with a ListView and som=
e =

buttons) called ModesetInterface.
When a click happens on an item of this ListView the PropertySheet is =

synchronized with it because the ModesetInterface registers itself to th=
e =

site as the SelectionProvider (this i learned from the article "Take =

control of your properties).

When i switch to the GEF editor, it no longer has the ability to sync th=
e =

selected node with the property sheet. (this part works neatly if I cut =
of =

the other's editor registration as the SelectionProvider).

How can i solve this?

Regards,
Ra
Re: How to mix GEF's selection display into the PropertySheet with other selections from different V [message #142475 is a reply to message #142464] Mon, 12 July 2004 18:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

change the selection provider every time the page changes.
"Rares Pop" <ra@classys.net> wrote in message
news:opsa1b1r046mykrh@morpheus.classys.net...
Hello everyone,

After I read again my previous question i realized my chances of getting
an answer were quite low.
I have the following problem.

In a MultiPageEditor i have a few pages each of them containing an editor.
One of them is GEF other is a handcrafted JFace (with a ListView and some
buttons) called ModesetInterface.
When a click happens on an item of this ListView the PropertySheet is
synchronized with it because the ModesetInterface registers itself to the
site as the SelectionProvider (this i learned from the article "Take
control of your properties).

When i switch to the GEF editor, it no longer has the ability to sync the
selected node with the property sheet. (this part works neatly if I cut of
the other's editor registration as the SelectionProvider).

How can i solve this?

Regards,
Ra
Re: How to mix GEF's selection display into the PropertySheet with other selections from different V [message #142541 is a reply to message #142475] Tue, 13 July 2004 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ra.classys.net

thanks you for answering.
how do i do that?
is GraphicalEditorWithPallete or one of its members implementing =

ISelectionProvider? who?
or do i need to make an implementation myself...


On Mon, 12 Jul 2004 14:01:33 -0400, Randy Hudson <none@us.ibm.com> wrote=
:

> change the selection provider every time the page changes.
> "Rares Pop" <ra@classys.net> wrote in message
> news:opsa1b1r046mykrh@morpheus.classys.net...
> Hello everyone,
>
> After I read again my previous question i realized my chances of getti=
ng
> an answer were quite low.
> I have the following problem.
>
> In a MultiPageEditor i have a few pages each of them containing an =

> editor.
> One of them is GEF other is a handcrafted JFace (with a ListView and s=
ome
> buttons) called ModesetInterface.
> When a click happens on an item of this ListView the PropertySheet is
> synchronized with it because the ModesetInterface registers itself to =
the
> site as the SelectionProvider (this i learned from the article "Take
> control of your properties).
>
> When i switch to the GEF editor, it no longer has the ability to sync =
the
> selected node with the property sheet. (this part works neatly if I cu=
t =

> of
> the other's editor registration as the SelectionProvider).
>
> How can i solve this?
>
> Regards,
> Ra
>
>



-- =

Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: How to mix GEF's selection display into the PropertySheet with other selections from different V [message #142557 is a reply to message #142541] Tue, 13 July 2004 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ra.classys.net

Still problems....
I have found out that the SelectionProvider implementor for a GEF editor=
=

is by default
the editor.getGraphicalEditor();

the problem remains though:

when I change the page in the MPE (MultiPageEditor) i also change the =

SelectionProvider accordingly. yet it doesn't work. whoever claims to be=
=

the SelectionProvider first remains regardless of setSelectionProvider()=
=

calls that happens after that.

BUG?



On Tue, 13 Jul 2004 11:04:44 +0300, Rares Pop <ra@classys.net> wrote:

> thanks you for answering.
> how do i do that?
> is GraphicalEditorWithPallete or one of its members implementing =

> ISelectionProvider? who?
> or do i need to make an implementation myself...
>
>
> On Mon, 12 Jul 2004 14:01:33 -0400, Randy Hudson <none@us.ibm.com> wro=
te:
>
>> change the selection provider every time the page changes.
>> "Rares Pop" <ra@classys.net> wrote in message
>> news:opsa1b1r046mykrh@morpheus.classys.net...
>> Hello everyone,
>>
>> After I read again my previous question i realized my chances of gett=
ing
>> an answer were quite low.
>> I have the following problem.
>>
>> In a MultiPageEditor i have a few pages each of them containing an =

>> editor.
>> One of them is GEF other is a handcrafted JFace (with a ListView and =
=

>> some
>> buttons) called ModesetInterface.
>> When a click happens on an item of this ListView the PropertySheet is=

>> synchronized with it because the ModesetInterface registers itself to=
=

>> the
>> site as the SelectionProvider (this i learned from the article "Take
>> control of your properties).
>>
>> When i switch to the GEF editor, it no longer has the ability to sync=
=

>> the
>> selected node with the property sheet. (this part works neatly if I c=
ut =

>> of
>> the other's editor registration as the SelectionProvider).
>>
>> How can i solve this?
>>
>> Regards,
>> Ra
>>
>>
>
>
>



-- =

Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: How to mix GEF's selection display into the PropertySheet with other selections from different V [message #142575 is a reply to message #142557] Tue, 13 July 2004 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ra.classys.net

Just wanted to finish this monolog here with the solution to this proble=
m.

MultiPageEditor has its own SelectionProvider that handles the =

distribution/synchronization of selections throughout the member pages. =
=

Therefore there was no need to make a paralel system for claming the =

SelectionProvider role for all my pages.
The only thing required is that all the pages added should contain =

IEditorPart implementors and they should be added
with the method addPage(IEditorPart , IEditorInput) and certainly NOT th=
e =

simple addPage(Control)


On Tue, 13 Jul 2004 12:16:36 +0300, Rares Pop <ra@classys.net> wrote:

> Still problems....
> I have found out that the SelectionProvider implementor for a GEF edit=
or =

> is by default
> the editor.getGraphicalEditor();
>
> the problem remains though:
>
> when I change the page in the MPE (MultiPageEditor) i also change the =
=

> SelectionProvider accordingly. yet it doesn't work. whoever claims to =
be =

> the SelectionProvider first remains regardless of setSelectionProvider=
() =

> calls that happens after that.
>
> BUG?
>
>
>
> On Tue, 13 Jul 2004 11:04:44 +0300, Rares Pop <ra@classys.net> wrote:
>
>> thanks you for answering.
>> how do i do that?
>> is GraphicalEditorWithPallete or one of its members implementing =

>> ISelectionProvider? who?
>> or do i need to make an implementation myself...
>>
>>
>> On Mon, 12 Jul 2004 14:01:33 -0400, Randy Hudson <none@us.ibm.com> =

>> wrote:
>>
>>> change the selection provider every time the page changes.
>>> "Rares Pop" <ra@classys.net> wrote in message
>>> news:opsa1b1r046mykrh@morpheus.classys.net...
>>> Hello everyone,
>>>
>>> After I read again my previous question i realized my chances of =

>>> getting
>>> an answer were quite low.
>>> I have the following problem.
>>>
>>> In a MultiPageEditor i have a few pages each of them containing an =

>>> editor.
>>> One of them is GEF other is a handcrafted JFace (with a ListView and=
=

>>> some
>>> buttons) called ModesetInterface.
>>> When a click happens on an item of this ListView the PropertySheet i=
s
>>> synchronized with it because the ModesetInterface registers itself t=
o =

>>> the
>>> site as the SelectionProvider (this i learned from the article "Take=

>>> control of your properties).
>>>
>>> When i switch to the GEF editor, it no longer has the ability to syn=
c =

>>> the
>>> selected node with the property sheet. (this part works neatly if I =
=

>>> cut of
>>> the other's editor registration as the SelectionProvider).
>>>
>>> How can i solve this?
>>>
>>> Regards,
>>> Ra
>>>
>>>
>>
>>
>>
>
>
>



-- =

Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: How to mix GEF's selection display into the PropertySheet with other selections from different V [message #142613 is a reply to message #142575] Tue, 13 July 2004 18:37 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

MultiPageEditor is a hack, and you cannot take editors designed to work by
themselves and place them inside a multipage editor. See selectionChanged
in GraphicalEditor for one reason why this approach doesn't work.

"Rares Pop" <ra@classys.net> wrote in message
news:opsa2ohtcr6mykrh@morpheus.classys.net...
Just wanted to finish this monolog here with the solution to this problem.

MultiPageEditor has its own SelectionProvider that handles the
distribution/synchronization of selections throughout the member pages.
Therefore there was no need to make a paralel system for claming the
SelectionProvider role for all my pages.
The only thing required is that all the pages added should contain
IEditorPart implementors and they should be added
with the method addPage(IEditorPart , IEditorInput) and certainly NOT the
simple addPage(Control)


On Tue, 13 Jul 2004 12:16:36 +0300, Rares Pop <ra@classys.net> wrote:

> Still problems....
> I have found out that the SelectionProvider implementor for a GEF editor
> is by default
> the editor.getGraphicalEditor();
>
> the problem remains though:
>
> when I change the page in the MPE (MultiPageEditor) i also change the
> SelectionProvider accordingly. yet it doesn't work. whoever claims to be
> the SelectionProvider first remains regardless of setSelectionProvider()
> calls that happens after that.
>
> BUG?
>
>
>
> On Tue, 13 Jul 2004 11:04:44 +0300, Rares Pop <ra@classys.net> wrote:
>
>> thanks you for answering.
>> how do i do that?
>> is GraphicalEditorWithPallete or one of its members implementing
>> ISelectionProvider? who?
>> or do i need to make an implementation myself...
>>
>>
>> On Mon, 12 Jul 2004 14:01:33 -0400, Randy Hudson <none@us.ibm.com>
>> wrote:
>>
>>> change the selection provider every time the page changes.
>>> "Rares Pop" <ra@classys.net> wrote in message
>>> news:opsa1b1r046mykrh@morpheus.classys.net...
>>> Hello everyone,
>>>
>>> After I read again my previous question i realized my chances of
>>> getting
>>> an answer were quite low.
>>> I have the following problem.
>>>
>>> In a MultiPageEditor i have a few pages each of them containing an
>>> editor.
>>> One of them is GEF other is a handcrafted JFace (with a ListView and
>>> some
>>> buttons) called ModesetInterface.
>>> When a click happens on an item of this ListView the PropertySheet is
>>> synchronized with it because the ModesetInterface registers itself to
>>> the
>>> site as the SelectionProvider (this i learned from the article "Take
>>> control of your properties).
>>>
>>> When i switch to the GEF editor, it no longer has the ability to sync
>>> the
>>> selected node with the property sheet. (this part works neatly if I
>>> cut of
>>> the other's editor registration as the SelectionProvider).
>>>
>>> How can i solve this?
>>>
>>> Regards,
>>> Ra
>>>
>>>
>>
>>
>>
>
>
>



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Previous Topic:How to change the label displayed for ZoomIn action
Next Topic:GEF on ViewPart
Goto Forum:
  


Current Time: Fri Apr 26 18:37:22 GMT 2024

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

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

Back to the top