Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Context-Sensitive Help
[EEF] Context-Sensitive Help [message #1712575] Mon, 26 October 2015 14:48 Go to next message
Adel Ziani is currently offline Adel ZianiFriend
Messages: 9
Registered: June 2014
Junior Member
Hi all,

I'm using EEF wizardDialog for editing properties in Sirius diagram and I'm looking for a way to show some context help when I click on (?) button of the wizardDialog. Does EEF offer a mechanism for doing somthing like that ?
In the EEF components model, I set the Help ID field for a PropertiesEditionComponent but nothing happen when I run my rcp application and click on (?) button.
Any idea ?

Adel.

[Updated on: Mon, 26 October 2015 14:49]

Report message to a moderator

Re: [EEF] Context-Sensitive Help [message #1713602 is a reply to message #1712575] Thu, 05 November 2015 12:39 Go to previous message
Adel Ziani is currently offline Adel ZianiFriend
Messages: 9
Registered: June 2014
Junior Member
Adel Ziani wrote on Mon, 26 October 2015 10:48
Hi all,

I'm using EEF wizardDialog for editing properties in Sirius diagram and I'm looking for a way to show some context help when I click on (?) button of the wizardDialog. Does EEF offer a mechanism for doing somthing like that ?
In the EEF components model, I set the Help ID field for a PropertiesEditionComponent but nothing happen when I run my rcp application and click on (?) button.
Any idea ?

Adel.


I solved the issue by defining a new WizardOpeningPolicyProvider.
Here the code I defined :

public class MyWizardOpeningPolicy implements IWizardOpeningPolicy {

private ChangeDescription description;

public boolean openWizard(PropertiesEditingContext editionContext, PropertiesEditionWizard wizard) {

EEFWizardDialog wDialog = new EEFWizardDialog(EditingUtils.getShell(), wizard);
wDialog.create();
// get the context help id
String myContextHelpId = "myContextHelp";
// set the context help to the main page of this wizard
PlatformUI.getWorkbench().getHelpSystem().setHelp(wizard.getPage("Main page").getControl(), myContextHelpId);
int open = wDialog.open();
ChangeRecorder changeRecorder = editionContext.getChangeRecorder();
if (changeRecorder != null) {
description = changeRecorder.endRecording();
}
if (open == Window.OK) {
return true;
} else {
if (description != null) {
description.applyAndReverse();
}
return false;
}
}

Adel
Previous Topic:[ECP] Support for other file extension for import/export project/child
Next Topic:[EMFStore] minor bug
Goto Forum:
  


Current Time: Sun Nov 29 00:10:27 GMT 2020

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

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

Back to the top