index > Visual Studio Team System - Domain-Specific Language Tools > Bugs (?) in July version

Bugs (?) in July version


I have upgraded to the July DSL Factory and have the following errors/changes

1) Can no longer stop users resizing shapes

2) Can't create a new relationship shape (had to edit XML)

3) Can't create user types (used to use CLR attributes)

4) 2 instances of validate/validate all in menu

5) Error if adding item to validate menu

foleyp

Hi foleyp

(2) is a known issue in the June/July/August bits which will be fixed in our V1 release.

Can you provide some more detail on the others please.

(1) How were you preventin this previously?

(3) Not sure wha tyou mean by "user types" here

(4) Is this in any generated deisgner or does somethign cause it - we've not seen this.

(5) I'm not sure what you mean by "adding item to validate menu"




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ MSFT

1) In the language designer you could set a property on a concept to prevent users changing colour size etc

3) Previously you could specify an object type (other than int etc) for a concept attribute e.g. make an attribute store HTML

4) The menu I am referring to is in the designer when you right click on the diagram. I used to have code to call my validation routine but now this causes an exception. I removed my additional code and the menu has duplicate items.

foleyp

Hi foleyp,

I'm afraid I'm still struggling here

(1) We used to have properties on shapes to make their colors and outlines fixed or user variable. We now disable these by default and you have to add specific properties to amek them user variable. I don't recall anything in the designer that ever allowed you to restrict sizing. You can override the following method to affect resize behavior:

public override NodeSides ResizableSides { get { return NodeSides.None; } }

(2) You can create a new external type (in the dsl explorer under types) and then assign that to a domain property.

(3) We've added standard validaiton menus, so you'd need to remove the entries you added to your CTC file that gave you a custom validation menu .




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT

Hi foleyp

Did this get to the bottom of your questions?




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT

Thanks you have answered nearly all my questions.

The new external type answer needs some more clarification. I take it you mean a Domain Type? What goes in the class definition to make it editable in the property box. I want a class that has an array/list of another custom type e.g.

each member of the list is of type A which has 4 members (each is a string or an enumeration).

Thanks for your help so far

foleyp

Hi foleyp,

Yes, I meant DomainType.

So all a domaintype does is specify that the property is of a type defined in regular code. its then down to the standard .Net mechanisms for that class to get it to display in the property grid the way you'd want it.

This usually comes down to using attributes to set type convertor etc. You can find lots of information on this by searching MSDN/the web for topics like "Adding Design-Time support to your control"




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT
reply 7

You can use google to search for other answers

 

More Articles

Non string name domain properties
class factory
Business Case
Checkbox list as property type which is created dynamically at ru...
Accessing the domain model using code
General Questions
Define a menu command
Installation Problems? "operation is not valid due to the cu...
What is the future of MDA?
How can i associate a textfield with a property of the ModelEleme...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Migrating to May CTP: Text Template Prob…
Enable/Disable property OnValueChanging/…
I get a null reference exception when ad…
Unregister DSL file extension
property graphical representation
How do I get a new ModelElement's corres…
How-to: create a custom tool that runs d…
Add a toolbar to the dsl designer surface
2 problems with V1 release
Supported VGRoutingStyles?
DSL using languages
Diagram Size
Creating A connector to CompartMent Items
Self-contained Embedding
How to set custom properties at runtime?

Hot Articles

How to determine if a model passes valid…
My view on views, Repositories, Multi-us…
How to Dynamically create shapes
Making a reference from a connector class
Collaborating on models?
Catch On Properties Change Event
CTC Problem
Merging auto-generated code with custom …
where can ? find info about DSL?
Domain model designer
Documentation for Microsoft.VisualStudio…
timescale for DSL additions
Custom Rules in June CTP
Unable to intercept double click on deco…
Starting with DSL Tools

Recommend Articles

Rules in DSL Tools V1
Where do I place text for a captionId?
Compartment Shape Equivalents
Decorator for Compartments
Validation Framework
DSL & Automation
academic distribution of a DSL
How to make Tree's?
DSL interacting with VS project system.
Preventing model elements from being del…
Is DSL development a language driven dev…
Using Pictures
What is the best way to present 3 value …
Change name of Extension & name of t…
Elements doesn't appear to the target de…