<!ELEMENT extension (consoleFactory)>
<!ATTLIST-udvidelse
point CDATA #REQUIRED
id CDATA #IMPLIED
navn CDATA #IMPLIED>
<!ELEMENT consoleFactory EMPTY>
<!ATTLIST consoleFactory
label CDATA #REQUIRED
icon CDATA #IMPLIED
class CDATA #REQUIRED>
org.eclipse.ui.console.IConsoleFactory
, som kaldes, når den tilknyttede funktion startes.Denne udvidelse vil bevirke, at der vises et punkt på konsoloversigtens Åbn konsol-menu med navnet Kommandokonsol sammen med den angivne ikon. Når funktionen startes af en bruger, kaldes metoden openConsole() på klassen com.example.CommandConsoleFactory. Fabrikken kan beslutte at oprette en ny konsol eller at aktivere en eksisterende.<udvidelsespunkt=
"org.eclipse.ui.console.consoleFactories"
>
<consoleFactory label=
"Kommandokonsol"
class=
"com.example.CommandConsoleFactory"
icon=
"icons/cmd_console.gif"
>
</consoleFactory>
</extension>
Copyright (c) 2004, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html