Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ECP and element links inside widgets(ECP and element links inside widgets)
ECP and element links inside widgets [message #1627698] Sat, 21 February 2015 18:15 Go to next message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 123
Registered: December 2013
Senior Member
Hello,
I am using ECP to display a set of numbered articles (where an article is just a paragraph of text) .
The articles are organized by chapters and sub chapters. And I have an ecore model that represents this. So I can navigate my text like a tree structure using ECP. (e.g. chapter 1, subchapter 2, might contain articles 5 to 10)

When I display my articles I display them with a standard text area control.
It is very common that an article might refer to another article.For example article 100 might say " for blah blah blah refer to article 200"
When I display" for blah blah blah refer to article 200" I would like to be able to have 'article 200' underlined in the text and have the equivalent of a hyperlink which will open the model element for article 200 when I click on the underlined text.
Any ideas on how this could be done with ECP (I need it to work with RAP)
Perhaps a custom control based on the swt Link widget?(e.g. http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Createalinkwidget.htm)
This is probably not a very conventional use of ECP, and might seem better suited to html, but I am interested in the links between paragraphs for navigation and also for analysis (so my ecore model will contain the crossreferences between articles).
Thanks in advance for any tips.
Neil

Re: ECP and element links inside widgets [message #1632070 is a reply to message #1627698] Tue, 24 February 2015 04:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30463
Registered: July 2009
Senior Member
Neil,

Generally the eclipse.technology.emft forum is used for ECP questions.


On 21.02.2015 19:15, Neil Mackenzie wrote:
> Hello,
> I am using ECP to display a set of numbered articles (where an article
> is just a paragraph of text) .
> The articles are organized by chapters and sub chapters. And I have an
> ecore model that represents this. So I can navigate my text like a tree
> structure using ECP. (e.g. chapter 1, subchapter 2, might contain
> articles 5 to 10)
>
> When I display my articles I display them with a standard text area
> control.
> It is very common that an article might refer to another article.For
> example article 100 might say " for blah blah blah refer to article 200"
> When I display" for blah blah blah refer to article 200" I would like to
> be able to have 'article 200' underlined in the text and have the
> equivalent of a hyperlink which will open the model element for article
> 200 when I click on the underlined text.
> Any ideas on how this could be done with ECP (I need it to work with RAP)
> Perhaps a custom control based on the swt Link widget?(e.g.
> http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Createalinkwidget.htm)
> This is probably not a very conventional use of ECP, and might seem
> better suited to html, but I am interested in the links between
> paragraphs for navigation and also for analysis (so my ecore model will
> contain the crossreferences between articles).
> Thanks in advance for any tips.
> Neil
>
>
Re: ECP and element links inside widgets [message #1633189 is a reply to message #1627698] Tue, 24 February 2015 18:36 Go to previous message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 123
Registered: December 2013
Senior Member
I was wondering why I could not find my post and answer on EMFT!
I have posted in the correct group now.
Thanks,
Neil
Previous Topic:EMF-FACET
Next Topic:Importing from Enterprise Architect
Goto Forum:
  


Current Time: Sun Sep 22 22:27:22 GMT 2019

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

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

Back to the top