Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Where is the Model Validation Preference page?
Where is the Model Validation Preference page? [message #514264] Sat, 13 February 2010 04:03 Go to next message
Eclipse UserFriend
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 #514298 is a reply to message #514264] Sat, 13 February 2010 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christophe,

you might find something useful in org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/Gen erator.java.

I haven't checked that yet, but that's where most of the generated files are actually created.

Cheers
Rob
Re: Where is the Model Validation Preference page? [message #514662 is a reply to message #514264] Tue, 16 February 2010 04:16 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Where is the Model Validation Preference page? [message #514698 is a reply to message #514662] Tue, 16 February 2010 06:21 Go to previous message
Eclipse UserFriend
Sven Krause wrote:
> 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.
>
Thanks! Will check!

> Sven
>
Previous Topic:GMF with ZEST , and Dynamic Palette ?
Next Topic:gmfgraph properties
Goto Forum:
  


Current Time: Wed Jul 23 06:02:48 EDT 2025

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

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

Back to the top