Skip to main content



      Home
Home » Eclipse Projects » GEF » Selection and Delete actions don't work in FormEditor
Selection and Delete actions don't work in FormEditor [message #161518] Wed, 15 December 2004 02:29 Go to next message
Eclipse UserFriend
Originally posted by: notavalidaddress.notavaliddomain.com

Hi,

I created a GraphicalEditorWithFlyoutPalette, that uses the
Delete action, and the standard alignment, and match action,
which all extend SelectionAction.

All of this worked fine, but now I have created a FormEditor
in which I add a FormPage, and then the GraphicalEditor.

Since I did this, the action aren't enabled when I select my
edit parts.

Has anybody seen this before?

Thanks.
Re: Selection and Delete actions don't work in FormEditor [message #161542 is a reply to message #161518] Wed, 15 December 2004 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: notavalidaddress.notavaliddomain.com

Hi,

I found a temporary solution, just added this to my GraphicalEditor :

public void selectionChanged(IWorkbenchPart part, ISelection selection) {
updateActions(getSelectionActions());
}

The only problem is that the actions need to be updated when I switch to
another page.

"John Doe" <notavalidaddress@notavaliddomain.com> wrote in message
news:cpop52$jrh$1@www.eclipse.org...
> Hi,
>
> I created a GraphicalEditorWithFlyoutPalette, that uses the
> Delete action, and the standard alignment, and match action,
> which all extend SelectionAction.
>
> All of this worked fine, but now I have created a FormEditor
> in which I add a FormPage, and then the GraphicalEditor.
>
> Since I did this, the action aren't enabled when I select my
> edit parts.
>
> Has anybody seen this before?
>
> Thanks.
>
>
Re: Selection and Delete actions don't work in FormEditor [message #161596 is a reply to message #161542] Wed, 15 December 2004 10:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The selection should change when you change pages. Both pages are probably
selection providers?

"John Doe" <notavalidaddress@notavaliddomain.com> wrote in message
news:cpou7p$2vp$1@www.eclipse.org...
> Hi,
>
> I found a temporary solution, just added this to my GraphicalEditor :
>
> public void selectionChanged(IWorkbenchPart part, ISelection selection) {
> updateActions(getSelectionActions());
> }
>
> The only problem is that the actions need to be updated when I switch to
> another page.
>
> "John Doe" <notavalidaddress@notavaliddomain.com> wrote in message
> news:cpop52$jrh$1@www.eclipse.org...
> > Hi,
> >
> > I created a GraphicalEditorWithFlyoutPalette, that uses the
> > Delete action, and the standard alignment, and match action,
> > which all extend SelectionAction.
> >
> > All of this worked fine, but now I have created a FormEditor
> > in which I add a FormPage, and then the GraphicalEditor.
> >
> > Since I did this, the action aren't enabled when I select my
> > edit parts.
> >
> > Has anybody seen this before?
> >
> > Thanks.
> >
> >
>
>
Re: Selection and Delete actions don't work in FormEditor [message #162329 is a reply to message #161596] Tue, 21 December 2004 00:49 Go to previous message
Eclipse UserFriend
Originally posted by: zhanglq.primeton.com

Yes! I Got the same problem!

And i have done updateActions(getSelectionActions()); in GraphicalEditor
selectionChanged,nothing better.

So,anybody help me!

thanks!!!

Randy Hudson wrote:
> The selection should change when you change pages. Both pages are probably
> selection providers?
>
> "John Doe" <notavalidaddress@notavaliddomain.com> wrote in message
> news:cpou7p$2vp$1@www.eclipse.org...
>
>>Hi,
>>
>>I found a temporary solution, just added this to my GraphicalEditor :
>>
>>public void selectionChanged(IWorkbenchPart part, ISelection selection) {
>> updateActions(getSelectionActions());
>>}
>>
>>The only problem is that the actions need to be updated when I switch to
>>another page.
>>
>>"John Doe" <notavalidaddress@notavaliddomain.com> wrote in message
>>news:cpop52$jrh$1@www.eclipse.org...
>>
>>>Hi,
>>>
>>>I created a GraphicalEditorWithFlyoutPalette, that uses the
>>>Delete action, and the standard alignment, and match action,
>>>which all extend SelectionAction.
>>>
>>>All of this worked fine, but now I have created a FormEditor
>>>in which I add a FormPage, and then the GraphicalEditor.
>>>
>>>Since I did this, the action aren't enabled when I select my
>>>edit parts.
>>>
>>>Has anybody seen this before?
>>>
>>>Thanks.
>>>
>>>
>>
>>
>
>
Previous Topic:GEF training?
Next Topic:Move the Line Figure's Z-order to bottom
Goto Forum:
  


Current Time: Thu May 08 01:39:19 EDT 2025

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

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

Back to the top