Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » extend Ecore-Editor
extend Ecore-Editor [message #652352] Thu, 03 February 2011 16:22 Go to next message
golden_wing  is currently offline golden_wing Friend
Messages: 4
Registered: February 2011
Junior Member
Hey guys,

I would like to create an eclipse-plugin. What I want is the following
I have an open Textfile in an editor in eclipse. Once I push a certain button I want the file to be displayed in the text editor as well as in the "sample ecore model editor". (The content of the text-file is somehow already connected with an ecore file so thats no problem).

But how do i get the ecore-editor to open with that file?

I was also thinking about extending the "sample ecore modeling editor" to add some personal features. Is there any possibility to do so? Couldn't find anything regarding that topic


regards
golden_wing
Re: extend Ecore-Editor [message #652419 is a reply to message #652352] Thu, 03 February 2011 19:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30559
Registered: July 2009
Senior Member
Comments below.

golden_wing wrote:
> Hey guys,
>
> I would like to create an eclipse-plugin. What I want is the following
> I have an open Textfile in an editor in eclipse. Once I push a certain
> button I want the file to be displayed in the text editor as well as
> in the "sample ecore model editor". (The content of the text-file is
> somehow already connected with an ecore file so thats no problem).
What's so special about the sample editor that's different from what you
get for your generated editor?
>
> But how do i get the ecore-editor to open with that file?
You can look at how the generated wizards opens an editor.
>
> I was also thinking about extending the "sample ecore modeling editor"
> to add some personal features. Is there any possibility to do so?
> Couldn't find anything regarding that topic
Again, why not use the generated editor?
>
>
> regards
> golden_wing
Re: extend Ecore-Editor [message #652486 is a reply to message #652352] Fri, 04 February 2011 09:28 Go to previous messageGo to next message
golden_wing  is currently offline golden_wing Friend
Messages: 4
Registered: February 2011
Junior Member
I want to create a perspective. In this one I want the Editor to my FIle (its an Xtext-generated Editor) on the left side of my screen and on the right side the corresponding ecore editor.

I just wasn't able to add the ecore model editor to a perspective, and i don't want, that the user has to add it himself. The new perspective should already include this right away.
Re: extend Ecore-Editor [message #652498 is a reply to message #652486] Fri, 04 February 2011 10:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30559
Registered: July 2009
Senior Member
Comments below.

golden_wing wrote:
> I want to create a perspective. In this one I want the Editor to my
> FIle (its an Xtext-generated Editor) on the left side of my screen and
> on the right side the corresponding ecore editor.
So why not the generated EMF editor?
>
> I just wasn't able to add the ecore model editor to a perspective, and
> i don't want, that the user has to add it himself. The new perspective
> should already include this right away.
That has nothing to do with whether you use the sample editor on the
generated editor. It sounds to me like you should be using the
generated editor, or perhaps better still, extend your Xtext editor to
include whatever aspects of the generated editor you'd like to keep; I
don't know if that's feasible mind you.
Re: extend Ecore-Editor [message #652684 is a reply to message #652352] Sat, 05 February 2011 09:41 Go to previous messageGo to next message
golden_wing  is currently offline golden_wing Friend
Messages: 4
Registered: February 2011
Junior Member
Well it doesn't have to Be the Sample Editor i also found the generic emf Editor pretty nice. However I'm not sure what you mean with the generated Editor. Couldn't find it.

Still I'm Not able to add one of These Editors to a defined perspective. Again - the perspective should already be defined in the plugin

[Updated on: Sat, 05 February 2011 09:42]

Report message to a moderator

Re: extend Ecore-Editor [message #652686 is a reply to message #652684] Sat, 05 February 2011 09:51 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6447
Registered: July 2009
Senior Member
Am 05.02.2011 10:41, schrieb golden_wing:
> Well it doesn't have to Be the Sample Editor i also found the generic emf Editor pretty nice. However I'm not sure what you mean with the generated Editor. Couldn't find it.
>
> Still I'm Not able to add one of These Editors to a defined perspective.
What do you mean by "add"? I'm not an RCP expert but I think you can not add editors to a perspective declaratively. Only views and one *area* for all editors that will be opened at runtime.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> Again the perspective should already be defined in the plugin


Re: extend Ecore-Editor [message #652797 is a reply to message #652352] Sun, 06 February 2011 21:04 Go to previous message
golden_wing  is currently offline golden_wing Friend
Messages: 4
Registered: February 2011
Junior Member
Ok forget about the "add"-Aspect Wink Figures out, that I can't just add this editor. Though I can add Editors to a plugin and connect them with a specific file-extension.

Does anybody know, where to find the Class and corresponding Contributor to the org.eclipse.emf.genericEditor?
Previous Topic:EContentAdapter on BPMN EMF model
Next Topic:[Teneo] Forcing a Timestamp data type for a column when PersistenceOptions.DEFAULT_TEMPORAL_VALUE, &
Goto Forum:
  


Current Time: Wed Oct 23 11:31:29 GMT 2019

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

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

Back to the top