Console Factories

org.eclipse.ui.console.consoleFactories

3.1

A console factory creates or activates a console, and appears as an action in the console view.

<!ELEMENT extension (consoleFactory)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT consoleFactory EMPTY>

<!ATTLIST consoleFactory

label CDATA #REQUIRED

icon  CDATA #IMPLIED

class CDATA #REQUIRED>


The following is an example of a console factory extension point:

<extension point=

"org.eclipse.ui.console.consoleFactories"

>

<consoleFactory label=

"Command Console"

class=

"com.example.CommandConsoleFactory"

icon=

"icons/cmd_console.gif"

>

</consoleFactory>

</extension>

This extension will cause an entry to appear in the console view's Open Console drop-down menu labelled Command Console with the specified icon. When the action is invoked by a user, the method openConsole() on the class com.example.CommandConsoleFactory will be called. The factory can the decide to create a new console or activate an existing console.

Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.ui.console.IConsoleFactory.

The console plug-in provides a console factory to open a new console view.