refactor(com.connor.plm): 重构项目并添加新配置- 修改 .classpath 文件,调整库文件顺序

- 更新 KAction.java 中的注释
- 在 MANIFEST.MF 中添加 Export-Package
- 调整 plugin.xml 中的处理器顺序
- 新增 .idea 目录下的多个配置文件,设置项目忽略文件、Git 工具箱、项目根管理等
main
熊朝柱 1 week ago
parent 7435655f67
commit 2ee907c14f

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="poi_lib/commons-io-1.4.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/antlr-2.7.7.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/axis2-ant-plugin-1.6.2.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="poi_lib/aspose-words-17.4.0-jdk16.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/commons-collections4-4.1.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/poi-3.17.jar"/>
@ -12,8 +12,8 @@
<classpathentry exported="true" kind="lib" path="poi_lib/poi-ooxml-schemas-3.17.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/poi-scratchpad-3.17.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/xmlbeans-2.6.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="poi_lib/axis2-ant-plugin-1.6.2.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/antlr-2.7.7.jar"/>
<classpathentry exported="true" kind="lib" path="poi_lib/commons-io-1.4.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxBlameSettings">
<option name="version" value="2" />
</component>
</project>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxProjectSettings">
<option name="commitMessageIssueKeyValidationOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
<option name="commitMessageValidationEnabledOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ASMSmaliIdeaPluginConfiguration">
<asm skipDebug="true" skipFrames="true" skipCode="false" expandFrames="false" />
<groovy codeStyle="LEGACY" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="JavaSE-1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -36,3 +36,4 @@ Bundle-ClassPath: poi_lib/aspose-words-17.4.0-jdk16.jar,
poi_lib/axis2-ant-plugin-1.6.2.jar,
poi_lib/antlr-2.7.7.jar,
poi_lib/commons-io-1.4.jar
Export-Package: com.connor.plm

Binary file not shown.

@ -14,9 +14,9 @@
class="com.connor.plm.sample.DatasetSaveAsHandler"
commandId="com.connor.plm.sample.DatasetSaveAsHandler">
</handler>
<handler commandId="com.connor.plm.sb01.PropertyToWordOrExcelCommand" class="com.connor.plm.KHandler"/>
<handler commandId="com.connor.plm.sb02.DerivedChangeRequestCommand" class="com.connor.plm.KHandler"/>
<handler commandId="com.connor.plm.sb02.DerivedChangeNoticeCommand" class="com.connor.plm.KHandler"/>
<handler commandId="com.connor.plm.sb01.PropertyToWordOrExcelCommand" class="com.connor.plm.KHandler"/>
<handler commandId="com.connor.plm.sb02.DerivedChangeRequestCommand" class="com.connor.plm.KHandler"/>
<handler commandId="com.connor.plm.sb02.DerivedChangeNoticeCommand" class="com.connor.plm.KHandler"/>
</extension>
<!--菜单快捷键设置-->
<extension

@ -22,8 +22,8 @@ public class KAction extends AbstractAIFAction {
String action=actionName;
String actionData="";
if(ind>0) {
action=actionName.substring(0,ind);
actionData=actionName.substring(ind+1);
action=actionName.substring(0,ind);//actionName中#号前面的内容
actionData=actionName.substring(ind+1);//actionName中#号后面的内容
}
Class<?> c = Class.forName(action);
Constructor<?> constructor = c.getConstructor(AbstractAIFApplication.class, String.class,String.class);

Loading…
Cancel
Save