Where is the Model Validation Preference page? [message #514264] |
Sat, 13 February 2010 09:03 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
Hi,
I haven't managed to have the preference page for model validation
included in an RCP diagram app.
(By default, the validation feedback is a dialog, with a very cryptic
message, I would never like to confront an end-user with). So, how do I
force validation feedback to be on the console?
I have looked in the templates for preference page generation, model
validation is not a standard preference page, so how does this code get
generated? (Is it actually still supported?).
«DEFINE extendsList FOR gmfgen::GenStandardPreferencePage-»
«IF gmfgen::StandardPreferencePages::General = kind-»
extends
org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPrefe rencePage«-»
«ELSEIF gmfgen::StandardPreferencePages::Appearance = kind-»
extends
org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePre ferencePage«-»
«ELSEIF gmfgen::StandardPreferencePages::Connections = kind-»
extends
org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPr eferencePage«-»
«ELSEIF gmfgen::StandardPreferencePages::Printing = kind-»
extends
org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPrefe rencePage«-»
«ELSEIF gmfgen::StandardPreferencePages::RulersAndGrid = kind-»
extends
org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPref erencePage«-»
«ENDIF-»
«ENDDEFINE»
My GMF gen:
is:
Validation Decorators : true
Validation Enabled : true
Live validation UI Feedback : true
Validation Decorator Provider priority : Medium
Validation Provider Priority : Seems to be deprecated, so not sure if
this any use?
Also:
Any of these bugs has got to do with it? (from GMF 2.1 release notes):
Custom Preferences and Preference pages
Bugzilla 250772 Custom Preferences Bugzilla 247311 Boilerplate code for
custom Preference Pages
Besides, not all the preference pages are generated now, see Bugzilla
247542
Thanks! Christophe bouhier
|
|
|
|
Re: Where is the Model Validation Preference page? [message #514662 is a reply to message #514264] |
Tue, 16 February 2010 09:16 |
Sven Krause Messages: 119 Registered: July 2009 |
Senior Member |
|
|
Hi Christophe,
the model validation belongs to EMF validation framework. GMF does not
need to generate a preference page therefore. It uses the validation
extension point(s) and the validation framework presents the preferences
based on the existing extensions.
Sven
Am 13.02.2010 10:03, schrieb Christophe Bouhier:
> Hi,
>
> I haven't managed to have the preference page for model validation
> included in an RCP diagram app.
>
> (By default, the validation feedback is a dialog, with a very cryptic
> message, I would never like to confront an end-user with). So, how do I
> force validation feedback to be on the console?
>
> I have looked in the templates for preference page generation, model
> validation is not a standard preference page, so how does this code get
> generated? (Is it actually still supported?).
>
>
> «DEFINE extendsList FOR gmfgen::GenStandardPreferencePage-»
> «IF gmfgen::StandardPreferencePages::General = kind-»
> extends
> org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPrefe rencePage«-»
> «ELSEIF gmfgen::StandardPreferencePages::Appearance = kind-»
> extends
> org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePre ferencePage«-»
>
> «ELSEIF gmfgen::StandardPreferencePages::Connections = kind-»
> extends
> org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPr eferencePage«-»
>
> «ELSEIF gmfgen::StandardPreferencePages::Printing = kind-»
> extends
> org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPrefe rencePage«-»
> «ELSEIF gmfgen::StandardPreferencePages::RulersAndGrid = kind-»
> extends
> org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPref erencePage«-»
> «ENDIF-»
> «ENDDEFINE»
>
>
> My GMF gen:
>
> is:
>
> Validation Decorators : true
> Validation Enabled : true
> Live validation UI Feedback : true
>
> Validation Decorator Provider priority : Medium
>
> Validation Provider Priority : Seems to be deprecated, so not sure if
> this any use?
>
>
> Also:
>
>
> Any of these bugs has got to do with it? (from GMF 2.1 release notes):
>
> Custom Preferences and Preference pages
>
> Bugzilla 250772 Custom Preferences Bugzilla 247311 Boilerplate code for
> custom Preference Pages
>
> Besides, not all the preference pages are generated now, see Bugzilla
> 247542
>
>
> Thanks! Christophe bouhier
|
|
|
|
Powered by
FUDForum. Page generated in 0.03000 seconds