index > Visual Studio Team System - Domain-Specific Language Tools > Interacting with Server Explorer

Interacting with Server Explorer


I would like to make a mapping tool very similar to the mapping tool for DLinq. Is there any documentation on interacting with Server Explorer? I would like to be able to drag an object from the Server Explorer window to create a shape on the diagram.

Thanks for any guidance.

-Daniel

Daniel Pratt

Hi Daniel,

There's not a great deal available, but the clipboard format of the server explorer is called DSRef

Have a look at the following topic.

ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK.v80/dv_vsdecon/html/a5f726ce-6957-475b-8597-0247435960f3.htm
In case this url doesn't work, the title is "Building a DSRef Object from a Type Instance".

Have a look at the code posted by Ted at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=265925&SiteID=1
It
appears you need to unmarshall an object implementing IDSRefConsumer interface from the stream on the clipboard.

Hope this sets you off down a useful path.

Gareth




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

Actually, here's a somewhat terser post with the code needed to parse the clipboard.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=265925&SiteID=1




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

That's exactly what I needed to get started. Thanks Gareth.

Daniel Pratt
reply 4

You can use google to search for other answers

 

More Articles

How to change the Name property when a Shape is droped into the d...
Reordering items in compartments?
bidirectional connectors
changing the icon in the Solution Explorer without creating an O/...
Properties Mapping/Text Templates
Custom Rules in June CTP
DSL and VS 2005 Release Candidate 1 ?
Default values not stored
Prevent rules from firing during model deserialization
User Domain Model Displayed as XML
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Name of new elements
N-ary Relationships
Adding items to compartment
Change name of Extension & name of t…
newbie question,thank you for your atten…
Many models, one template.
When will a release be made available fo…
[outdated] September 2005 CTP available
how can i get a reference to a modelelem…
Compartiment with multiple classes to be…
Custom type for property
February CTP of DSL Tools is live in the…
DSL & Automation
How to set custom properties at runtime?
Re: Have problem for the DSL walk-throug…

Hot Articles

Instanciate an external model
toolbox problem - reset toolbox doesn't …
Error in "Domain-Specific Language …
Rules in DSL Tools V1
On Stores, Editors & Models.
Properties Mapping/Text Templates
Template transformation error in designe…
How to intercept click on icon decorator
Can we host DSL designer in a custom hos…
Experience report: Building my own DSL
DMD -> DD helper tool (contribution)
updated DSL Customization Samples and Gu…
How to implement Rules in DSL
Prevent generated DSL code from producin…
Checkbox list as property type which is …

Recommend Articles

How to Block Self-Relationship
guidLogicalView
When will a release be made available fo…
constrain the number of a specific shape
Double Click on Compartment Item
changing defaults in inherited propeties
change literals of enumeration property …
Error : Value cannot be null ,Parameter …
Non string name domain properties
Getting Validation State
Reference relationships without graphica…
T4 Example of passing parameters to Text…
2 problems with V1 release
Odd results experimenting with shapes an…
When do you plan to update documentation…