Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » linking a help context to a model feature and the property dialog
linking a help context to a model feature and the property dialog [message #696753] Thu, 14 July 2011 18:58 Go to next message
Greg Jansen is currently offline Greg JansenFriend
Messages: 22
Registered: July 2010
Junior Member
I'd really like to give my users a help icon within certain property dialogs of my model. I am using GMF to generate an editor, but I think the dialog used in this context is coming from vanilla EMF.Edit. It is a dialog that lets you edit a multi-value string feature.

I found a way to decorate the particular ItemPropertyDescriptor within my ItemProvider such that it will return a String on getHelpContextIDs. How can I link this context to a button within the dialog. Do I have to implement my own dialog class?

Many thanks,
Greg

[Updated on: Thu, 14 July 2011 18:59]

Report message to a moderator

Re: linking a help context to a model feature and the property dialog [message #696772 is a reply to message #696753] Thu, 14 July 2011 19:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Greg,<br>
<br>
I guess you'd have to extend the FeatureEditorDialog to add the
button:<br>
<blockquote><a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application">http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application</a><br>
</blockquote>
<br>
On 14/07/2011 11:58 AM, Greg Jansen wrote:
<blockquote cite="mid:ivndlu$8d9$1@news.eclipse.org" type="cite">I'd
really like to give my users a help icon within certain property
dialogs of my model. I am using GMF to generate an editor, but I
think the dialog used in this context is coming from vanilla
EMF.Edit. It is a dialog that lets you edit a multi-value string
feature.
<br>
<br>
I found a way to decorate the particular ItemPropertyDescriptor
within my ItemProvider such that it will return a String on
getHelpContextIDs. How can I make link this context to a button
within the dialog. Do I have to implement my own dialog class?
<br>
<br>
Many thanks,
<br>
Greg
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: linking a help context to a model feature and the property dialog [message #696776 is a reply to message #696772] Thu, 14 July 2011 19:55 Go to previous message
Greg Jansen is currently offline Greg JansenFriend
Messages: 22
Registered: July 2010
Junior Member
Putting a help button in context makes a big difference, thanks for your help. I'll try that.
Previous Topic:Best Practice for building and pasting data structures
Next Topic:[CDO] Failure when trying to lock detached elements
Goto Forum:
  


Current Time: Fri Apr 19 12:44:33 GMT 2024

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

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

Back to the top