Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » OCLinEcore Editor in standalone application
OCLinEcore Editor in standalone application [message #725697] Thu, 15 September 2011 14:34 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I would like to have read only form of OCLinEcore Editor in standalone application.
I am creating Ecore programmatically in a standalone application and i need to have the OCLinEcore type of editor for just read only purpose.


Any Suggessions?

Warmest Regards,
Re: OCLinEcore Editor in standalone application [message #725789 is a reply to message #725697] Thu, 15 September 2011 19:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

First you need to decide read-only means. ie. at what point in this list
do you prohibit change

File Save
Rename
Cut/Paste
Insert space
Cursor move
Scroll
Select
Hover text
Go to Declaration
Find References

Then disable all functionality for that level.

No File Save is easy.
Some Xtext bindings could just be suppressed.
Perhaps you intercept modify IUnitOfWork.

Better to ask on the Xtext newsgroup whether Xtext has a browse mode.

Regards

Ed Willink



On 15/09/2011 15:34, ModelGeek wrote:
> Hi,
>
> I would like to have read only form of OCLinEcore Editor in standalone
> application.
> I am creating Ecore programmatically in a standalone application and i
> need to have the OCLinEcore type of editor for just read only purpose.
>
>
> Any Suggessions?
>
> Warmest Regards,
Re: OCLinEcore Editor in standalone application [message #725916 is a reply to message #725789] Fri, 16 September 2011 07:36 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Thanks for assistance!

i will forward this question to XText
Re: OCLinEcore Editor in standalone application [message #726100 is a reply to message #725916] Fri, 16 September 2011 14:52 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I have asked this question to Xtext but i want to explain that i just need textual form i donot need any visual conponents or any other fancy stuff. I just need to generate the text(Emfatic text displayed in OCLinEcore Editor) from Ecore. No visual component is required. I want to do it in a standalone application.

As OCLinEcore editor shows the emfatic text so it means the functionality to generate emfatic text from Ecore is already there. I just want to reuse that so i can generate emfatic text from Ecore.

http://www.eclipse.org/forums/index.php/t/240357/

is the link for Xtext thread and Ed Merks has suggested me to explain it again to you.


Please help me!

[Updated on: Fri, 16 September 2011 15:05]

Report message to a moderator

Previous Topic:[BPMN2] Using the BPMN2 editor XML as input for ATL
Next Topic:[bpmn2] process element sequence in Semantic.xsd
Goto Forum:
  


Current Time: Thu Apr 18 00:08:54 GMT 2024

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

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

Back to the top