Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Doubt for multipage Graphical editor
Doubt for multipage Graphical editor [message #239390] Thu, 25 October 2007 12:19 Go to next message
Eclipse UserFriend
Originally posted by: rajeev.ssingh.patni.com

Hi,

I've a mulitpage graphical editor for creating state diagram. Now I've to
add one more page containing an eclipse forms. Can anyone suggest what
changes I'll have to make to add a page to editor containing forms?

Thanks,
Rajeev.
Re: Doubt for multipage Graphical editor [message #239405 is a reply to message #239390] Fri, 26 October 2007 00:58 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Rajeev,

You likely want a multipage editor, one page is a graphical viewer and one
page is a form.

Cheers...
Anthony

"Rajeev" <rajeev.ssingh@patni.com> wrote in message
news:3509cefbf558fcc43aa479d54f798ad1$1@www.eclipse.org...
> Hi,
>
> I've a mulitpage graphical editor for creating state diagram. Now I've to
> add one more page containing an eclipse forms. Can anyone suggest what
> changes I'll have to make to add a page to editor containing forms?
>
> Thanks,
> Rajeev.
>
Re: Doubt for multipage Graphical editor [message #239460 is a reply to message #239405] Tue, 30 October 2007 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rajeev.ssingh.patni.com

Hi Anthony,

Thanks for your reply. My multipage editor contains three pages containing
graphical viewer a page containing form page. My editor class extends
FormEditor and Graphical pages are extending EditorPart class and Form
page class is extending FormPage class.
Now, everything works fine when I'm selecting any page containing
Graphical viewer. But when I select page containing form then although
contents of the page are drawn, but stack overflow exception is thrown.
I'm pasting the exception message below.

java.lang.StackOverflowError
at org.eclipse.swt.widgets.Widget.getData(Widget.java:485)
at
org.eclipse.ui.part.MultiPageEditorPart.getEditor(MultiPageE ditorPart.java:429)
at
org.eclipse.ui.part.MultiPageEditorPart.getActiveEditor(Mult iPageEditorPart.java:356)
at
org.eclipse.ui.forms.editor.FormEditor.getActiveEditor(FormE ditor.java:447)
at
org.eclipse.ui.forms.editor.FormEditor$FormEditorSelectionPr ovider.getSelection(FormEditor.java:92)
at
org.eclipse.ui.forms.editor.FormEditor$FormEditorSelectionPr ovider.getSelection(FormEditor.java:97)

Can you please tell me if I'm missing something or give any pointer to the
probable cause of this error.

Regards,
Rajeev.
Re: Doubt for multipage Graphical editor [message #239473 is a reply to message #239460] Tue, 30 October 2007 14:23 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Rajeev,

Since this is forms related, you could try the platform newsgroup.

Cheers...
Anthony

"Rajeev" <rajeev.ssingh@patni.com> wrote in message
news:f9d9b17bf4985a5630e46934ceca350a$1@www.eclipse.org...
> Hi Anthony,
>
> Thanks for your reply. My multipage editor contains three pages containing
> graphical viewer a page containing form page. My editor class extends
> FormEditor and Graphical pages are extending EditorPart class and Form
> page class is extending FormPage class.
> Now, everything works fine when I'm selecting any page containing
> Graphical viewer. But when I select page containing form then although
> contents of the page are drawn, but stack overflow exception is thrown.
> I'm pasting the exception message below.
>
> java.lang.StackOverflowError
> at org.eclipse.swt.widgets.Widget.getData(Widget.java:485)
> at
> org.eclipse.ui.part.MultiPageEditorPart.getEditor(MultiPageE ditorPart.java:429)
> at
> org.eclipse.ui.part.MultiPageEditorPart.getActiveEditor(Mult iPageEditorPart.java:356)
> at
> org.eclipse.ui.forms.editor.FormEditor.getActiveEditor(FormE ditor.java:447)
> at
> org.eclipse.ui.forms.editor.FormEditor$FormEditorSelectionPr ovider.getSelection(FormEditor.java:92)
> at
> org.eclipse.ui.forms.editor.FormEditor$FormEditorSelectionPr ovider.getSelection(FormEditor.java:97)
>
> Can you please tell me if I'm missing something or give any pointer to the
> probable cause of this error.
>
> Regards,
> Rajeev.
>
Previous Topic:mixing GEF drag with native DnD.
Next Topic:installEditPolicy in AbstractEditPart
Goto Forum:
  


Current Time: Mon Sep 23 06:07:08 GMT 2024

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

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

Back to the top