Click or drag to resize
ViewAttribute Class
Extension attribute for integrating new views into Studio applications.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Sdl.Core.PluginFrameworkExtensionAttribute
      Sdl.Desktop.IntegrationApi.ExtensionsViewAttribute

Namespace: Sdl.Desktop.IntegrationApi.Extensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions (in Sdl.Desktop.IntegrationApi.Extensions.dll) Version: 4.0.0.0 (4.2.2764.0)
Syntax
public sealed class ViewAttribute : ExtensionAttribute, 
	ILocationAware

The ViewAttribute type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAllowViewParts
Gets or sets if the view can contain viewparts
Public propertyHelpTopic
Gets or sets the help topic ID for this view. Can be null.
Public propertyIsSeparator
Is separator determines if a separator should be added before the action
Public propertyLocationByType
Gets or sets the location of the view
Public propertyShortcut
Gets or sets the shortcut for accessing this view.
Public propertyZIndex
Defines a 0 based index order for the UI elements where the highest value is the most important.
Top
Remarks

A view is represented as an item in the explorer bar and is responsible for the showing the UI.

A view needs to implement the AbstractViewController class.

Remarks

The framework also provides support for getting property values from the PluginResources.resx resource file, which is deployed together with the plug-in manifest. To specify that the value of a certain string property needs to be retrieved from the resource file, annotate the property definition with the PluginResourceAttribute attribute. Users should now specify the name of the resource key, instead of the actual value, as the property value. When no resource string with the specified key can be found, the framework keeps the specified string as the property value. To define non-string properties whose value is stored in the PluginResources.resx resource file, create a string property, which value should be set to a resource key. When consuming the extension, use GetPluginResourceT(String) tio retriece the resource from the plug-in resource file.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments