index > Visual Studio Team System - Domain-Specific Language Tools > changing the icon in the Solution Explorer without creating an O/...

changing the icon in the Solution Explorer without creating an O/...


Can anyone give directions on setting the icon for the dsl file in the solution explorer?
I want to do this without creating an operating system file association.

I realise that one needs to implement IVsHierarchy and override GetProperty, however I cant file how or where IVsHierarchy ties into the generated DSL code.

Any pointers?

Thanks again guys

Nimble

When you run the Domain-Specific Language Designer Wizard to create new language, click the "File Extension" tab on the left of the wizard. You can select the icon for your model files there. Thanks!




Frank Fan [MSFT]
Jing Fan
Jing, with the June CTP, the icon selection on the "File Extension" tab indeed sets the icon for the language, but the only effect is to associate the icon to the language on the dialog that shows when a user selects "add item" under the experimental hive.
The then created designer file does not show such icon in the solution explorer as we would expect.
Claudio Perrone

In our tools we simply use O/S association to achieve this.

[HKEY_CLASSES_ROOT\.dsl]
@="VisualStudio.Modeling.Sdk.DomainModelDesigner.1.0"

[HKEY_CLASSES_ROOT\VisualStudio.Modeling.Sdk.DomainModelDesigner.1.0]
@="Domain Specific Language Designer"
"AlwaysShowExt"="1"

[HKEY_CLASSES_ROOT\VisualStudio.Modeling.Sdk.DomainModelDesigner.1.0\DefaultIcon]
@="[#DslDesignerDll],0"

You can then insert the icon with the /win32icon flag n the csc compiler.




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ MSFT
In fact I just realized while it is true that the icon is not automatically associated with the DSL designer on the experimental hive, we don't really need to manually touch the registry as the problem is automatically solved when deploying
Claudio Perrone
reply 5

You can use google to search for other answers

 

More Articles

DSL Tools outside VS?
Problem starting generated DSL
May CTP is available....
DSL using languages
Adding items to compartment
Designing ClassDesigner in DSL Tools?
my feedback about dsl
How do I get a new ModelElement's corresponding Shape?
What is the future of MDA?
missing menu options in visual studio
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

DSLTools download moved?
Migrating to May CTP: Text Template Prob…
Question on property generator
Problem running Debug solution
Shape Icon and Shape Tool Minor Bug
No 'add new...' on Compartment
Adding/Removing elements in domain model
updated DSL Customization Samples and Gu…
DSL Tools Licensing
Controlling and detecting what elements …
DSL and XMI interchange format
VS SDK March 2006 CTP
Bug in Edit Attributes editor
Validation / Rejecting a change from a C…
Embedding shapes in v1

Hot Articles

How to categorize properties?
Multiple viewpoints/ zoom in, zoom out
change literals of enumeration property …
Experimental UI - show and hide shapes a…
UIPAB
updated DSL Customization Samples and Gu…
filtering reference dropdowns in the pro…
Creating a modelElement at runtime
Error creating DSL setup project (empty …
Diagram Size
Are there any Community Projects using t…
How can i force the placement of a port …
How to add a custom dialog for properties?
General Questions
Serialize reference type class member

Recommend Articles

General Questions
Transcript of Web Chat: Using the Domain…
Concept's Properties
TypeConverter's method GetStandardValues…
Setting the default expanded state for a…
Migrating custom text transformation tem…
Diferents Domain Models an Designer Defi…
connections restrictions between shapes …
Decorator for Compartments
DSL using languages
Unable to Replace Old Files by New ones
CompartmentShapes Walkthrough causes Ove…
Using existing Enumerations
What one-shot recipes would you add to D…
IE7 Beta 2 and DSL Tools