特别声明:
建议使用google游览器,火狐也可以
论坛处于测试阶段,一切资料都为测试资料,在论坛正式运行的时候,会尽量保存网友的劳动成果!
HelloWorld论坛秉持互惠互利,共同学习与进步,一个人的梦想大家实现的理想,一直坚持着,望广大网友多多支持,提供宝贵意见
来论坛做什么?
可以先转载你平时学习查找的资料(先论坛查找),自己可以写写体会
把平时碰到的问题,如何解决可以先记录在论坛,以备后来的人学习
可以和会员一起参加一些开源项目的学习,汉化,推广,甚至可以加入团队
|
|
来源:http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fdialogs_wizards_newWizards.htm&cp=2_0_5_4_0【水平很烂,借助百度。如何有不对,请告知,马上改进!】 Creation Wizards创建向导
Identifier:org.eclipse.ui.newWizards
Description描述:This extension point is used to register resource creation wizard extensions.这个扩展点被用来注册资源创建扩展向导。 Creation wizards appear as choices within the "New Dialog", and are typically used to create folders and files.新建向导表现为内嵌多个对话框的形式,通常被用来创建文件夹和文件。 In the "New Dialog", wizards are organized into categories which usually reflect a particular problem domain.在一个新建窗口对话框向导中,向导包含几个分类,每一个分类用来解决一个特定范围的问题。For instance, a Java oriented plugin may define a category called "Java" which is appropriate for "Class" or "Package" creation wizards.例如,面向java的插件可以定义一类称为Java的特性,这类特性能创建java类和包的向导。 The categories defined by one plug-in can be referenced by other plug-ins using the category attribute.一个插件中定义的特性能被用到这个特性属性的其他插件引用。 Uncategorized wizards, as well as wizards with invalid category paths, will end up in an "Other" category.未分类的向导,以及无效的类别路径向导,最终会在“其他”类别。 Wizards may optionally specify a description subelement whose body should contain short text about the wizard.向导可以选择指定一个描述元素,这个元素应该包含简单的文字,介绍这个向导。
Configuration Markup:
<!ELEMENT extension (category | wizard | primaryWizard)*> <!ATTLIST extension point CDATA #REQUIRED id CDATA #IMPLIED name CDATA #IMPLIED >
<!ELEMENT category EMPTY> <!ATTLIST category id CDATA #REQUIRED name CDATA #REQUIRED parentCategory IDREF #IMPLIED >
<!ELEMENT wizard (description? , selection* , keywordReference*)> <!ATTLIST wizard id CDATA #REQUIRED name CDATA #REQUIRED icon CDATA #IMPLIED category CDATA #IMPLIED class CDATA #REQUIRED project (true | false) finalPerspective IDREF #IMPLIED preferredPerspectives CDATA #IMPLIED helpHref CDATA #IMPLIED descriptionImage CDATA #IMPLIED canFinishEarly (true | false) hasPages (true | false) >
<!ELEMENT description (#PCDATA)> an optional subelement whose body contains a short text describing what the wizard will do when started一个可选的子元素,其体内含有一个简短的文字描述向导会什么时候开始。 <!ELEMENT selection EMPTY> <!ATTLIST selection class CDATA #REQUIRED name CDATA #IMPLIED >
<!ELEMENT primaryWizard EMPTY> <!ATTLIST primaryWizard id IDREF #REQUIRED > a means of declaring that a wizard is "primary" in the UI.在UI当中,申明一个主向导的方法。 A primary wizard is emphasized in the new wizard dialog. 主向导在新的向导对话框中被强调。Please note that this element is not intended to be used by plug in developers!请注意,此元素不打算由插件开发者使用! This element exists so that product managers may emphasize a set of wizards for their products.这些元素的存在,会使产品经理强调他的一些列产品向导。
<!ELEMENT keywordReference EMPTY> <!ATTLIST keywordReference id IDREF #REQUIRED > A reference by a New Wizard to a keyword. 通过关键字参考一个新向导。See the keywords extension point.通过关键字看扩展点。
Examples: 例子:Following is an example of creation wizard configuration:接下来是一个创建向导配置的例子:
<extension point="org.eclipse.ui.newWizards"> <category id="com.xyz.XYZ" name="XYZ Wizards"> </category> <category id="com.xyz.XYZ.Web" name="Web Wizards" parentCategory="com.xyz.XYZ"> </category> <wizard id="com.xyz.wizard1" name="XYZ artifact" category="com.xyz.XYZ/com.xyz.XYZ.Web" icon="./icons/XYZwizard1.gif" class="com.xyz.XYZWizard1"> <description> Create a simple XYZ artifact and set initial content </description> <selection class="org.eclipse.core.resources.IResource"/> </wizard> </extension> API Information: API信息:The value of the class attribute must represent a class that implements org.eclipse.ui.INewWizard.类必须实现接口org.eclipse.ui.INewWizard。If the wizard is created from within the New Wizard it will be inserted into the existing wizard.如果向导被创建,新的向导将会插入。 If the wizard is launched as a shortcut (from the File New menu or a toolbar button) it will appear standalone as a separate dialog box.如果向导作为快捷方式启动(出现在文件右击菜单或工具栏按钮),它会作为一个单独的对话框出现。
Supplied Implementation: 所提供的实现:The workbench comes with wizards for creating empty resources of the following types:project, folder and file. 平台提供的空向导,创建如下类型: 空项目、空文件夹、空文件。These wizards are registered using the same mechanism as described above. 这些向导都使用如上面所描述的相同的机制注册。 Additional wizards may also appear, subject to particular platform installation.其他的向导也会出现,用来解决特殊的问题。
|
[审核人]初学MPEG |
|
|
Please Login (or Sign Up) to leave a comment |