plugin.xml

来自「基于Java RCP 应用的属性编辑, 可以对RCP 程序进行属性的设置」· XML 代码 · 共 82 行

XML
82
字号
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.ui.views">
      <category
            id="CommonProperties.FileListView"
            name="Common Properties"/>
      <view
            category="CommonProperties.FileListView"
            class="commonproperties.views.FileListView"
            icon="icons/sample.gif"
            id="commonproperties.views.FileListView"
            name="fileListView"/>
   </extension>
   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
         <view
               id="commonproperties.views.FileListView"
               ratio="0.5"
               relationship="right"
               relative="org.eclipse.ui.views.TaskList"/>
      </perspectiveExtension>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
      <propertyContributor contributorId="commonproperties.views.FileListView">
         <propertyCategory category="categoryFileList"/>
      </propertyContributor>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
      <propertyTabs contributorId="commonproperties.views.FileListView">
         <propertyTab
               category="categoryFileList"
               id="CommonProperties.propertyTab5"
               label="attribute"/>
         <propertyTab
               category="categoryFileList"
               id="CommonProperties.propertyTab6"
               label="path"/>
         <propertyTab
               category="categoryFileList"
               id="CommonProperties.propertyTab7"
               label="description"/>
      </propertyTabs>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertySections">
      <propertySections contributorId="commonproperties.views.FileListView">
         <propertySection
               class="commonproperties.tab.AttributePropertySection"
               enablesFor="1"
               id="CommonProperties.propertySection5"
               tab="CommonProperties.propertyTab5">
            <input type="commonproperties.model.FileModel"/>
         </propertySection>
         <propertySection
               class="commonproperties.tab.PathPropertySection"
               id="CommonProperties.propertySection6"
               tab="CommonProperties.propertyTab6">
            <input type="commonproperties.model.FileModel"/>
         </propertySection>
         <propertySection
               class="commonproperties.tab.DescriptionPropertySection"
               id="CommonProperties.propertySection7"
               tab="CommonProperties.propertyTab7">
            <input type="commonproperties.model.FileModel"/>
         </propertySection>
         <propertySection
               class="commonproperties.tab.ParentPathPropertySection"
               id="CommonProperties.propertySection8"
               tab="CommonProperties.propertyTab6">
            <input type="commonproperties.model.FileModel"/>
         </propertySection>
      </propertySections>
   </extension>


</plugin>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?