导出文档设置exportDocument
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.actionSets"> <actionSet id="com.neusoft.unieap.workshop.exportDocument.actionSet1" label="UniEAP Function Area" visible="true"> <action class="com.neusoft.unieap.workshop.exportdocument.action.ExportDesignDocumentAction" icon="icons/doc_ex.png" id="com.neusoft.unieap.workshop.exportDocument.action1" label="%PLUGIN1" style="push" toolbarPath="Normal/UniEAP" tooltip="%PLUGIN1"> </action> </actionSet> </extension> <extension point="org.eclipse.core.runtime.adapters"> <factory adaptableType="org.eclipse.core.resources.IProject" class="com.neusoft.unieap.workshop.exportdocument.action.ComponentAdapterFactory"> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFolderAdapter"> </adapter> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFolderAdapter"> </adapter> </factory> <factory adaptableType="org.eclipse.core.resources.IFolder" class="com.neusoft.unieap.workshop.exportdocument.action.ComponentAdapterFactory"> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFolderAdapter"> </adapter> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFolderAdapter"> </adapter> </factory> <factory adaptableType="org.eclipse.core.resources.IFile" class="com.neusoft.unieap.workshop.exportdocument.action.ComponentAdapterFactory"> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFileAdapter"> </adapter> <adapter type="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFileAdapter"> </adapter> </factory> </extension> <extension point="org.eclipse.ui.popupMenus"> <objectContribution adaptable="false" id="com.neusoft.unieap.workshop.exportdocument.ExportModuleDesignFolderAdapter" objectClass="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFolderAdapter"> <action class="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFolderAction" id="com.neusoft.unieap.workshop.exportdocument.ExportModuleDesignFolderAction" label="%PLUGIN2"> </action> <menu icon="icons/tool.gif" id="unieap.genCodeAndXml.folder" label="%PLUGIN4"> </menu> <filter name="isExportModuleDesignFolder" value="true"> </filter> </objectContribution> <objectContribution adaptable="false" id="com.neusoft.unieap.workshop.exportdocument.ExportModuleDesignFileAdapter" objectClass="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFileAdapter"> <action class="com.neusoft.unieap.workshop.exportdocument.action.ExportModuleDesignFileAction" id="com.neusoft.unieap.workshop.exportdocument.ExportModuleDesignFolderAction" label="%PLUGIN2"> </action> <menu icon="icons/tool.gif" id="unieap.genCodeAndXml.file" label="%PLUGIN4"> </menu> <filter name="isExportModuleDesignFile" value="true"> </filter> </objectContribution> <objectContribution adaptable="false" id="com.neusoft.unieap.workshop.exportdocument.ExportViewRelationFolderAdapter" objectClass="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFolderAdapter"> <action class="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFolderAction" id="com.neusoft.unieap.workshop.exportdocument.ExportViewRelationFolderAction" label="%PLUGIN3"> </action> <menu icon="icons/tool.gif" id="unieap.genCodeAndXml.folder" label="%PLUGIN4"> </menu> <filter name="isExportViewRelationFolder" value="true"> </filter> </objectContribution> <objectContribution adaptable="false" id="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFileAdapter" objectClass="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFileAdapter"> <action class="com.neusoft.unieap.workshop.exportdocument.action.ExportViewRelationFileAction" id="com.neusoft.unieap.workshop.exportdocument.ExportViewRelationFileAction" label="%PLUGIN3"> </action> <menu icon="icons/tool.gif" id="unieap.genCodeAndXml.file" label="%PLUGIN4"> </menu> <filter name="isExportViewRelationFile" value="true"> </filter> </objectContribution> </extension> </plugin>