index > Visual Studio Team System - Domain-Specific Language Tools > Modal EditStyle and enumerations

Modal EditStyle and enumerations


And for part two!

I've created an enumeration with flags (i.e. multiple can be selected) to hold information. I've created a class that derives from UITypeEditor (EditStyle.Modal), as well as a simple Window form with check boxes to allow the values to be selected. In DSL, when I set the data type for the domain property as Int32, everything works fine except that the numbers appear in the property grid. When I switch the type to the enumeration, it switches the style to DropDownList (even with the EditStyle as Modal) and won't let me select multiples.

Ideally I'd just like the ToString() of the enumeration value to display in the property grid. Thoughts?

-B Tucker
Neumont University
SleipOdin
Hi SleipOdin,

Yes, when the data type is enum, the custom UITypeEditor won't show. I am checking to see whether there is way to override this behavior. If I find out anything, I will let you know.

And the problem you mentioned, that the grid won't let you select multiple items even with IsFlags=True, is fixed and should be available in the coming release.

Regards,
Steven Tung




DSL Tools - SDE Intern
Steven Tung
Steven-
Thank you very much for looking into this. For the second part of your response, does it still display as a DropDownList? How will the user select multiple enumerations? Will they get feedback as to their decision?

-B Tucker
SleipOdin
Hi SleipOdin,

it will be a drop down list with checkboxes next to the enum's names, so user can "tick" the checkboxes to select mulitple items.

I hope I have answered your question.

Regards,
Steven Tung



DSL Tools - SDE Intern
Steven Tung
reply 4

You can use google to search for other answers

 

More Articles

Catch On Properties Change Event
designer definition toolbox item - compartmentTextTool
DSL Tools vs VSTS designers
class factory
Resources: Domain Specific Language (DSL) Tools for Model-Driven ...
Can I make two DSL models interact ?
Changing Role Players in the Properties window: Bug?
How do I use the DSL that I have created in other .Net projects?
Domain model designer toolbox items disappeared
Adding ModelElements to 0..* relationships through a CollectionEd...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Context menu item localization
Designer and File Associations
How to add Text template and make availa…
How-to: create a custom tool that runs d…
Unable to intercept double click on deco…
Is there any documentation regarding the…
Reading and writing models in June relea…
Reference from one DSL metamodel to anot…
Custom source for connector
Where do I place text for a captionId?
Show more than one Property in a Compart…
Syntax coloring for .ReportTemplate (T3)…
fatal error CTC2013: Can't start preproc…
Why the f$%^&* does the DSL tools as…
Problem starting new DSL-project

Hot Articles

How to generate Hashtable like collection?
Walkthrough distinguish visually between…
Tool support for designer definition?
VS SDK March 2006 CTP
How to generate additional property for …
how can i get a reference to a modelelem…
How to access the Session in subdomain?
DSL and XMI interchange format
Change 'arrowStyle' of a connector at ru…
Generate a Domain Model during Debugging
Changing elements from properties
Dynamically Create Links OnAttributeChan…
Interacting with Server Explorer
More than one Diagram / File - Extension…
T4 Text Template Editor for VS2005

Recommend Articles

Multiple DSL's using the same file exten…
How to know if OnShapeInserted was initi…
Reference from one DSL metamodel to anot…
Diferents Domain Models an Designer Defi…
t4 in a custom/stand alone tool
How to determine if a model passes valid…
accessing relations (and its value prope…
Can I Generate Code with CodeDom in the …
Replacing a null value....
Concept's Properties
Embedding Relationships and Inheritence
Reading and writing models in June relea…
Error : Value cannot be null ,Parameter …
DSL and XMI interchange format
TextTemplatingFileGenerator now fails to…