Пример #1
0
        /// <summary>
        /// Called by the shell to ask the editor to create a new document object.
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="hierarchy"></param>
        /// <param name="itemId"></param>
        public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
        {
            // Create the document type supported by this editor.

            // Create model data
            global::Tum.PDE.ModelingDSL.PDEModelingDSLDocumentData modelData = new global::Tum.PDE.ModelingDSL.PDEModelingDSLDocumentData();

            // Create shell model data
            PDEModelingDSLDocData shellModelData = new PDEModelingDSLDocData(modelData, this.ServiceProvider, typeof(PDEModelingDSLEditorFactory).GUID);

            this.ModelData = shellModelData;

            // Set file name properties
            System.IO.FileInfo info = new System.IO.FileInfo(fileName);
            shellModelData.FullFileName = fileName;
            shellModelData.FileName     = info.Name;

            return(shellModelData);
        }
Пример #2
0
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new TaskFlowDSLSampleDocData(this.ServiceProvider, typeof(TaskFlowDSLSampleEditorFactory).GUID));
 }
Пример #3
0
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 protected override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new CandleDocData(this.ServiceProvider, typeof(UIWorkflowLayerEditorFactory).GUID));
 }
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new ConfigurationSectionDesignerDocData(this.ServiceProvider, typeof(ConfigurationSectionDesignerEditorFactory).GUID));
 }
Пример #5
0
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new DRQPJPFMAMPracticaDSLToolsDocData(this.ServiceProvider, typeof(DRQPJPFMAMPracticaDSLToolsEditorFactory).GUID));
 }
Пример #6
0
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new MicrosoftDataEntityDesignDocData(this.ServiceProvider, typeof(MicrosoftDataEntityDesignEditorFactory).GUID));
 }
Пример #7
0
 /// <summary>
 /// Called by the shell to ask the editor to create a new document object.
 /// </summary>
 public override DslShell::ModelingDocData CreateDocData(string fileName, VSShellInterop::IVsHierarchy hierarchy, uint itemId)
 {
     // Create the document type supported by this editor.
     return(new ApplicationCooperationViewPointDocData(this.ServiceProvider, typeof(ApplicationCooperationViewPointEditorFactory).GUID));
 }