다음을 통해 공유


ModelingEditorFactory.MapLogicalView Method

Definition

Overloads

MapLogicalView(Guid, String)

Maps a logical view to a physical view. This method is called before CreateEditorInstance to allow us to map logical views to physical ones.

MapLogicalView(Guid, Object)

Called when the shell asks us to map a logical view to a physical one. Logical views correspond to view types, physical views correspond to view instances. Because we potentially want to support multiple physical views of a given logical view open at once, we also pass along an object which derived classes can use to differentiate the physical views. For example, in the case of multiple web services being viewed in the Service Designer, the logical view (GUID of the Service Designer) would be the same, but the viewContext would allow derived classes to distiguish between designer instances and return a different physical view (it might be a some IMS element, for example).

Derived classes must handle the case where the viewContext is null. This will occur when the user double-clicks on a file as opposed to drilling down to a different view from one of our editors. Most likely they will just return the default physical view, the empty string. Note that this means there may be only one physical view for the default logical view for a file (this would correspond to the ApplicationDesigner, for example).

MapLogicalView(Guid, String)

Maps a logical view to a physical view. This method is called before CreateEditorInstance to allow us to map logical views to physical ones.

public:
 virtual int MapLogicalView(Guid % logicalView, [Runtime::InteropServices::Out] System::String ^ % viewName);
public int MapLogicalView (ref Guid logicalView, out string viewName);
abstract member MapLogicalView : Guid * string -> int
override this.MapLogicalView : Guid * string -> int
Public Function MapLogicalView (ByRef logicalView As Guid, ByRef viewName As String) As Integer

Parameters

logicalView
Guid

Guid of the logical view to display in the editor.

viewName
String

Name of the view.

Returns

Implements

Applies to

MapLogicalView(Guid, Object)

Called when the shell asks us to map a logical view to a physical one. Logical views correspond to view types, physical views correspond to view instances. Because we potentially want to support multiple physical views of a given logical view open at once, we also pass along an object which derived classes can use to differentiate the physical views. For example, in the case of multiple web services being viewed in the Service Designer, the logical view (GUID of the Service Designer) would be the same, but the viewContext would allow derived classes to distiguish between designer instances and return a different physical view (it might be a some IMS element, for example).

Derived classes must handle the case where the viewContext is null. This will occur when the user double-clicks on a file as opposed to drilling down to a different view from one of our editors. Most likely they will just return the default physical view, the empty string. Note that this means there may be only one physical view for the default logical view for a file (this would correspond to the ApplicationDesigner, for example).

protected:
 virtual System::String ^ MapLogicalView(Guid logicalView, System::Object ^ viewContext);
protected virtual string MapLogicalView (Guid logicalView, object viewContext);
abstract member MapLogicalView : Guid * obj -> string
override this.MapLogicalView : Guid * obj -> string
Protected Overridable Function MapLogicalView (logicalView As Guid, viewContext As Object) As String

Parameters

logicalView
Guid
viewContext
Object

Returns

Applies to