Skip to main content

Editor.IPluginComponent

Class

Interface for plugin component registration.

Index

Example

// Every interface registered with the plugin system extends IPluginComponent.
// Retrieve one by calling pluginSystem.findInterface() with its interfaceId
// and casting to the concrete type.
const model = this.pluginSystem.findInterface(
Editor.Model.IModel.interfaceId
) as Editor.Model.IModel;

console.log('Resolved IPluginComponent (IModel). Current project file:', model.project.projectFile.toString());

Extends

Extended by

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

IInterface.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

IInterface.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

IInterface.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

IInterface.isSame