<!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>
org.eclipse.ui.console.IConsoleFactory
的类,在调用相关联的操作时将调用它此扩展将导致在控制台视图的打开控制台下拉菜单中出现一个条目,该条目标为命令控制台并带有指定的图标。当某一用户调用该操作时,将调用类 com.example.CommandConsoleFactory 上的 openConsole() 方法。该工厂可确定是创建新控制台还是激活的控制台。<extension point=
"org.eclipse.ui.console.consoleFactories"
>
<consoleFactory label=
"Command Console"
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