Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [RCP] problem showing editors
[RCP] problem showing editors [message #244894] Tue, 25 May 2004 11:09 Go to next message
Eclipse UserFriend
Originally posted by: franz.tucher-63.gmx.net

Hello,

I have some views, which shows data of a database.
Now I have to show a multi page editor. The editor should reflect the
selection
of the views. For that reason the editor should not connect with file
extensions.
An great introduction in the form editor can be found in the "Eclipse Forms
Programming Guide".
In this article the article will be show through the menu Window ==>
Customize Perspective... ==> Commands ==> Eclipse Form Examples .
So far so good.

I can add in my rcp application:
menu.add(ActionFactory.EDIT_ACTION_SETS.create(window)); .
Now the coammand is visible but disabled. In addition that's not the right
working.

I would like:
a)
the SimpleFormEditor (extends FormEditor ...) automatically shown if the
right resource in a view is selected.
b)
the editor should also be shown if eclipse starts and choosing this
perspective if the right resource

I found [IPageLayout].addView but not addEditor?

Every help is very appreciated, Thank you Franz
Re: [RCP] problem showing editors [message #244923 is a reply to message #244894] Tue, 25 May 2004 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.cops.org

> An great introduction in the form editor can be found in the "Eclipse
Forms
> Programming Guide".

Where exactly is this article?
Re: [RCP] problem showing editors [message #244981 is a reply to message #244894] Tue, 25 May 2004 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Franz Tucher schrieb:
> I found [IPageLayout].addView but not addEditor?

I don't know what you are trying but you can't add an editor to a layout
because there can always only be exactly one editor (n contrast to
multiple views) which always takes the remaining space of a layout.

Ciao, Michael.
Re: [RCP] problem showing editors [message #245005 is a reply to message #244923] Tue, 25 May 2004 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: franz.tucher-63.gmx.net

> > An great introduction in the form editor can be found in the "Eclipse
> Forms
> > Programming Guide".
>
> Where exactly is this article?
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html
Re: [RCP] problem showing editors [message #245013 is a reply to message #244981] Tue, 25 May 2004 12:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: franz.tucher-63.gmx.net

"Michael Keppler" <michael.keppler@gmx.de> schrieb im Newsbeitrag
news:c8vs7m$uhn$1@eclipse.org...
> Franz Tucher schrieb:
> > I found [IPageLayout].addView but not addEditor?
>
> I don't know what you are trying but you can't add an editor to a layout
> because there can always only be exactly one editor (n contrast to
> multiple views) which always takes the remaining space of a layout.
>
> Ciao, Michael.

Thank you for your answer.
But if I select a java file in the eclipse ide (jdt) the java editor will
open.
This is is the same I will do but my datas are not in a file (something else
for instance in a database).
I studied also a part of the code of the jdt package but found no solution.

For you as german speaker I placed the question also here but without
answer:
http://groups.google.com/groups?q=rcp+editor+eclipse+group:d e.comp.lang.java&hl=de&lr=&ie=UTF-8&selm=c84 pha%24hvp%242%40online.de&rnum=1
Re: [RCP] problem showing editors [message #245028 is a reply to message #244981] Tue, 25 May 2004 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: franz.tucher-63.gmx.net

> I found [IPageLayout].addView but not addEditor?
>
> I don't know what you are trying but you can't add an editor to a layout
> because there can always only be exactly one editor (n contrast to
> multiple views) which always takes the remaining space of a layout.
Perhaps, you misunderstood me.
I should write not "add" but "show THE editor" because you are right with:
"there can always only be exactly one editor".

I search the function to automatically do this, that means not the manually
way in "Eclipse Forms Programming Guide" (menu Window ==>Customize
Perspective... ==> Commands ==> Eclipse Form Examples) but possibly in the
eclipse code belonging to above menu command is the solution. Does anybody
where I found the action above?
Re: [RCP] problem showing editors [message #245135 is a reply to message #245028] Tue, 25 May 2004 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lorenz.m.gmx.at

Hi,

> I should write not "add" but "show THE editor" because you are right with:
> "there can always only be exactly one editor".

Editors have a special lifecycle - as opposed to vies: You open it (the
editor, extends EditorPart) with some input (IEditorInput) - and you
close it. This does not mean it is tied to files, you can implement your
own IEditorInput as you wish.

So what would you like to do in your view: Simply create an appropriate
input for the editor and invoke IWorkbenchPage.openEditor(Input, EditorID)

Hope that helps,
Lorenz
Re: [RCP] problem showing editors [message #245184 is a reply to message #245135] Tue, 25 May 2004 15:57 Go to previous message
Eclipse UserFriend
Originally posted by: franz.tucher-63.gmx.net

> Editors have a special lifecycle - as opposed to vies: You open it (the
> editor, extends EditorPart) with some input (IEditorInput) - and you
> close it. This does not mean it is tied to files, you can implement your
> own IEditorInput as you wish.
>
> So what would you like to do in your view: Simply create an appropriate
> input for the editor and invoke IWorkbenchPage.openEditor(Input, EditorID)
Thank you very much, that solved my problem!

Franz
Previous Topic:Running a C program: shared libraries
Next Topic:Change editor association with Error Log view's Open log button?
Goto Forum:
  


Current Time: Wed Nov 05 06:29:28 EST 2025

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

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

Back to the top