@ -0,0 +1,82 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/activation-1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/antlr-2.7.7.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/apache-mime4j-core-0.7.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axiom-api-1.2.13.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axiom-dom-1.2.13.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axiom-impl-1.2.13.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-adb-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-adb-codegen-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-ant-plugin-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-clustering-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-codegen-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-corba-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-fastinfoset-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-java2wsdl-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-jaxbri-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-jaxws-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-jibx-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-json-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-kernel-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-metadata-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-mtompolicy-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-saaj-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-soapmonitor-servlet-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-spring-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-transport-http-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-transport-local-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/axis2-xmlbeans-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/bcel-5.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-cli-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-codec-1.3.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-fileupload-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-httpclient-3.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-io-1.4.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/commons-logging-1.1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-annotation_1.0_spec-1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-jaxws_2.2_spec-1.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-jta_1.1_spec-1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-saaj_1.3_spec-1.0.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/httpcore-4.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jalopy-1.5rc3.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jaxb-api-2.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jaxb-impl-2.1.7.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jaxb-xjc-2.1.7.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jaxen-1.1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jaxws-tools-2.1.3.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jettison-1.0-RC2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jibx-bind-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jibx-run-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/jsr311-api-1.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/juli-6.0.16.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/log4j-1.2.15.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/mail-1.4.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/mex-1.6.2-impl.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/neethi-3.0.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/regexp-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/tribes-6.0.16.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/woden-api-1.0M9.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/woden-impl-commons-1.0M9.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/woden-impl-dom-1.0M9.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/wsdl4j-1.6.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/wstx-asl-3.2.9.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/xalan-2.7.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/xml-resolver-1.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/xmlbeans-2.3.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="axis2_lib/XmlSchema-1.4.7.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/commons-beanutils-1.7.0.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/commons-collections-3.2.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/commons-lang-2.4.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/commons-logging-1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/ezmorph-1.0.4.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/jdom.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/json-lib-2.2.2-jdk15.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="json_lib/json-lib-2.2.3-jdk13.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 kind="output" path="classes"/>
|
||||||
|
</classpath>
|
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>cn.com.origin.autocode</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,903 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: Autocode Plug-in
|
||||||
|
Bundle-SymbolicName: cn.com.origin.autocode;singleton:=true
|
||||||
|
Bundle-Version: 1.0.0
|
||||||
|
Bundle-Activator: cn.com.origin.autocode.Activator
|
||||||
|
Require-Bundle: org.eclipse.ui;bundle-version="3.111.0",
|
||||||
|
org.eclipse.core.runtime;bundle-version="3.15.100",
|
||||||
|
cn.com.origin.autocodemanager;bundle-version="1.0.0",
|
||||||
|
com.teamcenter.rac.aifrcp;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.common;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.external;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.kernel;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.tcapps;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.util;bundle-version="12000.2.0",
|
||||||
|
icctstubs;bundle-version="12000.2.0",
|
||||||
|
org.eclipse.ui.forms;bundle-version="3.5.200",
|
||||||
|
TcSoaCadRac;bundle-version="12000.2.0",
|
||||||
|
TcSoaClient;bundle-version="12000.2.0",
|
||||||
|
TcSoaCommon;bundle-version="12000.2.0",
|
||||||
|
TcSoaCoreRac;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.classification.icadmin;bundle-version="12000.2.0",
|
||||||
|
TcSoaCoreTypes;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.classification.icm;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.cme.mpp;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.ui;bundle-version="12000.2.0",
|
||||||
|
com.teamcenter.rac.ui.commands;bundle-version="12000.2.0",
|
||||||
|
org.eclipse.osgi.services;bundle-version="3.7.100",
|
||||||
|
org.eclipse.osgi.util;bundle-version="3.5.100"
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
|
Export-Package: .,
|
||||||
|
antlr,
|
||||||
|
antlr.ASdebug,
|
||||||
|
antlr.actions.cpp,
|
||||||
|
antlr.actions.csharp,
|
||||||
|
antlr.actions.java,
|
||||||
|
antlr.actions.python,
|
||||||
|
antlr.build,
|
||||||
|
antlr.collections,
|
||||||
|
antlr.collections.impl,
|
||||||
|
antlr.debug,
|
||||||
|
antlr.debug.misc,
|
||||||
|
antlr.preprocessor,
|
||||||
|
cn.com.origin.autocode,
|
||||||
|
cn.com.origin.autocode.classification,
|
||||||
|
cn.com.origin.autocode.classification.panels,
|
||||||
|
cn.com.origin.autocode.common,
|
||||||
|
cn.com.origin.autocode.common.operations,
|
||||||
|
cn.com.origin.autocode.handlers,
|
||||||
|
cn.com.origin.autocode.jfom.util,
|
||||||
|
cn.com.origin.autocode.newitem.generatcode,
|
||||||
|
cn.com.origin.autocode.newitem.origin,
|
||||||
|
cn.com.origin.autocode.newitem.system,
|
||||||
|
cn.com.origin.autocode.saveas,
|
||||||
|
cn.com.origin.autocode.views,
|
||||||
|
cn.com.origin.autocode.views.codeview,
|
||||||
|
cn.com.origin.autocode.views.groupview,
|
||||||
|
cn.com.origin.autocode.views.itemtypeview,
|
||||||
|
cn.com.origin.autocode.xmlutil,
|
||||||
|
com.ctc.wstx.api,
|
||||||
|
com.ctc.wstx.cfg,
|
||||||
|
com.ctc.wstx.compat,
|
||||||
|
com.ctc.wstx.dom,
|
||||||
|
com.ctc.wstx.dtd,
|
||||||
|
com.ctc.wstx.ent,
|
||||||
|
com.ctc.wstx.evt,
|
||||||
|
com.ctc.wstx.exc,
|
||||||
|
com.ctc.wstx.io,
|
||||||
|
com.ctc.wstx.msv,
|
||||||
|
com.ctc.wstx.sax,
|
||||||
|
com.ctc.wstx.sr,
|
||||||
|
com.ctc.wstx.stax,
|
||||||
|
com.ctc.wstx.sw,
|
||||||
|
com.ctc.wstx.util,
|
||||||
|
com.ibm.wsdl,
|
||||||
|
com.ibm.wsdl.extensions,
|
||||||
|
com.ibm.wsdl.extensions.http,
|
||||||
|
com.ibm.wsdl.extensions.mime,
|
||||||
|
com.ibm.wsdl.extensions.schema,
|
||||||
|
com.ibm.wsdl.extensions.soap,
|
||||||
|
com.ibm.wsdl.extensions.soap12,
|
||||||
|
com.ibm.wsdl.factory,
|
||||||
|
com.ibm.wsdl.util,
|
||||||
|
com.ibm.wsdl.util.xml,
|
||||||
|
com.ibm.wsdl.xml,
|
||||||
|
com.sun.activation.registries,
|
||||||
|
com.sun.activation.viewers,
|
||||||
|
com.sun.codemodel,
|
||||||
|
com.sun.codemodel.fmt,
|
||||||
|
com.sun.codemodel.util,
|
||||||
|
com.sun.codemodel.writer,
|
||||||
|
com.sun.dtdparser,
|
||||||
|
com.sun.istack,
|
||||||
|
com.sun.istack.localization,
|
||||||
|
com.sun.istack.tools,
|
||||||
|
com.sun.istack.ws,
|
||||||
|
com.sun.mail.handlers,
|
||||||
|
com.sun.mail.iap,
|
||||||
|
com.sun.mail.imap,
|
||||||
|
com.sun.mail.imap.protocol,
|
||||||
|
com.sun.mail.pop3,
|
||||||
|
com.sun.mail.smtp,
|
||||||
|
com.sun.mail.util,
|
||||||
|
com.sun.org.apache.xml.internal.resolver,
|
||||||
|
com.sun.org.apache.xml.internal.resolver.helpers,
|
||||||
|
com.sun.org.apache.xml.internal.resolver.readers,
|
||||||
|
com.sun.org.apache.xml.internal.resolver.tools,
|
||||||
|
com.sun.tools.jxc,
|
||||||
|
com.sun.tools.jxc.apt,
|
||||||
|
com.sun.tools.jxc.gen.config,
|
||||||
|
com.sun.tools.jxc.model.nav,
|
||||||
|
com.sun.tools.resourcegen,
|
||||||
|
com.sun.tools.ws,
|
||||||
|
com.sun.tools.ws.ant,
|
||||||
|
com.sun.tools.ws.api,
|
||||||
|
com.sun.tools.ws.api.wsdl,
|
||||||
|
com.sun.tools.ws.processor,
|
||||||
|
com.sun.tools.ws.processor.generator,
|
||||||
|
com.sun.tools.ws.processor.model,
|
||||||
|
com.sun.tools.ws.processor.model.exporter,
|
||||||
|
com.sun.tools.ws.processor.model.java,
|
||||||
|
com.sun.tools.ws.processor.model.jaxb,
|
||||||
|
com.sun.tools.ws.processor.modeler,
|
||||||
|
com.sun.tools.ws.processor.modeler.annotation,
|
||||||
|
com.sun.tools.ws.processor.modeler.wsdl,
|
||||||
|
com.sun.tools.ws.processor.util,
|
||||||
|
com.sun.tools.ws.resources,
|
||||||
|
com.sun.tools.ws.spi,
|
||||||
|
com.sun.tools.ws.util,
|
||||||
|
com.sun.tools.ws.util.xml,
|
||||||
|
com.sun.tools.ws.wscompile,
|
||||||
|
com.sun.tools.ws.wsdl.document,
|
||||||
|
com.sun.tools.ws.wsdl.document.http,
|
||||||
|
com.sun.tools.ws.wsdl.document.jaxws,
|
||||||
|
com.sun.tools.ws.wsdl.document.mime,
|
||||||
|
com.sun.tools.ws.wsdl.document.schema,
|
||||||
|
com.sun.tools.ws.wsdl.document.soap,
|
||||||
|
com.sun.tools.ws.wsdl.framework,
|
||||||
|
com.sun.tools.ws.wsdl.parser,
|
||||||
|
com.sun.tools.xjc,
|
||||||
|
com.sun.tools.xjc.addon.at_generated,
|
||||||
|
com.sun.tools.xjc.addon.code_injector,
|
||||||
|
com.sun.tools.xjc.addon.episode,
|
||||||
|
com.sun.tools.xjc.addon.locator,
|
||||||
|
com.sun.tools.xjc.addon.sync,
|
||||||
|
com.sun.tools.xjc.api,
|
||||||
|
com.sun.tools.xjc.api.impl.j2s,
|
||||||
|
com.sun.tools.xjc.api.impl.s2j,
|
||||||
|
com.sun.tools.xjc.api.util,
|
||||||
|
com.sun.tools.xjc.generator.annotation.ri,
|
||||||
|
com.sun.tools.xjc.generator.annotation.spec,
|
||||||
|
com.sun.tools.xjc.generator.bean,
|
||||||
|
com.sun.tools.xjc.generator.bean.field,
|
||||||
|
com.sun.tools.xjc.generator.util,
|
||||||
|
com.sun.tools.xjc.model,
|
||||||
|
com.sun.tools.xjc.model.nav,
|
||||||
|
com.sun.tools.xjc.outline,
|
||||||
|
com.sun.tools.xjc.reader,
|
||||||
|
com.sun.tools.xjc.reader.dtd,
|
||||||
|
com.sun.tools.xjc.reader.dtd.bindinfo,
|
||||||
|
com.sun.tools.xjc.reader.gbind,
|
||||||
|
com.sun.tools.xjc.reader.internalizer,
|
||||||
|
com.sun.tools.xjc.reader.relaxng,
|
||||||
|
com.sun.tools.xjc.reader.xmlschema,
|
||||||
|
com.sun.tools.xjc.reader.xmlschema.bindinfo,
|
||||||
|
com.sun.tools.xjc.reader.xmlschema.ct,
|
||||||
|
com.sun.tools.xjc.reader.xmlschema.parser,
|
||||||
|
com.sun.tools.xjc.runtime,
|
||||||
|
com.sun.tools.xjc.util,
|
||||||
|
com.sun.tools.xjc.writer,
|
||||||
|
com.sun.xml.bind,
|
||||||
|
com.sun.xml.bind.annotation,
|
||||||
|
com.sun.xml.bind.api,
|
||||||
|
com.sun.xml.bind.api.impl,
|
||||||
|
com.sun.xml.bind.marshaller,
|
||||||
|
com.sun.xml.bind.unmarshaller,
|
||||||
|
com.sun.xml.bind.util,
|
||||||
|
com.sun.xml.bind.v2,
|
||||||
|
com.sun.xml.bind.v2.bytecode,
|
||||||
|
com.sun.xml.bind.v2.model.annotation,
|
||||||
|
com.sun.xml.bind.v2.model.core,
|
||||||
|
com.sun.xml.bind.v2.model.impl,
|
||||||
|
com.sun.xml.bind.v2.model.nav,
|
||||||
|
com.sun.xml.bind.v2.model.runtime,
|
||||||
|
com.sun.xml.bind.v2.runtime,
|
||||||
|
com.sun.xml.bind.v2.runtime.output,
|
||||||
|
com.sun.xml.bind.v2.runtime.property,
|
||||||
|
com.sun.xml.bind.v2.runtime.reflect,
|
||||||
|
com.sun.xml.bind.v2.runtime.reflect.opt,
|
||||||
|
com.sun.xml.bind.v2.runtime.unmarshaller,
|
||||||
|
com.sun.xml.bind.v2.schemagen,
|
||||||
|
com.sun.xml.bind.v2.schemagen.episode,
|
||||||
|
com.sun.xml.bind.v2.schemagen.xmlschema,
|
||||||
|
com.sun.xml.bind.v2.util,
|
||||||
|
com.sun.xml.dtdparser,
|
||||||
|
com.sun.xml.txw2,
|
||||||
|
com.sun.xml.txw2.annotation,
|
||||||
|
com.sun.xml.txw2.output,
|
||||||
|
com.sun.xml.xsom,
|
||||||
|
com.sun.xml.xsom.impl,
|
||||||
|
com.sun.xml.xsom.impl.parser,
|
||||||
|
com.sun.xml.xsom.impl.parser.state,
|
||||||
|
com.sun.xml.xsom.impl.scd,
|
||||||
|
com.sun.xml.xsom.impl.util,
|
||||||
|
com.sun.xml.xsom.parser,
|
||||||
|
com.sun.xml.xsom.util,
|
||||||
|
com.sun.xml.xsom.visitor,
|
||||||
|
de.hunsicker.io,
|
||||||
|
de.hunsicker.jalopy,
|
||||||
|
de.hunsicker.jalopy.language,
|
||||||
|
de.hunsicker.jalopy.language.antlr,
|
||||||
|
de.hunsicker.jalopy.plugin,
|
||||||
|
de.hunsicker.jalopy.prefs,
|
||||||
|
de.hunsicker.jalopy.printer,
|
||||||
|
de.hunsicker.jalopy.storage,
|
||||||
|
de.hunsicker.jalopy.swing,
|
||||||
|
de.hunsicker.jalopy.swing.syntax,
|
||||||
|
de.hunsicker.swing,
|
||||||
|
de.hunsicker.swing.util,
|
||||||
|
de.hunsicker.util,
|
||||||
|
de.hunsicker.util.concurrent,
|
||||||
|
java_cup.runtime,
|
||||||
|
javax.activation,
|
||||||
|
javax.annotation,
|
||||||
|
javax.annotation.security,
|
||||||
|
javax.jws,
|
||||||
|
javax.jws.soap,
|
||||||
|
javax.mail,
|
||||||
|
javax.mail.event,
|
||||||
|
javax.mail.internet,
|
||||||
|
javax.mail.search,
|
||||||
|
javax.mail.util,
|
||||||
|
javax.transaction,
|
||||||
|
javax.transaction.xa,
|
||||||
|
javax.ws.rs,
|
||||||
|
javax.ws.rs.core,
|
||||||
|
javax.ws.rs.ext,
|
||||||
|
javax.wsdl,
|
||||||
|
javax.wsdl.extensions,
|
||||||
|
javax.wsdl.extensions.http,
|
||||||
|
javax.wsdl.extensions.mime,
|
||||||
|
javax.wsdl.extensions.schema,
|
||||||
|
javax.wsdl.extensions.soap,
|
||||||
|
javax.wsdl.extensions.soap12,
|
||||||
|
javax.wsdl.factory,
|
||||||
|
javax.wsdl.xml,
|
||||||
|
javax.xml.bind,
|
||||||
|
javax.xml.bind.annotation,
|
||||||
|
javax.xml.bind.annotation.adapters,
|
||||||
|
javax.xml.bind.attachment,
|
||||||
|
javax.xml.bind.helpers,
|
||||||
|
javax.xml.bind.util,
|
||||||
|
javax.xml.soap,
|
||||||
|
javax.xml.stream,
|
||||||
|
javax.xml.stream.events,
|
||||||
|
javax.xml.stream.util,
|
||||||
|
javax.xml.ws,
|
||||||
|
javax.xml.ws.handler,
|
||||||
|
javax.xml.ws.handler.soap,
|
||||||
|
javax.xml.ws.http,
|
||||||
|
javax.xml.ws.soap,
|
||||||
|
javax.xml.ws.spi,
|
||||||
|
javax.xml.ws.spi.http,
|
||||||
|
javax.xml.ws.wsaddressing,
|
||||||
|
net.sf.ezmorph,
|
||||||
|
net.sf.ezmorph.array,
|
||||||
|
net.sf.ezmorph.bean,
|
||||||
|
net.sf.ezmorph.object,
|
||||||
|
net.sf.ezmorph.primitive,
|
||||||
|
net.sf.ezmorph.test,
|
||||||
|
net.sf.json,
|
||||||
|
net.sf.json.filters,
|
||||||
|
net.sf.json.groovy,
|
||||||
|
net.sf.json.processors,
|
||||||
|
net.sf.json.regexp,
|
||||||
|
net.sf.json.test,
|
||||||
|
net.sf.json.util,
|
||||||
|
net.sf.json.xml,
|
||||||
|
org.apache.axiom.attachments,
|
||||||
|
org.apache.axiom.attachments.impl,
|
||||||
|
org.apache.axiom.attachments.lifecycle,
|
||||||
|
org.apache.axiom.attachments.lifecycle.impl,
|
||||||
|
org.apache.axiom.attachments.utils,
|
||||||
|
org.apache.axiom.ext.activation,
|
||||||
|
org.apache.axiom.ext.io,
|
||||||
|
org.apache.axiom.ext.stax,
|
||||||
|
org.apache.axiom.ext.stax.datahandler,
|
||||||
|
org.apache.axiom.locator,
|
||||||
|
org.apache.axiom.locator.loader,
|
||||||
|
org.apache.axiom.mime,
|
||||||
|
org.apache.axiom.mime.impl.axiom,
|
||||||
|
org.apache.axiom.mime.impl.javamail,
|
||||||
|
org.apache.axiom.om,
|
||||||
|
org.apache.axiom.om.dom,
|
||||||
|
org.apache.axiom.om.ds,
|
||||||
|
org.apache.axiom.om.ds.custombuilder,
|
||||||
|
org.apache.axiom.om.impl,
|
||||||
|
org.apache.axiom.om.impl.builder,
|
||||||
|
org.apache.axiom.om.impl.dom,
|
||||||
|
org.apache.axiom.om.impl.dom.factory,
|
||||||
|
org.apache.axiom.om.impl.dom.jaxp,
|
||||||
|
org.apache.axiom.om.impl.exception,
|
||||||
|
org.apache.axiom.om.impl.jaxp,
|
||||||
|
org.apache.axiom.om.impl.llom,
|
||||||
|
org.apache.axiom.om.impl.llom.factory,
|
||||||
|
org.apache.axiom.om.impl.llom.util,
|
||||||
|
org.apache.axiom.om.impl.serialize,
|
||||||
|
org.apache.axiom.om.impl.traverse,
|
||||||
|
org.apache.axiom.om.impl.util,
|
||||||
|
org.apache.axiom.om.util,
|
||||||
|
org.apache.axiom.om.xpath,
|
||||||
|
org.apache.axiom.soap,
|
||||||
|
org.apache.axiom.soap.impl.builder,
|
||||||
|
org.apache.axiom.soap.impl.dom,
|
||||||
|
org.apache.axiom.soap.impl.dom.factory,
|
||||||
|
org.apache.axiom.soap.impl.dom.soap11,
|
||||||
|
org.apache.axiom.soap.impl.dom.soap12,
|
||||||
|
org.apache.axiom.soap.impl.llom,
|
||||||
|
org.apache.axiom.soap.impl.llom.soap11,
|
||||||
|
org.apache.axiom.soap.impl.llom.soap12,
|
||||||
|
org.apache.axiom.util,
|
||||||
|
org.apache.axiom.util.activation,
|
||||||
|
org.apache.axiom.util.base64,
|
||||||
|
org.apache.axiom.util.blob,
|
||||||
|
org.apache.axiom.util.namespace,
|
||||||
|
org.apache.axiom.util.sax,
|
||||||
|
org.apache.axiom.util.stax,
|
||||||
|
org.apache.axiom.util.stax.debug,
|
||||||
|
org.apache.axiom.util.stax.dialect,
|
||||||
|
org.apache.axiom.util.stax.wrapper,
|
||||||
|
org.apache.axiom.util.stax.xop,
|
||||||
|
org.apache.axis2,
|
||||||
|
org.apache.axis2.addressing,
|
||||||
|
org.apache.axis2.addressing.i18n,
|
||||||
|
org.apache.axis2.addressing.metadata,
|
||||||
|
org.apache.axis2.addressing.wsdl,
|
||||||
|
org.apache.axis2.builder,
|
||||||
|
org.apache.axis2.builder.unknowncontent,
|
||||||
|
org.apache.axis2.classloader,
|
||||||
|
org.apache.axis2.client,
|
||||||
|
org.apache.axis2.client.async,
|
||||||
|
org.apache.axis2.clustering,
|
||||||
|
org.apache.axis2.clustering.control,
|
||||||
|
org.apache.axis2.clustering.control.wka,
|
||||||
|
org.apache.axis2.clustering.management,
|
||||||
|
org.apache.axis2.clustering.management.commands,
|
||||||
|
org.apache.axis2.clustering.state,
|
||||||
|
org.apache.axis2.clustering.state.commands,
|
||||||
|
org.apache.axis2.clustering.tribes,
|
||||||
|
org.apache.axis2.context,
|
||||||
|
org.apache.axis2.context.externalize,
|
||||||
|
org.apache.axis2.corba.deployer,
|
||||||
|
org.apache.axis2.corba.exceptions,
|
||||||
|
org.apache.axis2.corba.idl,
|
||||||
|
org.apache.axis2.corba.idl.parser,
|
||||||
|
org.apache.axis2.corba.idl.types,
|
||||||
|
org.apache.axis2.corba.idl.values,
|
||||||
|
org.apache.axis2.corba.receivers,
|
||||||
|
org.apache.axis2.databinding,
|
||||||
|
org.apache.axis2.databinding.i18n,
|
||||||
|
org.apache.axis2.databinding.typemapping,
|
||||||
|
org.apache.axis2.databinding.types,
|
||||||
|
org.apache.axis2.databinding.types.soapencoding,
|
||||||
|
org.apache.axis2.databinding.types.xsd,
|
||||||
|
org.apache.axis2.databinding.utils,
|
||||||
|
org.apache.axis2.databinding.utils.reader,
|
||||||
|
org.apache.axis2.databinding.utils.writer,
|
||||||
|
org.apache.axis2.dataretrieval,
|
||||||
|
org.apache.axis2.dataretrieval.client,
|
||||||
|
org.apache.axis2.datasource,
|
||||||
|
org.apache.axis2.datasource.jaxb,
|
||||||
|
org.apache.axis2.deployment,
|
||||||
|
org.apache.axis2.deployment.repository.util,
|
||||||
|
org.apache.axis2.deployment.resolver,
|
||||||
|
org.apache.axis2.deployment.scheduler,
|
||||||
|
org.apache.axis2.deployment.util,
|
||||||
|
org.apache.axis2.description,
|
||||||
|
org.apache.axis2.description.java2wsdl,
|
||||||
|
org.apache.axis2.description.java2wsdl.bytecode,
|
||||||
|
org.apache.axis2.dispatchers,
|
||||||
|
org.apache.axis2.engine,
|
||||||
|
org.apache.axis2.extensions.spring.receivers,
|
||||||
|
org.apache.axis2.fastinfoset,
|
||||||
|
org.apache.axis2.handlers,
|
||||||
|
org.apache.axis2.i18n,
|
||||||
|
org.apache.axis2.java.security,
|
||||||
|
org.apache.axis2.jaxbri,
|
||||||
|
org.apache.axis2.jaxrs,
|
||||||
|
org.apache.axis2.jaxws,
|
||||||
|
org.apache.axis2.jaxws.addressing,
|
||||||
|
org.apache.axis2.jaxws.addressing.factory,
|
||||||
|
org.apache.axis2.jaxws.addressing.factory.impl,
|
||||||
|
org.apache.axis2.jaxws.addressing.migrator,
|
||||||
|
org.apache.axis2.jaxws.addressing.util,
|
||||||
|
org.apache.axis2.jaxws.api,
|
||||||
|
org.apache.axis2.jaxws.binding,
|
||||||
|
org.apache.axis2.jaxws.catalog,
|
||||||
|
org.apache.axis2.jaxws.catalog.impl,
|
||||||
|
org.apache.axis2.jaxws.client,
|
||||||
|
org.apache.axis2.jaxws.client.async,
|
||||||
|
org.apache.axis2.jaxws.client.config,
|
||||||
|
org.apache.axis2.jaxws.client.dispatch,
|
||||||
|
org.apache.axis2.jaxws.client.proxy,
|
||||||
|
org.apache.axis2.jaxws.common.config,
|
||||||
|
org.apache.axis2.jaxws.context,
|
||||||
|
org.apache.axis2.jaxws.context.factory,
|
||||||
|
org.apache.axis2.jaxws.context.listener,
|
||||||
|
org.apache.axis2.jaxws.context.utils,
|
||||||
|
org.apache.axis2.jaxws.core,
|
||||||
|
org.apache.axis2.jaxws.core.controller,
|
||||||
|
org.apache.axis2.jaxws.core.controller.impl,
|
||||||
|
org.apache.axis2.jaxws.core.util,
|
||||||
|
org.apache.axis2.jaxws.description,
|
||||||
|
org.apache.axis2.jaxws.description.builder,
|
||||||
|
org.apache.axis2.jaxws.description.builder.converter,
|
||||||
|
org.apache.axis2.jaxws.description.impl,
|
||||||
|
org.apache.axis2.jaxws.description.validator,
|
||||||
|
org.apache.axis2.jaxws.description.xml.handler,
|
||||||
|
org.apache.axis2.jaxws.dispatchers,
|
||||||
|
org.apache.axis2.jaxws.feature,
|
||||||
|
org.apache.axis2.jaxws.framework,
|
||||||
|
org.apache.axis2.jaxws.handler,
|
||||||
|
org.apache.axis2.jaxws.handler.factory,
|
||||||
|
org.apache.axis2.jaxws.handler.factory.impl,
|
||||||
|
org.apache.axis2.jaxws.handler.impl,
|
||||||
|
org.apache.axis2.jaxws.handler.lifecycle.factory,
|
||||||
|
org.apache.axis2.jaxws.handler.lifecycle.impl,
|
||||||
|
org.apache.axis2.jaxws.i18n,
|
||||||
|
org.apache.axis2.jaxws.injection,
|
||||||
|
org.apache.axis2.jaxws.lifecycle,
|
||||||
|
org.apache.axis2.jaxws.marshaller,
|
||||||
|
org.apache.axis2.jaxws.marshaller.factory,
|
||||||
|
org.apache.axis2.jaxws.marshaller.impl.alt,
|
||||||
|
org.apache.axis2.jaxws.message,
|
||||||
|
org.apache.axis2.jaxws.message.attachments,
|
||||||
|
org.apache.axis2.jaxws.message.databinding,
|
||||||
|
org.apache.axis2.jaxws.message.databinding.impl,
|
||||||
|
org.apache.axis2.jaxws.message.factory,
|
||||||
|
org.apache.axis2.jaxws.message.impl,
|
||||||
|
org.apache.axis2.jaxws.message.util,
|
||||||
|
org.apache.axis2.jaxws.message.util.impl,
|
||||||
|
org.apache.axis2.jaxws.registry,
|
||||||
|
org.apache.axis2.jaxws.runtime.description.injection,
|
||||||
|
org.apache.axis2.jaxws.runtime.description.injection.impl,
|
||||||
|
org.apache.axis2.jaxws.runtime.description.marshal,
|
||||||
|
org.apache.axis2.jaxws.runtime.description.marshal.impl,
|
||||||
|
org.apache.axis2.jaxws.server,
|
||||||
|
org.apache.axis2.jaxws.server.config,
|
||||||
|
org.apache.axis2.jaxws.server.dispatcher,
|
||||||
|
org.apache.axis2.jaxws.server.dispatcher.factory,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.injection,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.injection.factory,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.injection.impl,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.lifecycle,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.lifecycle.factory,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.lifecycle.factory.impl,
|
||||||
|
org.apache.axis2.jaxws.server.endpoint.lifecycle.impl,
|
||||||
|
org.apache.axis2.jaxws.spi,
|
||||||
|
org.apache.axis2.jaxws.spi.handler,
|
||||||
|
org.apache.axis2.jaxws.spi.migrator,
|
||||||
|
org.apache.axis2.jaxws.util,
|
||||||
|
org.apache.axis2.jaxws.utility,
|
||||||
|
org.apache.axis2.jaxws.wrapper,
|
||||||
|
org.apache.axis2.jaxws.wrapper.impl,
|
||||||
|
org.apache.axis2.jaxws.wsdl,
|
||||||
|
org.apache.axis2.jaxws.wsdl.impl,
|
||||||
|
org.apache.axis2.jibx,
|
||||||
|
org.apache.axis2.json,
|
||||||
|
org.apache.axis2.jsr181,
|
||||||
|
org.apache.axis2.metadata.factory,
|
||||||
|
org.apache.axis2.metadata.registry,
|
||||||
|
org.apache.axis2.metadata.resource,
|
||||||
|
org.apache.axis2.metadata.resource.impl,
|
||||||
|
org.apache.axis2.mex,
|
||||||
|
org.apache.axis2.mex.om,
|
||||||
|
org.apache.axis2.mex.util,
|
||||||
|
org.apache.axis2.modules,
|
||||||
|
org.apache.axis2.namespace,
|
||||||
|
org.apache.axis2.phaseresolver,
|
||||||
|
org.apache.axis2.policy.builders,
|
||||||
|
org.apache.axis2.policy.model,
|
||||||
|
org.apache.axis2.receivers,
|
||||||
|
org.apache.axis2.rpc.client,
|
||||||
|
org.apache.axis2.rpc.receivers,
|
||||||
|
org.apache.axis2.rpc.receivers.ejb,
|
||||||
|
org.apache.axis2.saaj,
|
||||||
|
org.apache.axis2.saaj.util,
|
||||||
|
org.apache.axis2.schema,
|
||||||
|
org.apache.axis2.schema.i18n,
|
||||||
|
org.apache.axis2.schema.typemap,
|
||||||
|
org.apache.axis2.schema.util,
|
||||||
|
org.apache.axis2.schema.writer,
|
||||||
|
org.apache.axis2.service,
|
||||||
|
org.apache.axis2.soapmonitor.applet,
|
||||||
|
org.apache.axis2.soapmonitor.servlet,
|
||||||
|
org.apache.axis2.tool.ant,
|
||||||
|
org.apache.axis2.transaction,
|
||||||
|
org.apache.axis2.transport,
|
||||||
|
org.apache.axis2.transport.http,
|
||||||
|
org.apache.axis2.transport.http.server,
|
||||||
|
org.apache.axis2.transport.http.util,
|
||||||
|
org.apache.axis2.transport.java,
|
||||||
|
org.apache.axis2.transport.local,
|
||||||
|
org.apache.axis2.util,
|
||||||
|
org.apache.axis2.util.threadpool,
|
||||||
|
org.apache.axis2.wsdl,
|
||||||
|
org.apache.axis2.wsdl.codegen,
|
||||||
|
org.apache.axis2.wsdl.codegen.emitter,
|
||||||
|
org.apache.axis2.wsdl.codegen.emitter.jaxws,
|
||||||
|
org.apache.axis2.wsdl.codegen.extension,
|
||||||
|
org.apache.axis2.wsdl.codegen.schema,
|
||||||
|
org.apache.axis2.wsdl.codegen.schema.exception,
|
||||||
|
org.apache.axis2.wsdl.codegen.writer,
|
||||||
|
org.apache.axis2.wsdl.databinding,
|
||||||
|
org.apache.axis2.wsdl.i18n,
|
||||||
|
org.apache.axis2.wsdl.util,
|
||||||
|
org.apache.axis2.xmlbeans,
|
||||||
|
org.apache.bcel,
|
||||||
|
org.apache.bcel.classfile,
|
||||||
|
org.apache.bcel.generic,
|
||||||
|
org.apache.bcel.util,
|
||||||
|
org.apache.bcel.verifier,
|
||||||
|
org.apache.bcel.verifier.exc,
|
||||||
|
org.apache.bcel.verifier.statics,
|
||||||
|
org.apache.bcel.verifier.structurals,
|
||||||
|
org.apache.catalina.tribes,
|
||||||
|
org.apache.catalina.tribes.group,
|
||||||
|
org.apache.catalina.tribes.group.interceptors,
|
||||||
|
org.apache.catalina.tribes.io,
|
||||||
|
org.apache.catalina.tribes.membership,
|
||||||
|
org.apache.catalina.tribes.tipis,
|
||||||
|
org.apache.catalina.tribes.transport,
|
||||||
|
org.apache.catalina.tribes.transport.bio,
|
||||||
|
org.apache.catalina.tribes.transport.bio.util,
|
||||||
|
org.apache.catalina.tribes.transport.nio,
|
||||||
|
org.apache.catalina.tribes.util,
|
||||||
|
org.apache.commons.beanutils,
|
||||||
|
org.apache.commons.beanutils.converters,
|
||||||
|
org.apache.commons.beanutils.locale,
|
||||||
|
org.apache.commons.beanutils.locale.converters,
|
||||||
|
org.apache.commons.cli,
|
||||||
|
org.apache.commons.codec,
|
||||||
|
org.apache.commons.codec.binary,
|
||||||
|
org.apache.commons.codec.digest,
|
||||||
|
org.apache.commons.codec.language,
|
||||||
|
org.apache.commons.codec.net,
|
||||||
|
org.apache.commons.collections,
|
||||||
|
org.apache.commons.collections.bag,
|
||||||
|
org.apache.commons.collections.bidimap,
|
||||||
|
org.apache.commons.collections.buffer,
|
||||||
|
org.apache.commons.collections.collection,
|
||||||
|
org.apache.commons.collections.comparators,
|
||||||
|
org.apache.commons.collections.functors,
|
||||||
|
org.apache.commons.collections.iterators,
|
||||||
|
org.apache.commons.collections.keyvalue,
|
||||||
|
org.apache.commons.collections.list,
|
||||||
|
org.apache.commons.collections.map,
|
||||||
|
org.apache.commons.collections.set,
|
||||||
|
org.apache.commons.fileupload,
|
||||||
|
org.apache.commons.fileupload.disk,
|
||||||
|
org.apache.commons.fileupload.portlet,
|
||||||
|
org.apache.commons.fileupload.servlet,
|
||||||
|
org.apache.commons.fileupload.util,
|
||||||
|
org.apache.commons.httpclient,
|
||||||
|
org.apache.commons.httpclient.auth,
|
||||||
|
org.apache.commons.httpclient.cookie,
|
||||||
|
org.apache.commons.httpclient.methods,
|
||||||
|
org.apache.commons.httpclient.methods.multipart,
|
||||||
|
org.apache.commons.httpclient.params,
|
||||||
|
org.apache.commons.httpclient.protocol,
|
||||||
|
org.apache.commons.httpclient.util,
|
||||||
|
org.apache.commons.io,
|
||||||
|
org.apache.commons.io.comparator,
|
||||||
|
org.apache.commons.io.filefilter,
|
||||||
|
org.apache.commons.io.input,
|
||||||
|
org.apache.commons.io.output,
|
||||||
|
org.apache.commons.lang,
|
||||||
|
org.apache.commons.lang.builder,
|
||||||
|
org.apache.commons.lang.enums,
|
||||||
|
org.apache.commons.lang.exception,
|
||||||
|
org.apache.commons.lang.math,
|
||||||
|
org.apache.commons.lang.mutable,
|
||||||
|
org.apache.commons.lang.text,
|
||||||
|
org.apache.commons.lang.time,
|
||||||
|
org.apache.commons.logging,
|
||||||
|
org.apache.commons.logging.impl,
|
||||||
|
org.apache.geronimo.osgi.locator,
|
||||||
|
org.apache.http,
|
||||||
|
org.apache.http.entity,
|
||||||
|
org.apache.http.impl,
|
||||||
|
org.apache.http.impl.entity,
|
||||||
|
org.apache.http.impl.io,
|
||||||
|
org.apache.http.io,
|
||||||
|
org.apache.http.message,
|
||||||
|
org.apache.http.params,
|
||||||
|
org.apache.http.protocol,
|
||||||
|
org.apache.http.util,
|
||||||
|
org.apache.james.mime4j,
|
||||||
|
org.apache.james.mime4j.codec,
|
||||||
|
org.apache.james.mime4j.io,
|
||||||
|
org.apache.james.mime4j.parser,
|
||||||
|
org.apache.james.mime4j.stream,
|
||||||
|
org.apache.james.mime4j.util,
|
||||||
|
org.apache.juli,
|
||||||
|
org.apache.juli.logging,
|
||||||
|
org.apache.log4j,
|
||||||
|
org.apache.log4j.chainsaw,
|
||||||
|
org.apache.log4j.config,
|
||||||
|
org.apache.log4j.helpers,
|
||||||
|
org.apache.log4j.jdbc,
|
||||||
|
org.apache.log4j.jmx,
|
||||||
|
org.apache.log4j.lf5,
|
||||||
|
org.apache.log4j.lf5.util,
|
||||||
|
org.apache.log4j.lf5.viewer,
|
||||||
|
org.apache.log4j.lf5.viewer.categoryexplorer,
|
||||||
|
org.apache.log4j.lf5.viewer.configure,
|
||||||
|
org.apache.log4j.net,
|
||||||
|
org.apache.log4j.nt,
|
||||||
|
org.apache.log4j.or,
|
||||||
|
org.apache.log4j.or.jms,
|
||||||
|
org.apache.log4j.or.sax,
|
||||||
|
org.apache.log4j.spi,
|
||||||
|
org.apache.log4j.varia,
|
||||||
|
org.apache.log4j.xml,
|
||||||
|
org.apache.neethi,
|
||||||
|
org.apache.neethi.builders,
|
||||||
|
org.apache.neethi.builders.converters,
|
||||||
|
org.apache.neethi.builders.xml,
|
||||||
|
org.apache.neethi.util,
|
||||||
|
org.apache.regexp,
|
||||||
|
org.apache.woden,
|
||||||
|
org.apache.woden.internal,
|
||||||
|
org.apache.woden.internal.resolver,
|
||||||
|
org.apache.woden.internal.schema,
|
||||||
|
org.apache.woden.internal.util,
|
||||||
|
org.apache.woden.internal.util.dom,
|
||||||
|
org.apache.woden.internal.wsdl20,
|
||||||
|
org.apache.woden.internal.wsdl20.assertions,
|
||||||
|
org.apache.woden.internal.wsdl20.extensions,
|
||||||
|
org.apache.woden.internal.wsdl20.extensions.http,
|
||||||
|
org.apache.woden.internal.wsdl20.extensions.rpc,
|
||||||
|
org.apache.woden.internal.wsdl20.extensions.soap,
|
||||||
|
org.apache.woden.internal.wsdl20.validation,
|
||||||
|
org.apache.woden.internal.xml,
|
||||||
|
org.apache.woden.internal.xpointer,
|
||||||
|
org.apache.woden.resolver,
|
||||||
|
org.apache.woden.schema,
|
||||||
|
org.apache.woden.types,
|
||||||
|
org.apache.woden.wsdl20,
|
||||||
|
org.apache.woden.wsdl20.enumeration,
|
||||||
|
org.apache.woden.wsdl20.extensions,
|
||||||
|
org.apache.woden.wsdl20.extensions.http,
|
||||||
|
org.apache.woden.wsdl20.extensions.rpc,
|
||||||
|
org.apache.woden.wsdl20.extensions.soap,
|
||||||
|
org.apache.woden.wsdl20.fragids,
|
||||||
|
org.apache.woden.wsdl20.validation,
|
||||||
|
org.apache.woden.wsdl20.xml,
|
||||||
|
org.apache.woden.xml,
|
||||||
|
org.apache.woden.xpointer,
|
||||||
|
org.apache.ws.commons.schema,
|
||||||
|
org.apache.ws.commons.schema.constants,
|
||||||
|
org.apache.ws.commons.schema.extensions,
|
||||||
|
org.apache.ws.commons.schema.resolver,
|
||||||
|
org.apache.ws.commons.schema.tools,
|
||||||
|
org.apache.ws.commons.schema.utils,
|
||||||
|
org.apache.ws.java2wsdl,
|
||||||
|
org.apache.ws.java2wsdl.utils,
|
||||||
|
org.apache.xalan,
|
||||||
|
org.apache.xalan.client,
|
||||||
|
org.apache.xalan.extensions,
|
||||||
|
org.apache.xalan.lib,
|
||||||
|
org.apache.xalan.lib.sql,
|
||||||
|
org.apache.xalan.processor,
|
||||||
|
org.apache.xalan.res,
|
||||||
|
org.apache.xalan.serialize,
|
||||||
|
org.apache.xalan.templates,
|
||||||
|
org.apache.xalan.trace,
|
||||||
|
org.apache.xalan.transformer,
|
||||||
|
org.apache.xalan.xslt,
|
||||||
|
org.apache.xalan.xsltc,
|
||||||
|
org.apache.xalan.xsltc.cmdline,
|
||||||
|
org.apache.xalan.xsltc.cmdline.getopt,
|
||||||
|
org.apache.xalan.xsltc.compiler,
|
||||||
|
org.apache.xalan.xsltc.compiler.util,
|
||||||
|
org.apache.xalan.xsltc.dom,
|
||||||
|
org.apache.xalan.xsltc.runtime,
|
||||||
|
org.apache.xalan.xsltc.runtime.output,
|
||||||
|
org.apache.xalan.xsltc.trax,
|
||||||
|
org.apache.xalan.xsltc.util,
|
||||||
|
org.apache.xml.dtm,
|
||||||
|
org.apache.xml.dtm.ref,
|
||||||
|
org.apache.xml.dtm.ref.dom2dtm,
|
||||||
|
org.apache.xml.dtm.ref.sax2dtm,
|
||||||
|
org.apache.xml.res,
|
||||||
|
org.apache.xml.resolver,
|
||||||
|
org.apache.xml.resolver.apps,
|
||||||
|
org.apache.xml.resolver.helpers,
|
||||||
|
org.apache.xml.resolver.readers,
|
||||||
|
org.apache.xml.resolver.tools,
|
||||||
|
org.apache.xml.serializer,
|
||||||
|
org.apache.xml.serializer.utils,
|
||||||
|
org.apache.xml.utils,
|
||||||
|
org.apache.xml.utils.res,
|
||||||
|
org.apache.xmlbeans,
|
||||||
|
org.apache.xmlbeans.impl.common,
|
||||||
|
org.apache.xmlbeans.impl.config,
|
||||||
|
org.apache.xmlbeans.impl.inst2xsd,
|
||||||
|
org.apache.xmlbeans.impl.inst2xsd.util,
|
||||||
|
org.apache.xmlbeans.impl.jam,
|
||||||
|
org.apache.xmlbeans.impl.jam.annotation,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal.classrefs,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal.elements,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal.javadoc,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal.parser,
|
||||||
|
org.apache.xmlbeans.impl.jam.internal.reflect,
|
||||||
|
org.apache.xmlbeans.impl.jam.mutable,
|
||||||
|
org.apache.xmlbeans.impl.jam.provider,
|
||||||
|
org.apache.xmlbeans.impl.jam.visitor,
|
||||||
|
org.apache.xmlbeans.impl.jam.xml,
|
||||||
|
org.apache.xmlbeans.impl.piccolo.io,
|
||||||
|
org.apache.xmlbeans.impl.piccolo.util,
|
||||||
|
org.apache.xmlbeans.impl.piccolo.xml,
|
||||||
|
org.apache.xmlbeans.impl.regex,
|
||||||
|
org.apache.xmlbeans.impl.richParser,
|
||||||
|
org.apache.xmlbeans.impl.schema,
|
||||||
|
org.apache.xmlbeans.impl.soap,
|
||||||
|
org.apache.xmlbeans.impl.store,
|
||||||
|
org.apache.xmlbeans.impl.tool,
|
||||||
|
org.apache.xmlbeans.impl.util,
|
||||||
|
org.apache.xmlbeans.impl.validator,
|
||||||
|
org.apache.xmlbeans.impl.values,
|
||||||
|
org.apache.xmlbeans.impl.xb.ltgfmt,
|
||||||
|
org.apache.xmlbeans.impl.xb.ltgfmt.impl,
|
||||||
|
org.apache.xmlbeans.impl.xb.substwsdl,
|
||||||
|
org.apache.xmlbeans.impl.xb.substwsdl.impl,
|
||||||
|
org.apache.xmlbeans.impl.xb.xmlconfig,
|
||||||
|
org.apache.xmlbeans.impl.xb.xmlconfig.impl,
|
||||||
|
org.apache.xmlbeans.impl.xb.xmlschema,
|
||||||
|
org.apache.xmlbeans.impl.xb.xmlschema.impl,
|
||||||
|
org.apache.xmlbeans.impl.xb.xsdownload,
|
||||||
|
org.apache.xmlbeans.impl.xb.xsdownload.impl,
|
||||||
|
org.apache.xmlbeans.impl.xb.xsdschema,
|
||||||
|
org.apache.xmlbeans.impl.xb.xsdschema.impl,
|
||||||
|
org.apache.xmlbeans.impl.xsd2inst,
|
||||||
|
org.apache.xmlbeans.soap,
|
||||||
|
org.apache.xmlbeans.xml.stream,
|
||||||
|
org.apache.xmlbeans.xml.stream.events,
|
||||||
|
org.apache.xmlbeans.xml.stream.utils,
|
||||||
|
org.apache.xpath,
|
||||||
|
org.apache.xpath.axes,
|
||||||
|
org.apache.xpath.compiler,
|
||||||
|
org.apache.xpath.domapi,
|
||||||
|
org.apache.xpath.functions,
|
||||||
|
org.apache.xpath.jaxp,
|
||||||
|
org.apache.xpath.objects,
|
||||||
|
org.apache.xpath.operations,
|
||||||
|
org.apache.xpath.patterns,
|
||||||
|
org.apache.xpath.res,
|
||||||
|
org.codehaus.jettison,
|
||||||
|
org.codehaus.jettison.badgerfish,
|
||||||
|
org.codehaus.jettison.json,
|
||||||
|
org.codehaus.jettison.mapped,
|
||||||
|
org.codehaus.jettison.util,
|
||||||
|
org.codehaus.stax2,
|
||||||
|
org.codehaus.stax2.evt,
|
||||||
|
org.codehaus.stax2.io,
|
||||||
|
org.codehaus.stax2.ri,
|
||||||
|
org.codehaus.stax2.validation,
|
||||||
|
org.jaxen,
|
||||||
|
org.jaxen.dom,
|
||||||
|
org.jaxen.dom4j,
|
||||||
|
org.jaxen.expr,
|
||||||
|
org.jaxen.expr.iter,
|
||||||
|
org.jaxen.function,
|
||||||
|
org.jaxen.function.ext,
|
||||||
|
org.jaxen.function.xslt,
|
||||||
|
org.jaxen.javabean,
|
||||||
|
org.jaxen.jdom,
|
||||||
|
org.jaxen.pattern,
|
||||||
|
org.jaxen.saxpath,
|
||||||
|
org.jaxen.saxpath.base,
|
||||||
|
org.jaxen.saxpath.helpers,
|
||||||
|
org.jaxen.util,
|
||||||
|
org.jaxen.xom,
|
||||||
|
org.jdom,
|
||||||
|
org.jdom.adapters,
|
||||||
|
org.jdom.filter,
|
||||||
|
org.jdom.input,
|
||||||
|
org.jdom.output,
|
||||||
|
org.jdom.transform,
|
||||||
|
org.jdom.xpath,
|
||||||
|
org.jibx.binding,
|
||||||
|
org.jibx.binding.ant,
|
||||||
|
org.jibx.binding.classes,
|
||||||
|
org.jibx.binding.def,
|
||||||
|
org.jibx.binding.model,
|
||||||
|
org.jibx.binding.util,
|
||||||
|
org.jibx.runtime,
|
||||||
|
org.jibx.runtime.impl,
|
||||||
|
org.jibx.util,
|
||||||
|
org.kohsuke.rngom.ast.builder,
|
||||||
|
org.kohsuke.rngom.ast.om,
|
||||||
|
org.kohsuke.rngom.ast.util,
|
||||||
|
org.kohsuke.rngom.binary,
|
||||||
|
org.kohsuke.rngom.binary.visitor,
|
||||||
|
org.kohsuke.rngom.digested,
|
||||||
|
org.kohsuke.rngom.dt,
|
||||||
|
org.kohsuke.rngom.dt.builtin,
|
||||||
|
org.kohsuke.rngom.nc,
|
||||||
|
org.kohsuke.rngom.parse,
|
||||||
|
org.kohsuke.rngom.parse.compact,
|
||||||
|
org.kohsuke.rngom.parse.host,
|
||||||
|
org.kohsuke.rngom.parse.xml,
|
||||||
|
org.kohsuke.rngom.util,
|
||||||
|
org.kohsuke.rngom.xml.sax,
|
||||||
|
org.kohsuke.rngom.xml.util,
|
||||||
|
org.relaxng.datatype,
|
||||||
|
org.relaxng.datatype.helpers,
|
||||||
|
org.w3c.dom,
|
||||||
|
repackage,
|
||||||
|
schemaorg_apache_xmlbeans.system.sXMLCONFIG,
|
||||||
|
schemaorg_apache_xmlbeans.system.sXMLLANG,
|
||||||
|
schemaorg_apache_xmlbeans.system.sXMLSCHEMA,
|
||||||
|
schemaorg_apache_xmlbeans.system.sXMLTOOLS
|
||||||
|
Bundle-ClassPath: json_lib/commons-beanutils-1.7.0.jar,
|
||||||
|
json_lib/commons-collections-3.2.jar,
|
||||||
|
json_lib/commons-lang-2.4.jar,
|
||||||
|
json_lib/commons-logging-1.1.jar,
|
||||||
|
json_lib/ezmorph-1.0.4.jar,
|
||||||
|
json_lib/jdom.jar,
|
||||||
|
json_lib/json-lib-2.2.2-jdk15.jar,
|
||||||
|
json_lib/json-lib-2.2.3-jdk13.jar,
|
||||||
|
.,
|
||||||
|
axis2_lib/activation-1.1.jar,
|
||||||
|
axis2_lib/antlr-2.7.7.jar,
|
||||||
|
axis2_lib/apache-mime4j-core-0.7.2.jar,
|
||||||
|
axis2_lib/axiom-api-1.2.13.jar,
|
||||||
|
axis2_lib/axiom-dom-1.2.13.jar,
|
||||||
|
axis2_lib/axiom-impl-1.2.13.jar,
|
||||||
|
axis2_lib/axis2-adb-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-adb-codegen-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-ant-plugin-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-clustering-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-codegen-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-corba-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-fastinfoset-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-java2wsdl-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-jaxbri-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-jaxws-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-jibx-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-json-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-kernel-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-metadata-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-mtompolicy-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-saaj-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-soapmonitor-servlet-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-spring-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-transport-http-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-transport-local-1.6.2.jar,
|
||||||
|
axis2_lib/axis2-xmlbeans-1.6.2.jar,
|
||||||
|
axis2_lib/bcel-5.1.jar,
|
||||||
|
axis2_lib/commons-cli-1.2.jar,
|
||||||
|
axis2_lib/commons-codec-1.3.jar,
|
||||||
|
axis2_lib/commons-fileupload-1.2.jar,
|
||||||
|
axis2_lib/commons-httpclient-3.1.jar,
|
||||||
|
axis2_lib/commons-io-1.4.jar,
|
||||||
|
axis2_lib/commons-logging-1.1.1.jar,
|
||||||
|
axis2_lib/geronimo-annotation_1.0_spec-1.1.jar,
|
||||||
|
axis2_lib/geronimo-jaxws_2.2_spec-1.0.jar,
|
||||||
|
axis2_lib/geronimo-jta_1.1_spec-1.1.jar,
|
||||||
|
axis2_lib/geronimo-saaj_1.3_spec-1.0.1.jar,
|
||||||
|
axis2_lib/geronimo-stax-api_1.0_spec-1.0.1.jar,
|
||||||
|
axis2_lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,
|
||||||
|
axis2_lib/httpcore-4.0.jar,
|
||||||
|
axis2_lib/jalopy-1.5rc3.jar,
|
||||||
|
axis2_lib/jaxb-api-2.1.jar,
|
||||||
|
axis2_lib/jaxb-impl-2.1.7.jar,
|
||||||
|
axis2_lib/jaxb-xjc-2.1.7.jar,
|
||||||
|
axis2_lib/jaxen-1.1.1.jar,
|
||||||
|
axis2_lib/jaxws-tools-2.1.3.jar,
|
||||||
|
axis2_lib/jettison-1.0-RC2.jar,
|
||||||
|
axis2_lib/jibx-bind-1.2.jar,
|
||||||
|
axis2_lib/jibx-run-1.2.jar,
|
||||||
|
axis2_lib/jsr311-api-1.0.jar,
|
||||||
|
axis2_lib/juli-6.0.16.jar,
|
||||||
|
axis2_lib/log4j-1.2.15.jar,
|
||||||
|
axis2_lib/mail-1.4.jar,
|
||||||
|
axis2_lib/mex-1.6.2-impl.jar,
|
||||||
|
axis2_lib/neethi-3.0.2.jar,
|
||||||
|
axis2_lib/regexp-1.2.jar,
|
||||||
|
axis2_lib/tribes-6.0.16.jar,
|
||||||
|
axis2_lib/woden-api-1.0M9.jar,
|
||||||
|
axis2_lib/woden-impl-commons-1.0M9.jar,
|
||||||
|
axis2_lib/woden-impl-dom-1.0M9.jar,
|
||||||
|
axis2_lib/wsdl4j-1.6.2.jar,
|
||||||
|
axis2_lib/wstx-asl-3.2.9.jar,
|
||||||
|
axis2_lib/xalan-2.7.0.jar,
|
||||||
|
axis2_lib/xml-resolver-1.2.jar,
|
||||||
|
axis2_lib/xmlbeans-2.3.0.jar,
|
||||||
|
axis2_lib/XmlSchema-1.4.7.jar
|
@ -0,0 +1,2 @@
|
|||||||
|
This is a Subversion working copy administrative directory.
|
||||||
|
Visit http://subversion.tigris.org/ for more information.
|
@ -0,0 +1,5 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/projects/!svn/ver/380/Dicastal8.1/com.teamcenter.rac.tcapps/ant
|
||||||
|
END
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<wc-entries
|
||||||
|
xmlns="svn:">
|
||||||
|
<entry
|
||||||
|
committed-rev="380"
|
||||||
|
name=""
|
||||||
|
committed-date="2010-12-30T07:47:30.781250Z"
|
||||||
|
url="https://liqz:8443/svn/projects/Dicastal8.1/com.teamcenter.rac.tcapps/ant"
|
||||||
|
last-author="lqz"
|
||||||
|
kind="dir"
|
||||||
|
repos="https://liqz:8443/svn/projects"
|
||||||
|
revision="380"/>
|
||||||
|
<entry
|
||||||
|
committed-rev="380"
|
||||||
|
name="build.xml"
|
||||||
|
text-time="2010-12-21T11:48:34.984375Z"
|
||||||
|
committed-date="2010-12-30T07:47:30.781250Z"
|
||||||
|
checksum="68be29777b93854c0f182bb61391c742"
|
||||||
|
last-author="lqz"
|
||||||
|
kind="file"/>
|
||||||
|
</wc-entries>
|
@ -0,0 +1 @@
|
|||||||
|
4
|
@ -0,0 +1,90 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE project [<!ENTITY buildfile SYSTEM "file:./build-user.xml">]>
|
||||||
|
<project name="com.teamcenter.rac.common" default="compile" basedir="E:\plmCust\Dicastal8.1\com.teamcenter.rac.tcapps">
|
||||||
|
<property environment="env" />
|
||||||
|
<!-- ********************** 配置开始 ********************* -->
|
||||||
|
|
||||||
|
<!-- 设定RAC插件根目录-->
|
||||||
|
<property name="rac_plugins_pathnam" value="E:\tc81dicastalPortal\portal\plugins" />
|
||||||
|
|
||||||
|
<!-- 设定发布RAC插件的根目录-->
|
||||||
|
<property name="rac_plugins_des_path" value="E:\plmCust\Dicastal8.1\com.teamcenter.rac.tcapps" />
|
||||||
|
|
||||||
|
<!-- 设定源系统插件名称-->
|
||||||
|
<property name="ini_plugins_name" value="com.teamcenter.rac.tcapps_8000.1.0.jar" />
|
||||||
|
<!-- 设定新版系统插件名称-->
|
||||||
|
<property name="des_plugins_name" value="com.teamcenter.rac.tcapps_8000.1.1.jar" />
|
||||||
|
|
||||||
|
<!-- 设定系统Teacmenter缓存路径-->
|
||||||
|
<property name="tc_cache_dirname" value="C:\Users\Administrator\Teamcenter\RAC" />
|
||||||
|
|
||||||
|
<!-- ********************** 配置结束 ********************* -->
|
||||||
|
<property name="ini_plugins_pathname" value="${basedir}\${ini_plugins_name}" />
|
||||||
|
<property name="des_plugins_pathname" value="${rac_plugins_des_path}\${des_plugins_name}" />
|
||||||
|
<!-- 导入源系统插件到项目-->
|
||||||
|
<target name="ini_plugins" depends="copy_plugins">
|
||||||
|
<unzip src="${ini_plugins_pathname}" dest="${basedir}" overwrite="true">
|
||||||
|
<patternset>
|
||||||
|
<include name="META-INF\MANIFEST.MF" />
|
||||||
|
<include name="plugin.xml" />
|
||||||
|
<include name="plugin.properties" />
|
||||||
|
<include name="plugin_zh_CN.properties" />
|
||||||
|
<include name="build.properties" />
|
||||||
|
<include name="icons/**" />
|
||||||
|
<include name="schema/**" />
|
||||||
|
<include name="setting/**" />
|
||||||
|
</patternset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="copy_plugins">
|
||||||
|
<delete file="${des_plugins_pathname}" quiet="true" />
|
||||||
|
<copyfile src="${ini_plugins_pathname}" dest="${des_plugins_pathname}" forceoverwrite="true" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 删除自定义代码的class-->
|
||||||
|
<target name="clean_bin">
|
||||||
|
<delete includeemptydirs="true">
|
||||||
|
<fileset dir="bin" includes="**/*" />
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
<!-- 删除所有class包括系统源插件的class-->
|
||||||
|
<target name="clean_all_classes" depends="clean_bin">
|
||||||
|
<delete file="${des_plugins_pathname}" quiet="true" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 删除Teamcenter系统缓存 -->
|
||||||
|
<target name="clean_tc_cache">
|
||||||
|
<delete includeemptydirs="true">
|
||||||
|
<fileset dir="${tc_cache_dirname}" includes="**/*" />
|
||||||
|
</delete>
|
||||||
|
<echo message="clean_tc_cache over!" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 编译源代码 -->
|
||||||
|
<target name="compile" depends="clean_bin">
|
||||||
|
<ant antfile="build.xml" inheritAll="false" />
|
||||||
|
<echo message="compile over!" />
|
||||||
|
</target>
|
||||||
|
<!-- 生成新jar包 -->
|
||||||
|
<target name="make_jar" depends="compile,copy_plugins">
|
||||||
|
<jar destfile="${des_plugins_pathname}" whenempty="skip" manifest="META-INF\MANIFEST.MF" update="true">
|
||||||
|
<fileset dir="bin" casesensitive="yes">
|
||||||
|
<include name="**/*.*" />
|
||||||
|
</fileset>
|
||||||
|
<fileset dir="${basedir}">
|
||||||
|
<include name="META-INF\MANIFEST.MF" />
|
||||||
|
<include name="plugin.xml" />
|
||||||
|
<include name="plugin.properties" />
|
||||||
|
<include name="plugin_zh_CN.properties" />
|
||||||
|
<include name="build.properties" />
|
||||||
|
<include name="${ini_plugins_pathname}" />
|
||||||
|
</fileset>
|
||||||
|
</jar>
|
||||||
|
<echo message="make_jar over!" />
|
||||||
|
</target>
|
||||||
|
<!-- 生成新版插件并清除系统缓存 -->
|
||||||
|
<target name="make_plugins" depends="make_jar,clean_tc_cache">
|
||||||
|
<echo message="****************make_plugins ${des_plugins_name} over!**********************" />
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,5 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 78
|
||||||
|
/svn/projects/!svn/ver/380/Dicastal8.1/com.teamcenter.rac.tcapps/ant/build.xml
|
||||||
|
END
|
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE project [<!ENTITY buildfile SYSTEM "file:./build-user.xml">]>
|
||||||
|
<project name="cn.com.origin.autocode" default="compile" basedir="E:\java\eclipse\code\TC9\ldx\workspace\cn.com.origin.autocode">
|
||||||
|
<property environment="env" />
|
||||||
|
<!-- ********************** 配置开始 ********************* -->
|
||||||
|
|
||||||
|
<!-- 设定发布RAC插件的根目录-->
|
||||||
|
<property name="rac_plugins_des_path" value="G:\project\Code\TC9.1\plugins" />
|
||||||
|
|
||||||
|
<!-- 设定新版系统插件名称-->
|
||||||
|
<property name="des_plugins_name" value="cn.com.origin.autocode_1.0.0.jar" />
|
||||||
|
|
||||||
|
<!-- 设定系统Teacmenter缓存路径-->
|
||||||
|
<property name="tc_cache_dirname" value="C:\Users\Administrator\Teamcenter\RAC" />
|
||||||
|
|
||||||
|
<!-- ********************** 配置结束 ********************* -->
|
||||||
|
<property name="des_plugins_pathname" value="${rac_plugins_des_path}\${des_plugins_name}" />
|
||||||
|
<property name="basedir" value="E:\java\eclipse\code\TC9\ldx\workspace\cn.com.origin.autocode" />
|
||||||
|
|
||||||
|
<target name="copy_plugins">
|
||||||
|
<delete file="${des_plugins_pathname}" quiet="true" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 删除自定义代码的class-->
|
||||||
|
<target name="clean_bin">
|
||||||
|
<delete includeemptydirs="true">
|
||||||
|
<fileset dir="classes" includes="**/*" />
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 编译源代码 -->
|
||||||
|
<target name="compile" depends="clean_bin">
|
||||||
|
<ant antfile="build.xml" inheritAll="false" />
|
||||||
|
<echo message="compile over!" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- 生成新jar包 -->
|
||||||
|
<target name="make_jar">
|
||||||
|
<jar destfile="${des_plugins_pathname}" whenempty="skip" manifest="META-INF\MANIFEST.MF" update="true">
|
||||||
|
<fileset dir="classes" casesensitive="yes">
|
||||||
|
<include name="**/*.*" />
|
||||||
|
</fileset>
|
||||||
|
<fileset dir="${basedir}">
|
||||||
|
<include name="META-INF\MANIFEST.MF" />
|
||||||
|
<include name="plugin.xml" />
|
||||||
|
<include name="plugin.properties" />
|
||||||
|
<include name="plugin_zh_CN.properties" />
|
||||||
|
<include name="build.properties" />
|
||||||
|
</fileset>
|
||||||
|
</jar>
|
||||||
|
<echo message="make_jar over!" />
|
||||||
|
</target>
|
||||||
|
<!-- 生成新版插件并清除系统缓存 -->
|
||||||
|
<target name="make_plugins" depends="make_jar">
|
||||||
|
<echo message="****************make_plugins ${des_plugins_name} over!**********************" />
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,80 @@
|
|||||||
|
source.. = src/
|
||||||
|
output.. = classes/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
plugin.xml,\
|
||||||
|
json_lib/commons-beanutils-1.7.0.jar,\
|
||||||
|
json_lib/commons-collections-3.2.jar,\
|
||||||
|
json_lib/commons-lang-2.4.jar,\
|
||||||
|
json_lib/commons-logging-1.1.jar,\
|
||||||
|
json_lib/ezmorph-1.0.4.jar,\
|
||||||
|
json_lib/jdom.jar,\
|
||||||
|
json_lib/json-lib-2.2.2-jdk15.jar,\
|
||||||
|
json_lib/json-lib-2.2.3-jdk13.jar,\
|
||||||
|
axis2_lib/activation-1.1.jar,\
|
||||||
|
axis2_lib/antlr-2.7.7.jar,\
|
||||||
|
axis2_lib/apache-mime4j-core-0.7.2.jar,\
|
||||||
|
axis2_lib/axiom-api-1.2.13.jar,\
|
||||||
|
axis2_lib/axiom-dom-1.2.13.jar,\
|
||||||
|
axis2_lib/axiom-impl-1.2.13.jar,\
|
||||||
|
axis2_lib/axis2-adb-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-adb-codegen-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-ant-plugin-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-clustering-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-codegen-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-corba-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-fastinfoset-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-java2wsdl-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-jaxbri-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-jaxws-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-jibx-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-json-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-kernel-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-metadata-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-mtompolicy-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-saaj-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-soapmonitor-servlet-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-spring-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-transport-http-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-transport-local-1.6.2.jar,\
|
||||||
|
axis2_lib/axis2-xmlbeans-1.6.2.jar,\
|
||||||
|
axis2_lib/bcel-5.1.jar,\
|
||||||
|
axis2_lib/commons-cli-1.2.jar,\
|
||||||
|
axis2_lib/commons-codec-1.3.jar,\
|
||||||
|
axis2_lib/commons-fileupload-1.2.jar,\
|
||||||
|
axis2_lib/commons-httpclient-3.1.jar,\
|
||||||
|
axis2_lib/commons-io-1.4.jar,\
|
||||||
|
axis2_lib/commons-logging-1.1.1.jar,\
|
||||||
|
axis2_lib/geronimo-annotation_1.0_spec-1.1.jar,\
|
||||||
|
axis2_lib/geronimo-jaxws_2.2_spec-1.0.jar,\
|
||||||
|
axis2_lib/geronimo-jta_1.1_spec-1.1.jar,\
|
||||||
|
axis2_lib/geronimo-saaj_1.3_spec-1.0.1.jar,\
|
||||||
|
axis2_lib/geronimo-stax-api_1.0_spec-1.0.1.jar,\
|
||||||
|
axis2_lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,\
|
||||||
|
axis2_lib/httpcore-4.0.jar,\
|
||||||
|
axis2_lib/jalopy-1.5rc3.jar,\
|
||||||
|
axis2_lib/jaxb-api-2.1.jar,\
|
||||||
|
axis2_lib/jaxb-impl-2.1.7.jar,\
|
||||||
|
axis2_lib/jaxb-xjc-2.1.7.jar,\
|
||||||
|
axis2_lib/jaxen-1.1.1.jar,\
|
||||||
|
axis2_lib/jaxws-tools-2.1.3.jar,\
|
||||||
|
axis2_lib/jettison-1.0-RC2.jar,\
|
||||||
|
axis2_lib/jibx-bind-1.2.jar,\
|
||||||
|
axis2_lib/jibx-run-1.2.jar,\
|
||||||
|
axis2_lib/jsr311-api-1.0.jar,\
|
||||||
|
axis2_lib/juli-6.0.16.jar,\
|
||||||
|
axis2_lib/log4j-1.2.15.jar,\
|
||||||
|
axis2_lib/mail-1.4.jar,\
|
||||||
|
axis2_lib/mex-1.6.2-impl.jar,\
|
||||||
|
axis2_lib/neethi-3.0.2.jar,\
|
||||||
|
axis2_lib/regexp-1.2.jar,\
|
||||||
|
axis2_lib/tribes-6.0.16.jar,\
|
||||||
|
axis2_lib/woden-api-1.0M9.jar,\
|
||||||
|
axis2_lib/woden-impl-commons-1.0M9.jar,\
|
||||||
|
axis2_lib/woden-impl-dom-1.0M9.jar,\
|
||||||
|
axis2_lib/wsdl4j-1.6.2.jar,\
|
||||||
|
axis2_lib/wstx-asl-3.2.9.jar,\
|
||||||
|
axis2_lib/xalan-2.7.0.jar,\
|
||||||
|
axis2_lib/xml-resolver-1.2.jar,\
|
||||||
|
axis2_lib/xmlbeans-2.3.0.jar,\
|
||||||
|
axis2_lib/XmlSchema-1.4.7.jar
|
After Width: | Height: | Size: 616 B |
After Width: | Height: | Size: 620 B |
After Width: | Height: | Size: 751 B |
@ -0,0 +1,75 @@
|
|||||||
|
# @<COPYRIGHT>@
|
||||||
|
# ==================================================
|
||||||
|
# Copyright 2010.
|
||||||
|
# Siemens Product Lifecycle Management Software Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
# ==================================================
|
||||||
|
# @<COPYRIGHT>@
|
||||||
|
|
||||||
|
# Entries for NewBOWizard
|
||||||
|
#-----------------------------
|
||||||
|
wizard.TITLE = New Business Object
|
||||||
|
NewItemWizard.TITLE = New Item
|
||||||
|
NewFolderWizard.TITLE = New Folder
|
||||||
|
NewFormWizard.TITLE = New Form
|
||||||
|
NewTableRowWizard.TITLE = New Table Row
|
||||||
|
NewNameValueWizard.TITLE = New Name Value
|
||||||
|
|
||||||
|
General = General
|
||||||
|
Cleartext.TIP = Clear textbox
|
||||||
|
# Entries for create props pages
|
||||||
|
# ------------------------------
|
||||||
|
IdRevBlank.MSG = Leave {0} and {1} fields blank for auto-assign.
|
||||||
|
OneAttributeBlank.MSG = Leave {0} field blank for auto-assign.
|
||||||
|
createPage.TITLE=Object Create Information
|
||||||
|
createPage.DESCRIPTION=Define business object create information
|
||||||
|
|
||||||
|
# Entries for NewBOOperation
|
||||||
|
# ----------------------------
|
||||||
|
newBOOperation.NAME = New Business Object
|
||||||
|
creatingBO.MSG = Creating business object
|
||||||
|
|
||||||
|
# Entries for New Structure Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewStructureContextHandler_NewSCWizardTitle=New Structure Context
|
||||||
|
NewStructureContext_wrongSelection_TITLE=Error
|
||||||
|
NewStructureContext_wrongSelection_MESSAGE=Structure Context cannot be selected for this command.
|
||||||
|
|
||||||
|
# Entries for New Collaboration Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewCollaborationContextHandler_NewCCWizardTitle=New Collaboration Context
|
||||||
|
|
||||||
|
# Entries for the OpenOnCreatePanel
|
||||||
|
# ----------------------------------------
|
||||||
|
OpenOnCreatePanel_checkBoxTitle=Open On Create
|
||||||
|
CopyToClipboard_checkBoxTitle=Copy To Clipboard
|
||||||
|
|
||||||
|
# Entries for the MMSaveAsWizard
|
||||||
|
# ----------------------------------------
|
||||||
|
saveAswizard.TITLE =Save {0} As
|
||||||
|
toomanyObjects.MSG = Can not save more than one objects at same time.
|
||||||
|
saveAs.TITLE = Save As...
|
||||||
|
|
||||||
|
propertyWithoutSrcObject.MSG=Property page creation failed. Please contact your Administrator.
|
||||||
|
saveAsServiceNotAvailble.MEG=Save As Service initialization failed. Please contact your Administrator.
|
||||||
|
modelPopulationError.MESSAGE=Associated object's property page creation failed. Please contact your Administrator.
|
||||||
|
saveAsNotSupported.MESSAGE=Save As on {0} is not supported, because {0} is a runtime object.
|
||||||
|
invalidSelection.MESSAGE=Selected object is invalid for the Save As operation.
|
||||||
|
|
||||||
|
# Entries for the DeepCopyPage
|
||||||
|
# ----------------------------------------
|
||||||
|
objectColumn.TITLE= Object Name
|
||||||
|
dcAction.TITLE= Copy Option
|
||||||
|
relation.TITLE= Relation Name
|
||||||
|
|
||||||
|
# Entries for the Deep Copy Option
|
||||||
|
# ----------------------------------------
|
||||||
|
copyReference.OPTION= Reference Copy
|
||||||
|
copyAsObject.OPTION= Object Copy
|
||||||
|
noCopy.OPTION= No Copy
|
||||||
|
|
||||||
|
# Entries for EditPropertiesSWTHandler
|
||||||
|
# -------------------------------
|
||||||
|
editPropertyTask.MSG=Edit Properties...
|
||||||
|
|
||||||
|
|
@ -0,0 +1,75 @@
|
|||||||
|
# @<COPYRIGHT>@
|
||||||
|
# ==================================================
|
||||||
|
# Copyright 2010.
|
||||||
|
# Siemens Product Lifecycle Management Software Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
# ==================================================
|
||||||
|
# @<COPYRIGHT>@
|
||||||
|
|
||||||
|
# Entries for NewBOWizard
|
||||||
|
#-----------------------------
|
||||||
|
wizard.TITLE = \u65B0\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
NewItemWizard.TITLE = \u65B0\u5EFA\u96F6\u7EC4\u4EF6
|
||||||
|
NewFolderWizard.TITLE = \u65B0\u5EFA\u6587\u4EF6\u5939
|
||||||
|
NewFormWizard.TITLE = \u65B0\u5EFA\u8868\u5355
|
||||||
|
NewTableRowWizard.TITLE = \u65B0\u5EFA\u8868\u884C
|
||||||
|
NewNameValueWizard.TITLE = \u65B0\u5EFA\u540D\u79F0\u503C
|
||||||
|
|
||||||
|
General = \u5E38\u89C4
|
||||||
|
Cleartext.TIP = \u6E05\u9664\u6587\u672C\u6846
|
||||||
|
# Entries for create props pages
|
||||||
|
# ------------------------------
|
||||||
|
IdRevBlank.MSG = \u4FDD\u7559 {0}\u548C{1}\u5B57\u6BB5\u4E3A\u7A7A\u4EE5\u81EA\u52A8\u8D4B\u503C\u3002
|
||||||
|
OneAttributeBlank.MSG = \u4FDD\u7559 {0} \u5B57\u6BB5\u4E3A\u7A7A\u4EE5\u81EA\u52A8\u8D4B\u503C\u3002
|
||||||
|
createPage.TITLE=\u5BF9\u8C61\u521B\u5EFA\u4FE1\u606F
|
||||||
|
createPage.DESCRIPTION=\u5B9A\u4E49\u4E1A\u52A1\u5BF9\u8C61\u521B\u5EFA\u4FE1\u606F
|
||||||
|
|
||||||
|
# Entries for NewBOOperation
|
||||||
|
# ----------------------------
|
||||||
|
newBOOperation.NAME = \u65B0\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
creatingBO.MSG = \u6B63\u5728\u521B\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
|
||||||
|
# Entries for New Structure Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewStructureContextHandler_NewSCWizardTitle=\u65B0\u5EFA\u7ED3\u6784\u5173\u8054
|
||||||
|
NewStructureContext_wrongSelection_TITLE=\u9519\u8BEF
|
||||||
|
NewStructureContext_wrongSelection_MESSAGE=\u65E0\u6CD5\u4E3A\u6B64\u547D\u4EE4\u9009\u62E9\u7ED3\u6784\u5173\u8054\u3002
|
||||||
|
|
||||||
|
# Entries for New Collaboration Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewCollaborationContextHandler_NewCCWizardTitle=\u65B0\u5EFA\u534F\u540C\u5173\u8054
|
||||||
|
|
||||||
|
# Entries for the OpenOnCreatePanel
|
||||||
|
# ----------------------------------------
|
||||||
|
OpenOnCreatePanel_checkBoxTitle=\u521B\u5EFA\u540E\u6253\u5F00
|
||||||
|
CopyToClipboard_checkBoxTitle=\u590D\u5236\u5230\u526A\u8D34\u677F
|
||||||
|
|
||||||
|
# Entries for the MMSaveAsWizard
|
||||||
|
# ----------------------------------------
|
||||||
|
saveAswizard.TITLE =\u5C06{0}\u53E6\u5B58\u4E3A
|
||||||
|
toomanyObjects.MSG = \u4E0D\u80FD\u540C\u65F6\u4FDD\u5B58\u591A\u4E2A\u5BF9\u8C61\u3002
|
||||||
|
saveAs.TITLE = \u53E6\u5B58\u4E3A...
|
||||||
|
|
||||||
|
propertyWithoutSrcObject.MSG=\u672A\u80FD\u521B\u5EFA\u5C5E\u6027\u9875\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
saveAsServiceNotAvailble.MEG=\u672A\u80FD\u8FDB\u884C\u201C\u53E6\u5B58\u4E3A\u670D\u52A1\u201D\u521D\u59CB\u5316\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
modelPopulationError.MESSAGE=\u672A\u80FD\u521B\u5EFA\u5173\u8054\u5BF9\u8C61\u7684\u5C5E\u6027\u9875\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
saveAsNotSupported.MESSAGE={0} \u4E2D\u4E0D\u652F\u6301\u201C\u53E6\u5B58\u4E3A\u201D\u64CD\u4F5C\uFF0C\u56E0\u4E3A {0} \u662F\u8FD0\u884C\u65F6\u5BF9\u8C61\u3002
|
||||||
|
invalidSelection.MESSAGE=\u9009\u5B9A\u5BF9\u8C61\u5BF9\u4E8E\u201C\u53E6\u5B58\u4E3A\u201D\u64CD\u4F5C\u65E0\u6548\u3002
|
||||||
|
|
||||||
|
# Entries for the DeepCopyPage
|
||||||
|
# ----------------------------------------
|
||||||
|
objectColumn.TITLE= \u5BF9\u8C61\u540D\u79F0
|
||||||
|
dcAction.TITLE= \u590D\u5236\u9009\u9879
|
||||||
|
relation.TITLE= \u5173\u7CFB\u540D\u79F0
|
||||||
|
|
||||||
|
# Entries for the Deep Copy Option
|
||||||
|
# ----------------------------------------
|
||||||
|
copyReference.OPTION= \u5F15\u7528\u590D\u5236
|
||||||
|
copyAsObject.OPTION= \u5BF9\u8C61\u590D\u5236
|
||||||
|
noCopy.OPTION= \u4E0D\u590D\u5236
|
||||||
|
|
||||||
|
# Entries for EditPropertiesSWTHandler
|
||||||
|
# -------------------------------
|
||||||
|
editPropertyTask.MSG=\u7F16\u8F91\u5C5E\u6027...
|
||||||
|
|
||||||
|
|
@ -0,0 +1,123 @@
|
|||||||
|
#*==================================================================================================
|
||||||
|
#
|
||||||
|
# Copyright (c) 1998 Unigraphics Solutions Inc., An EDS Company
|
||||||
|
# Unpublished - All rights reserved
|
||||||
|
#
|
||||||
|
#===================================================================================================
|
||||||
|
# File description: This properties file contains all keys pertaining to the
|
||||||
|
# TC New Item package. This is an internal file so therefore
|
||||||
|
# only TC PBU developers should be modifying this file. To
|
||||||
|
# make changes please modify the newitem_user.properties file.
|
||||||
|
# Do NOT modify this file. This allows properties found in
|
||||||
|
# this file to be over-written but not destroyed.
|
||||||
|
#
|
||||||
|
# Filename: newitem.properties
|
||||||
|
# Module : com.teamcenter.rac.commands.newitem
|
||||||
|
#
|
||||||
|
#===================================================================================================
|
||||||
|
# Date Name Description of Change
|
||||||
|
#11-Jan-1999 wangp default property file for New Item
|
||||||
|
#12-Jan-1999 mccollr initial promote
|
||||||
|
#22-Jan-1999 wangp add abort entry
|
||||||
|
#19-Feb-1999 wangp replace com.teamcenter.rac.aif.aif_user by com.teamcenter.rac.aif.aif
|
||||||
|
#22-Feb-1999 wangp replace tabs
|
||||||
|
#14-Mar-1999 pracilio Changed the impoerted registry to include TCs common registry.
|
||||||
|
#04-May-1999 wangp Code Review Update
|
||||||
|
#26-May-1999 sirdeshp To update the Dialog Title key
|
||||||
|
#15-Jun-1999 wangp add loadingUnitOfMeasure message
|
||||||
|
#21-Jul-1999 sirdeshp Implement the soft abort and window closing event changes
|
||||||
|
#26-Jul-1999 wangp add failToCreate entry
|
||||||
|
#12-Aug-1999 wangp icon names are changed to all lowercase
|
||||||
|
#11-Feb-2000 mccollr Remove the localization keys and place within the locale file.
|
||||||
|
#06-May-2003 wangp fix pr 4674050: new design for newitem/revise/saveasitemrev dialog
|
||||||
|
#08-May-2003 wangp change info icon
|
||||||
|
#12-Jun-2003 wangp import newalternateid
|
||||||
|
#06-May-2004 wangp fix pr 4953990: import form.properties
|
||||||
|
#11-May-2004 wangp merge
|
||||||
|
#27-Jan-2005 Zhixin Huang Change the icon from gif to png file.
|
||||||
|
#24-Feb-2005 Zhixin Huang Change the icon from gif to png file and clean up the entries phase 2.
|
||||||
|
#06-Feb-2006 Venkatesh Chitnis de-imanization
|
||||||
|
#$HISTORY$
|
||||||
|
#=================================================================================================*/
|
||||||
|
|
||||||
|
import=com.teamcenter.rac.common.common,com.teamcenter.rac.util.wizard.wizard,com.teamcenter.rac.commands.newalternateid.newalternateid,,com.teamcenter.rac.form.form
|
||||||
|
|
||||||
|
# New Item Dialog
|
||||||
|
# ---------------------
|
||||||
|
info.ICON=images/info_24.png
|
||||||
|
|
||||||
|
#newItemDialog=com.teamcenter.rac.commands.newitem.NewItemDialog
|
||||||
|
#newItemOperation=com.teamcenter.rac.commands.newitem.NewItemOperation
|
||||||
|
#newItemDialogPanel=com.teamcenter.rac.commands.newitem.NewItemPanel
|
||||||
|
|
||||||
|
newItemDialog=cn.com.origin.autocode.newitem.system.ORNewItemDialog
|
||||||
|
newItemOperation=cn.com.origin.autocode.newitem.system.ORNewItemOperation
|
||||||
|
newItemDialogPanel=cn.com.origin.autocode.newitem.system.ORNewItemPanel
|
||||||
|
|
||||||
|
|
||||||
|
# Alternatively, the above registrations could be specified as shown below.
|
||||||
|
# Syntax is:
|
||||||
|
# <Fully qualified class name of the command>.DIALOG=<Fully qualified class name of dialog>
|
||||||
|
# <Fully qualified class name of the dialog>.WIZARD_PANEL=<Fully qualified class name of dialog's main panel>
|
||||||
|
# <Fully qualified class name of the dialog>.OPERATION=<Fully qualified class name of operation>
|
||||||
|
# Example is shown below:
|
||||||
|
# com.teamcenter.rac.mechatronics.commands.CreateNewPSSignalCommand.DIALOG=com.teamcenter.rac.mechatronics.dialogs.CreateNewPSSignalDialog
|
||||||
|
# com.teamcenter.rac.mechatronics.dialogs.CreateNewPSSignalDialog.WIZARD_PANEL=com.teamcenter.rac.mechatronics.dialogs.CreateNewPSSignalDialog
|
||||||
|
# com.teamcenter.rac.mechatronics.dialogs.CreateNewPSSignalDialog.OPERATION=com.teamcenter.rac.mechatronics.dialogs.NewPSSignalPanel
|
||||||
|
|
||||||
|
|
||||||
|
# Page icons for the pages within the new item dialog. Note that they are the
|
||||||
|
# same but can be altered or overridden if the subclassed versions want to
|
||||||
|
# associate different icons
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.ItemTypePanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.ItemInfoPanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.ItemMasterFormPanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.ItemRevMasterFormPanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.AssignProjectPanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.OpenOptionPanel.ICON=images/info_24.png
|
||||||
|
com.teamcenter.rac.commands.newitem.NewItemFinishPanel.ICON=images/info_24.png
|
||||||
|
|
||||||
|
# Moved the below entry from newitem_locale.properties to newitem.properties
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
configurationItem.EXCLUDETYPES=EngChange,Part,Design
|
||||||
|
|
||||||
|
# Types loader class for the Item Type panel. Subclasses can override this
|
||||||
|
# to specify their own types loaded. The fully qualified package name mentioned
|
||||||
|
# here should either extend from NewItemTypesLoader or should implement the
|
||||||
|
# interface IItemTypesLoader
|
||||||
|
# If the subclasses wish to use the existing ItemTypePanel but want to use
|
||||||
|
# a different types loader, they can override the entry below where the key
|
||||||
|
# maps to the fully qualified package name of the ItemTypePanel.
|
||||||
|
# If the subclasses of New Item dialog wish to override the ItemTypePanel -
|
||||||
|
# say CustomItemTypePanel, then the key would be the fully qualified package
|
||||||
|
# name of the CustomItemTypePanel.TYPES_LOADER=
|
||||||
|
# For ex. com.teamcenter.custom.customitem.CustomItemTypePanel.TYPES_LOADER=..
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.ItemTypePanel.TYPES_LOADER=com.teamcenter.rac.commands.newitem.NewItemTypesLoader
|
||||||
|
|
||||||
|
# List of classes whose types are to be loaded by the Item types loader. The
|
||||||
|
# key is the fully qualified package name of the types loader class.CLASSES
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.NewItemTypesLoader.CLASSES=Item,Drawing
|
||||||
|
# List of types to be excluded for the classes listed in the
|
||||||
|
# <Fully qualified package name of Types Loader>.CLASSES
|
||||||
|
# The format for specifying this is
|
||||||
|
# <Fully qualified package name of Types Loader>.<CLASS>.EXCLUDETYPES=
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.NewItemTypesLoader.Item.EXCLUDETYPES=EngChange,Part,Design,PSSignal,PSConnection,Schedule,ScheduleTask,Architecture,AllocationMap,CAEItem,CAEBCItem,CAEConnItem,CAELoadItem,MEOP,MEProcess,MEWorkarea,MEContext,MEGenericBOP,MEProductBOP,Vendor,BidPackage,SwDesignComp,PhysicalPart,ChangeItem,ParmDef,ParmDefBCD,ParmDefBitDef,ParmDefBool,ParmDefDate,ParmDefDbl,ParmDefHex,ParmDefInt,ParmDefSED,ParmDefStr,ParmGrpVal,CalParm,ParmGrpDef
|
||||||
|
|
||||||
|
# List of classes whose types are to be loaded when we are in vi creation mode
|
||||||
|
# Format is <Fully qualified package name of Types Loader>.vi.CLASSES=
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.NewItemTypesLoader.vi.CLASSES=Item,MEProcess,MEOP,MEWorkarea,Drawing
|
||||||
|
# List of types to be excluded for classes listed in newItemPanel.vi.CLASSES
|
||||||
|
# when we are in vi creation mode
|
||||||
|
# The format for specifying this is
|
||||||
|
# <Fully qualified package name of Types Loader>.vi.<CLASS>.EXCLUDETYPES=
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
com.teamcenter.rac.commands.newitem.NewItemTypesLoader.vi.Item.EXCLUDETYPES=EngChange,Part,Design,PSSignal,PSConnection,Schedule,ScheduleTask,Architecture,AllocationMap,CAEItem,CAEBCItem,CAEConnItem,CAELoadItem,MEOP,MEProcess,MEWorkarea,MEContext,MEGenericBOP,MEProductBOP,Vendor,BidPackage,SwDesignComp,PhysicalPart,ChangeItem,ParmDef,ParmDefBCD,ParmDefBitDef,ParmDefBool,ParmDefDate,ParmDefDbl,ParmDefHex,ParmDefInt,ParmDefSED,ParmDefStr,ParmGrpVal,CalParm,ParmGrpDef
|
||||||
|
|
||||||
|
# Icons for the new item dialog
|
||||||
|
# -----------------------------
|
||||||
|
newItemDialog.ICON=images/newitem_16.png
|
After Width: | Height: | Size: 230 B |
After Width: | Height: | Size: 332 B |
After Width: | Height: | Size: 446 B |
After Width: | Height: | Size: 699 B |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 681 B |
After Width: | Height: | Size: 454 B |
After Width: | Height: | Size: 726 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1016 B |
After Width: | Height: | Size: 616 B |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 441 B |
After Width: | Height: | Size: 616 B |
After Width: | Height: | Size: 766 B |
After Width: | Height: | Size: 662 B |
After Width: | Height: | Size: 642 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 713 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 737 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 681 B |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 870 B |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 682 B |
After Width: | Height: | Size: 447 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 724 B |
After Width: | Height: | Size: 851 B |
After Width: | Height: | Size: 676 B |
After Width: | Height: | Size: 729 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 594 B |
@ -0,0 +1,270 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.2"?>
|
||||||
|
<plugin>
|
||||||
|
<!--AutoCodePerspective perspective-->
|
||||||
|
<extension point="com.teamcenter.rac.aifrcp.application">
|
||||||
|
<aif_app_item
|
||||||
|
displayMode="Primary"
|
||||||
|
groupName="Teamcenter"
|
||||||
|
icon="icons/autocode_32.png"
|
||||||
|
id="cn.com.origin.autocode.aif_app_item"
|
||||||
|
name="编码"
|
||||||
|
ordinality="200"
|
||||||
|
perspective_id="cn.com.origin.autocode.AutoCodePerspective"
|
||||||
|
session="com.teamcenter.rac.kernel.TCSession"
|
||||||
|
tooltip="编码">
|
||||||
|
</aif_app_item>
|
||||||
|
</extension>
|
||||||
|
<extension point="org.eclipse.ui.perspectiveExtensions">
|
||||||
|
<perspectiveExtension
|
||||||
|
targetID="cn.com.origin.autocode.AutoCodePerspective">
|
||||||
|
</perspectiveExtension>
|
||||||
|
</extension>
|
||||||
|
<extension point="org.eclipse.ui.perspectives">
|
||||||
|
<perspective
|
||||||
|
class="cn.com.origin.autocode.AutoCodePerspective"
|
||||||
|
icon="icons/pview.gif"
|
||||||
|
id="cn.com.origin.autocode.AutoCodePerspective"
|
||||||
|
name="编码">
|
||||||
|
</perspective>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.core.expressions.definitions">
|
||||||
|
<definition
|
||||||
|
id="cn.com.origin.autocode.inMainView">
|
||||||
|
<with
|
||||||
|
variable="rac_property.ACTIVE_APPLICATION">
|
||||||
|
<equals
|
||||||
|
value="cn.com.origin.autocode.aif_app_item">
|
||||||
|
</equals>
|
||||||
|
</with>
|
||||||
|
</definition>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.activities">
|
||||||
|
<activity
|
||||||
|
description="Turn off Code Manager perspective"
|
||||||
|
id="cn.com.origin.autocode.aif_app_item"
|
||||||
|
name="autocode">
|
||||||
|
</activity>
|
||||||
|
</extension>
|
||||||
|
<!--AutoCodePerspective perspective-->
|
||||||
|
|
||||||
|
<!--AutoCodeItemTypeView views-->
|
||||||
|
<extension point="org.eclipse.ui.views">
|
||||||
|
<view
|
||||||
|
allowMultiple="false"
|
||||||
|
class="cn.com.origin.autocode.views.AutoCodeItemTypeView"
|
||||||
|
icon="icons/item_16.png"
|
||||||
|
id="cn.com.origin.autocode.views.AutoCodeItemTypeView"
|
||||||
|
name="编码分类">
|
||||||
|
</view>
|
||||||
|
</extension>
|
||||||
|
<extension point="org.eclipse.core.expressions.definitions">
|
||||||
|
<definition id="cn.com.origin.autocode.inMainView">
|
||||||
|
<or>
|
||||||
|
<with variable="activePartId ">
|
||||||
|
<equals value="cn.com.origin.autocode.views.AutoCodeItemTypeView"></equals>
|
||||||
|
</with>
|
||||||
|
<with variable="rac_property.ACTIVE_APPLICATION">
|
||||||
|
<equals value="cn.com.origin.autocode"> </equals>
|
||||||
|
</with>
|
||||||
|
</or>
|
||||||
|
</definition>
|
||||||
|
<definition id="oneSelectedCheck">
|
||||||
|
<with variable="activeMenuSelection">
|
||||||
|
<count value="1"> </count>
|
||||||
|
</with>
|
||||||
|
</definition>
|
||||||
|
</extension>
|
||||||
|
<!--AutoCodeItemTypeView views-->
|
||||||
|
|
||||||
|
<!--AutoCodeCodeView views-->
|
||||||
|
<extension point="org.eclipse.ui.views">
|
||||||
|
<view
|
||||||
|
allowMultiple="false"
|
||||||
|
class="cn.com.origin.autocode.views.AutoCodeView"
|
||||||
|
icon="icons/code_16.png"
|
||||||
|
id="cn.com.origin.autocode.views.AutoCodeView"
|
||||||
|
name="编码规则">
|
||||||
|
</view>
|
||||||
|
</extension>
|
||||||
|
<!--AutoCodeCodeView views-->
|
||||||
|
|
||||||
|
<!--AutoCodeGroupView views-->
|
||||||
|
<extension point="org.eclipse.ui.views">
|
||||||
|
<view
|
||||||
|
allowMultiple="false"
|
||||||
|
class="cn.com.origin.autocode.views.AutoCodeGroupView"
|
||||||
|
icon="icons/organization_16.png"
|
||||||
|
id="cn.com.origin.autocode.views.AutoCodeGroupView"
|
||||||
|
name="指派人员">
|
||||||
|
</view>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
|
||||||
|
<extension point="org.eclipse.ui.menus">
|
||||||
|
<menuContribution locationURI="menu:file?before=fileEnd">
|
||||||
|
|
||||||
|
<command commandId="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler"
|
||||||
|
label="通过编码新建物料图纸">
|
||||||
|
<visibleWhen>
|
||||||
|
<and>
|
||||||
|
<reference definitionId="com.teamcenter.rac.ui.inMainPerspective" />
|
||||||
|
<with variable="rac_command_suppression">
|
||||||
|
<not>
|
||||||
|
<iterate operator="or">
|
||||||
|
<equals value="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler"/>
|
||||||
|
</iterate>
|
||||||
|
</not>
|
||||||
|
</with>
|
||||||
|
</and>
|
||||||
|
</visibleWhen>
|
||||||
|
|
||||||
|
|
||||||
|
</command>
|
||||||
|
<command commandId="org.eclipse.ui.file.saveAs"
|
||||||
|
label="通过编码另存">
|
||||||
|
<visibleWhen>
|
||||||
|
<and>
|
||||||
|
<reference definitionId="com.teamcenter.rac.ui.inMainPerspective" />
|
||||||
|
<with variable="rac_command_suppression">
|
||||||
|
<not>
|
||||||
|
<iterate operator="or">
|
||||||
|
<equals value="org.eclipse.ui.file.saveAs"/>
|
||||||
|
</iterate>
|
||||||
|
</not>
|
||||||
|
</with>
|
||||||
|
</and>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
<!--
|
||||||
|
<command commandId="cn.com.origin.autocode.handlers.ORItemSaveAsHandler"
|
||||||
|
label="通过编码另存">
|
||||||
|
<visibleWhen>
|
||||||
|
<and>
|
||||||
|
<reference definitionId="com.teamcenter.rac.ui.inMainPerspective" />
|
||||||
|
<with variable="rac_command_suppression">
|
||||||
|
<not>
|
||||||
|
<iterate operator="or">
|
||||||
|
<equals value="cn.com.origin.autocode.handlers.ORItemSaveAsHandler"/>
|
||||||
|
</iterate>
|
||||||
|
</not>
|
||||||
|
</with>
|
||||||
|
</and>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<command commandId="cn.com.origin.autocode.handlers.NewItemTestHandler"
|
||||||
|
label="测试创建item">
|
||||||
|
<visibleWhen>
|
||||||
|
<and>
|
||||||
|
<reference definitionId="com.teamcenter.rac.ui.inMainPerspective" />
|
||||||
|
<with variable="rac_command_suppression">
|
||||||
|
<not>
|
||||||
|
<iterate operator="or">
|
||||||
|
<equals value="cn.com.origin.autocode.handlers.NewItemTestHandler"/>
|
||||||
|
</iterate>
|
||||||
|
</not>
|
||||||
|
</with>
|
||||||
|
</and>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<command commandId="cn.com.origin.autocode.handlers.HandlerControlTest"
|
||||||
|
label="菜单是否可用测试">
|
||||||
|
<visibleWhen>
|
||||||
|
<and>
|
||||||
|
<reference definitionId="com.teamcenter.rac.ui.inMainPerspective" />
|
||||||
|
<with variable="rac_command_suppression">
|
||||||
|
<not>
|
||||||
|
<iterate operator="or">
|
||||||
|
<equals value="cn.com.origin.autocode.handlers.HandlerControlTest"/>
|
||||||
|
</iterate>
|
||||||
|
</not>
|
||||||
|
</with>
|
||||||
|
</and>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
-->
|
||||||
|
</menuContribution>
|
||||||
|
|
||||||
|
<menuContribution
|
||||||
|
locationURI="menu:file.new?after=file.newStart">
|
||||||
|
|
||||||
|
<command
|
||||||
|
commandId="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler"
|
||||||
|
mnemonic="S"
|
||||||
|
label="新建文档/设计模型"
|
||||||
|
id="com.connor.jifeng.plm.menus.sampleCommand.shujufafang.JF3_SJFFJL_YFB">
|
||||||
|
</command>
|
||||||
|
<!-->
|
||||||
|
<command
|
||||||
|
commandId="cn.com.origin.autocode.handlers.ORItemSaveAsHandler"
|
||||||
|
mnemonic="S"
|
||||||
|
label="通过编码另存"
|
||||||
|
id="com.connor.jifeng.plm.menus.sampleCommand.shujufafang2.JF3_JJRWS_XG">
|
||||||
|
</command>
|
||||||
|
<!-->
|
||||||
|
|
||||||
|
</menuContribution>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
<extension point="org.eclipse.ui.commands">
|
||||||
|
<command id="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler"
|
||||||
|
name="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler">
|
||||||
|
</command>
|
||||||
|
<command id="cn.com.origin.autocode.handlers.ORItemSaveAsHandler"
|
||||||
|
name="cn.com.origin.autocode.handlers.ORItemSaveAsHandler">
|
||||||
|
</command>
|
||||||
|
<command id="cn.com.origin.autocode.handlers.NewItemTestHandler"
|
||||||
|
name="cn.com.origin.autocode.handlers.NewItemTestHandler">
|
||||||
|
</command>
|
||||||
|
<command id="cn.com.origin.autocode.handlers.HandlerControlTest"
|
||||||
|
name="cn.com.origin.autocode.handlers.HandlerControlTest">
|
||||||
|
</command>
|
||||||
|
<!--20170504-->
|
||||||
|
<command id="cn.com.origin.autocode.handlers.AutoCodeNewItemByTypeHandler"
|
||||||
|
name="cn.com.origin.autocode.handlers.AutoCodeNewItemByTypeHandler">
|
||||||
|
</command>
|
||||||
|
<command id="cn.com.origin.autocode.handlers.AutoCodeNewItemFilterTypeHandler"
|
||||||
|
name="cn.com.origin.autocode.handlers.AutoCodeNewItemFilterTypeHandler">
|
||||||
|
</command>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
<extension point="org.eclipse.ui.handlers">
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler"
|
||||||
|
class="cn.com.origin.autocode.handlers.AutoCodeNewItemHandler">
|
||||||
|
</handler>
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.ORItemSaveAsHandler"
|
||||||
|
class="cn.com.origin.autocode.handlers.ORItemSaveAsHandler">
|
||||||
|
</handler>
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.NewItemTestHandler"
|
||||||
|
class="cn.com.origin.autocode.handlers.NewItemTestHandler">
|
||||||
|
</handler>
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.HandlerControlTest"
|
||||||
|
class="cn.com.origin.autocode.handlers.HandlerControlTest">
|
||||||
|
</handler>
|
||||||
|
<!--20170504-->
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.AutoCodeNewItemByTypeHandler"
|
||||||
|
class="cn.com.origin.autocode.handlers.AutoCodeNewItemByTypeHandler">
|
||||||
|
</handler>
|
||||||
|
<handler
|
||||||
|
commandId="cn.com.origin.autocode.handlers.AutoCodeNewItemFilterTypeHandler"
|
||||||
|
class="cn.com.origin.autocode.handlers.AutoCodeNewItemFilterTypeHandler">
|
||||||
|
</handler>
|
||||||
|
|
||||||
|
|
||||||
|
</extension>
|
||||||
|
<!--AutoCodeGroupView views-->
|
||||||
|
|
||||||
|
</plugin>
|
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!-- Schema file written by PDE -->
|
||||||
|
<schema targetNamespace="cn.com.origin.autocode" xmlns="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.schema plugin="cn.com.origin.autocode" id="l" name="oi"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter description of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<element name="extension">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.element />
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<attribute name="point" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="id" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="name" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute translatable="true"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="since"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter the first release in which this extension point appears.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="examples"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter extension point usage example here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="apiinfo"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter API information here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="implementation"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter information about supplied implementation of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
|
||||||
|
</schema>
|
@ -0,0 +1,44 @@
|
|||||||
|
package cn.com.origin.autocode;
|
||||||
|
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class Activator extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
// The plug-in ID
|
||||||
|
public static final String PLUGIN_ID = "cn.com.origin.autocode.views.AutoCodePerspective";
|
||||||
|
|
||||||
|
// The shared instance
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The constructor
|
||||||
|
*/
|
||||||
|
public Activator() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* (non-Javadoc)
|
||||||
|
*
|
||||||
|
* @see
|
||||||
|
* org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
|
||||||
|
* )
|
||||||
|
*/
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
/**
|
||||||
|
* @author tyl
|
||||||
|
* @Action ini
|
||||||
|
* 2011-3-16
|
||||||
|
*/
|
||||||
|
package cn.com.origin.autocode;
|
||||||
|
|
||||||
|
import org.eclipse.ui.IFolderLayout;
|
||||||
|
import org.eclipse.ui.IPageLayout;
|
||||||
|
|
||||||
|
import cn.com.origin.autocode.common.IsShowAutocodePerspective;
|
||||||
|
import cn.com.origin.autocodemanager.common.AutoCodeConstants;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.perspective.AbstractRACPerspective;
|
||||||
|
import com.teamcenter.rac.util.MessageBox;
|
||||||
|
|
||||||
|
public class AutoCodePerspective extends AbstractRACPerspective {
|
||||||
|
public static final String ID = "cn.com.origin.autocode.views.AutoCodePerspective";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void createInitialLayout(IPageLayout layout) {
|
||||||
|
layout.setEditorAreaVisible(false);
|
||||||
|
layout.setFixed(false);
|
||||||
|
String editorArea = layout.getEditorArea();
|
||||||
|
if (new IsShowAutocodePerspective().getValue()) {
|
||||||
|
layout.addStandaloneView(AutoCodeConstants.AutoCodeItemTypeView_ID,
|
||||||
|
true, IPageLayout.LEFT, 0.24f, editorArea);
|
||||||
|
IFolderLayout middleFolder = layout.createFolder("±àÂëÊÓͼ",
|
||||||
|
IPageLayout.LEFT, 0.68f, editorArea);
|
||||||
|
middleFolder.addView(AutoCodeConstants.AutoCodeCodeView_ID);
|
||||||
|
middleFolder.addView(AutoCodeConstants.AutoCodeGroupView_ID);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeItemTypeView_ID)
|
||||||
|
.setCloseable(false);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeItemTypeView_ID)
|
||||||
|
.setMoveable(false);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeCodeView_ID)
|
||||||
|
.setCloseable(false);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeCodeView_ID)
|
||||||
|
.setMoveable(false);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeGroupView_ID)
|
||||||
|
.setCloseable(false);
|
||||||
|
layout.getViewLayout(AutoCodeConstants.AutoCodeGroupView_ID)
|
||||||
|
.setMoveable(false);
|
||||||
|
} else {
|
||||||
|
MessageBox.post("ÄúûÓÐȨÏÞ!", "INFO", MessageBox.WARNING);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package cn.com.origin.autocode.classification;
|
||||||
|
|
||||||
|
public class ClassificationPropertyNames {
|
||||||
|
|
||||||
|
public static String icsGroupType = "Group";
|
||||||
|
public static String icsInstanceType = "StorageClass";
|
||||||
|
public static String icsAbstractType = "Class";
|
||||||
|
|
||||||
|
public static String defaultItemTypeName = "Item";
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,728 @@
|
|||||||
|
/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||||
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
|
// Decompiler options: packimports(3) radix(10) lradix(10)
|
||||||
|
package cn.com.origin.autocode.classification.panels;
|
||||||
|
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
import java.awt.Component;
|
||||||
|
import java.awt.Container;
|
||||||
|
import java.awt.Dimension;
|
||||||
|
import java.awt.Font;
|
||||||
|
import java.awt.Frame;
|
||||||
|
import java.awt.Graphics;
|
||||||
|
import java.awt.Image;
|
||||||
|
import java.awt.Insets;
|
||||||
|
import java.awt.Point;
|
||||||
|
import java.awt.SystemColor;
|
||||||
|
import java.awt.Toolkit;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.awt.event.WindowAdapter;
|
||||||
|
import java.awt.event.WindowEvent;
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
import java.io.StringWriter;
|
||||||
|
|
||||||
|
import javax.swing.Icon;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import javax.swing.JDialog;
|
||||||
|
import javax.swing.JLabel;
|
||||||
|
import javax.swing.JMenuItem;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JPopupMenu;
|
||||||
|
import javax.swing.JToggleButton;
|
||||||
|
import javax.swing.MenuElement;
|
||||||
|
import javax.swing.MenuSelectionManager;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
import javax.swing.event.PopupMenuEvent;
|
||||||
|
import javax.swing.event.PopupMenuListener;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.util.HorizontalLayout;
|
||||||
|
import com.teamcenter.rac.util.InterfaceSignalOnClose;
|
||||||
|
import com.teamcenter.rac.util.Registry;
|
||||||
|
import com.teamcenter.rac.util.SignalOnClose;
|
||||||
|
import com.teamcenter.rac.util.selection.RecursiveSwingListener;
|
||||||
|
|
||||||
|
// Referenced classes of package com.teamcenter.rac.util:
|
||||||
|
// InterfaceSignalOnClose, Registry, SignalOnClose, HorizontalLayout
|
||||||
|
|
||||||
|
public abstract class AbstractPopupPanel extends JToggleButton implements InterfaceSignalOnClose {
|
||||||
|
private class Banner extends JPanel {
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title.getText();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String s) {
|
||||||
|
title.setText(s);
|
||||||
|
validate();
|
||||||
|
repaint();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPinnedUp(boolean flag) {
|
||||||
|
pinup.setSelected(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPinnedUp() {
|
||||||
|
return pinup.isSelected();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCloseable(boolean flag) {
|
||||||
|
remove(close);
|
||||||
|
if (flag)
|
||||||
|
add("right", close);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCloseable() {
|
||||||
|
boolean flag;
|
||||||
|
if (close.getParent() != null)
|
||||||
|
flag = true;
|
||||||
|
else
|
||||||
|
flag = false;
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPinnableButtonVisible(boolean flag) {
|
||||||
|
pinup.setVisible(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void reset() {
|
||||||
|
if (!pinup.isSelected() && popupWindow.getSubElements().length <= 0) {
|
||||||
|
MenuElement amenuelement[] = new MenuElement[1];
|
||||||
|
amenuelement[0] = popupWindow;
|
||||||
|
MenuSelectionManager.defaultManager().setSelectedPath(amenuelement);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private JToggleButton pinup;
|
||||||
|
private JLabel title;
|
||||||
|
private JLabel close;
|
||||||
|
|
||||||
|
public Banner(String s) {
|
||||||
|
super();
|
||||||
|
setLayout(new HorizontalLayout(1, 1, 1, 1, 1));
|
||||||
|
setBackground(SystemColor.controlShadow);
|
||||||
|
pinup = new JToggleButton(r.getImageIcon("notpinned.ICON"));
|
||||||
|
pinup.addActionListener(new ActionListener() {
|
||||||
|
|
||||||
|
public void actionPerformed(ActionEvent actionevent) {
|
||||||
|
if (!pinup.isSelected())
|
||||||
|
if (popupWindow.getSubElements().length > 0) {
|
||||||
|
MenuElement amenuelement[] = new MenuElement[2];
|
||||||
|
amenuelement[0] = popupWindow;
|
||||||
|
amenuelement[1] = popupWindow.getSubElements()[0];
|
||||||
|
MenuSelectionManager.defaultManager().setSelectedPath(amenuelement);
|
||||||
|
} else {
|
||||||
|
MenuElement amenuelement1[] = new MenuElement[1];
|
||||||
|
amenuelement1[0] = popupWindow;
|
||||||
|
MenuSelectionManager.defaultManager().setSelectedPath(amenuelement1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// JavaClassFileOutputException: Invalid index accessing method local variables table of <init>
|
||||||
|
});
|
||||||
|
pinup.setBackground(SystemColor.controlShadow);
|
||||||
|
pinup.setSelectedIcon(r.getImageIcon("pinned.ICON"));
|
||||||
|
pinup.setBorderPainted(false);
|
||||||
|
pinup.setFocusPainted(false);
|
||||||
|
pinup.setMargin(new Insets(0, 0, 0, 0));
|
||||||
|
title = new JLabel(s);
|
||||||
|
Font font = title.getFont();
|
||||||
|
font = new Font(font.getName(), 2, font.getSize() - 2);
|
||||||
|
title.setFont(font);
|
||||||
|
title.setForeground(SystemColor.activeCaptionText);
|
||||||
|
title.addMouseListener(new MouseAdapter() {
|
||||||
|
|
||||||
|
public void mousePressed(MouseEvent mouseevent) {
|
||||||
|
if (mouseevent.getClickCount() == 2 && tearoff) {
|
||||||
|
postDownValue = true;
|
||||||
|
tearoff();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// JavaClassFileOutputException: Invalid index accessing method local variables table of <init>
|
||||||
|
});
|
||||||
|
close = new JLabel(r.getImageIcon("close7.ICON"));
|
||||||
|
close.addMouseListener(new MouseAdapter() {
|
||||||
|
|
||||||
|
public void mousePressed(MouseEvent mouseevent) {
|
||||||
|
if (mouseevent.getClickCount() == 1) {
|
||||||
|
requestFocusInWindow();
|
||||||
|
postDown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// JavaClassFileOutputException: Invalid index accessing method local variables table of <init>
|
||||||
|
});
|
||||||
|
add("left", pinup);
|
||||||
|
add("right", close);
|
||||||
|
add("unbound", title);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class RestoreButtonState extends Thread {
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
try {
|
||||||
|
Thread.sleep(100L);
|
||||||
|
} catch (InterruptedException interruptedexception) {
|
||||||
|
}
|
||||||
|
if (isSelected())
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
setSelected(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public RestoreButtonState() {
|
||||||
|
super("AbstractPopupButton.RestoreButtonState");
|
||||||
|
String s = getClass().getName();
|
||||||
|
s = s.substring(s.lastIndexOf(".") + 1);
|
||||||
|
setName(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel() {
|
||||||
|
lightWeightPopup = JPopupMenu.getDefaultLightWeightPopupEnabled();
|
||||||
|
pinAsPersistent = false;
|
||||||
|
latestPinStatus = false;
|
||||||
|
postDownValue = false;
|
||||||
|
orientation = 2;
|
||||||
|
suggestedHorizontalAlignment = 1;
|
||||||
|
suggestedVerticalAlignment = 2;
|
||||||
|
setSelected(false);
|
||||||
|
tearoff = true;
|
||||||
|
tearoffModality = true;
|
||||||
|
tearoffAlwaysOnTop = false;
|
||||||
|
addActionListener(new ActionListener() {
|
||||||
|
|
||||||
|
public void actionPerformed(ActionEvent actionevent) {
|
||||||
|
if (isSelected()) {
|
||||||
|
if (okToPostUp())
|
||||||
|
postUp();
|
||||||
|
else
|
||||||
|
restoreButtonState();
|
||||||
|
} else {
|
||||||
|
postDown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
r = Registry.getRegistry("com.teamcenter.rac.util.AbstractPopupPanel");
|
||||||
|
propertyMenu = new JPopupMenu();
|
||||||
|
propertyItem = new JMenuItem(r.getString("property"));
|
||||||
|
propertyItem.addActionListener(new ActionListener() {
|
||||||
|
|
||||||
|
public void actionPerformed(ActionEvent actionevent) {
|
||||||
|
if (propertyDialog != null)
|
||||||
|
propertyDialog.setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
MouseAdapter mouseadapter = new MouseAdapter() {
|
||||||
|
|
||||||
|
public void mousePressed(MouseEvent mouseevent) {
|
||||||
|
int i = mouseevent.getModifiers();
|
||||||
|
if (i == 4) {
|
||||||
|
if (propertyDialog != null && propertyMenu.getComponentIndex(propertyItem) < 0)
|
||||||
|
propertyMenu.insert(propertyItem, 0);
|
||||||
|
MenuElement amenuelement[] = propertyMenu.getSubElements();
|
||||||
|
if (amenuelement != null && amenuelement.length > 0)
|
||||||
|
propertyMenu.show((Component) mouseevent.getSource(), mouseevent.getX(), mouseevent.getY());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
addMouseListener(mouseadapter);
|
||||||
|
this.setPreferredSize(new Dimension(50,25));
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(Icon icon) {
|
||||||
|
this();
|
||||||
|
setIcon(icon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(Icon icon, boolean flag) {
|
||||||
|
this();
|
||||||
|
setIcon(icon);
|
||||||
|
setSelected(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(String s) {
|
||||||
|
this();
|
||||||
|
setText(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(String s, boolean flag) {
|
||||||
|
this();
|
||||||
|
setText(s);
|
||||||
|
setSelected(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(String s, Icon icon) {
|
||||||
|
this();
|
||||||
|
setText(s);
|
||||||
|
setIcon(icon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbstractPopupPanel(String s, Icon icon, boolean flag) {
|
||||||
|
this();
|
||||||
|
setText(s);
|
||||||
|
setIcon(icon);
|
||||||
|
setSelected(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void postUp() {
|
||||||
|
if (popupWindow == null)
|
||||||
|
constructPopupWindow();
|
||||||
|
boolean flag = popupWindow.isLightWeightPopupEnabled();
|
||||||
|
if (flag && !JPopupMenu.getDefaultLightWeightPopupEnabled())
|
||||||
|
popupWindow.setLightWeightPopupEnabled(false);
|
||||||
|
setWindowLocation(popupWindow);
|
||||||
|
if (pinAsPersistent || latestPinStatus)
|
||||||
|
setPinnedUp(true);
|
||||||
|
popupWindow.setInvoker(this);
|
||||||
|
popupWindow.setVisible(true);
|
||||||
|
popupWindow.requestFocusInWindow();
|
||||||
|
popupWindow.setLightWeightPopupEnabled(flag);
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
if (titleBanner != null)
|
||||||
|
titleBanner.reset();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void postDown() {
|
||||||
|
latestPinStatus = isPinnedUp();
|
||||||
|
setPinnedUp(false);
|
||||||
|
if (popupWindow != null)
|
||||||
|
popupWindow.setVisible(false);
|
||||||
|
MenuSelectionManager.defaultManager().clearSelectedPath();
|
||||||
|
if (!isPinnedUp() && dlg != null) {
|
||||||
|
dlg.setVisible(false);
|
||||||
|
dlg.dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean okToPostUp() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void asPopupWindowComesUp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getTearoffModality() {
|
||||||
|
return tearoffModality;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTearoffModality(boolean flag) {
|
||||||
|
tearoffModality = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void beforePopupWindowGoesDown() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void closeSignaled() {
|
||||||
|
if (panel != null)
|
||||||
|
SignalOnClose.close(panel);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JPopupMenu getPopupWindow() {
|
||||||
|
return popupWindow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JDialog getDialog() {
|
||||||
|
return dlg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void resetPopupWindow() {
|
||||||
|
popupWindow = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getOrientation() {
|
||||||
|
return orientation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrientation(int i) {
|
||||||
|
if (i == 1 || i == 2)
|
||||||
|
orientation = i;
|
||||||
|
else
|
||||||
|
i = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSuggestedHorizontalAlignment() {
|
||||||
|
return suggestedHorizontalAlignment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuggestedHorizontalAlignment(int i) {
|
||||||
|
if (i == 1 || i == 2)
|
||||||
|
suggestedHorizontalAlignment = i;
|
||||||
|
else
|
||||||
|
i = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSuggestedVerticalAlignment() {
|
||||||
|
return suggestedVerticalAlignment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuggestedVerticalAlignment(int i) {
|
||||||
|
if (i == 1 || i == 2)
|
||||||
|
suggestedVerticalAlignment = i;
|
||||||
|
else
|
||||||
|
i = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JPanel getPanel() {
|
||||||
|
return panel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPopupTitle(String s) {
|
||||||
|
if (panel == null)
|
||||||
|
return;
|
||||||
|
if (titleBanner == null) {
|
||||||
|
titleBanner = new Banner(s);
|
||||||
|
panel.add("North", titleBanner);
|
||||||
|
} else {
|
||||||
|
titleBanner.setTitle(s);
|
||||||
|
panel.validate();
|
||||||
|
popupWindow.validate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPopupTitle(String s, boolean flag, boolean flag1) {
|
||||||
|
setPopupTitle(s);
|
||||||
|
setPinnedUp(flag);
|
||||||
|
setPinPersistent(flag1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPinPersistent(boolean flag) {
|
||||||
|
pinAsPersistent = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTearoff(boolean flag) {
|
||||||
|
tearoff = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void initPopupWindow();
|
||||||
|
|
||||||
|
public JDialog constructTearoffDialog() {
|
||||||
|
Object obj = this;
|
||||||
|
Frame frame = null;
|
||||||
|
do {
|
||||||
|
if (obj == null)
|
||||||
|
break;
|
||||||
|
if (obj instanceof Frame) {
|
||||||
|
frame = (Frame) obj;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
obj = ((Component) (obj)).getParent();
|
||||||
|
} while (true);
|
||||||
|
JDialog jdialog;
|
||||||
|
if (frame != null)
|
||||||
|
jdialog = new JDialog(frame);
|
||||||
|
else
|
||||||
|
jdialog = new JDialog();
|
||||||
|
try {
|
||||||
|
jdialog.setIconImage(getTCIcon());
|
||||||
|
} catch (NoSuchMethodError nosuchmethoderror) {
|
||||||
|
}
|
||||||
|
jdialog.setModal(tearoffModality);
|
||||||
|
jdialog.setTitle(getTitle());
|
||||||
|
|
||||||
|
jdialog.getContentPane().setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
if (dialogPanel != null)
|
||||||
|
jdialog.getContentPane().add("Center", dialogPanel);
|
||||||
|
else
|
||||||
|
jdialog.getContentPane().add("Center", panel);
|
||||||
|
|
||||||
|
|
||||||
|
return jdialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Image getTCIcon() {
|
||||||
|
try {
|
||||||
|
ImageIcon imageicon = Registry.getRegistry("com.teamcenter.rac.aif.aif").getImageIcon("aifDesktop.ICON");
|
||||||
|
return imageicon.getImage();
|
||||||
|
} catch (Exception exception) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
if (titleBanner != null)
|
||||||
|
return titleBanner.getTitle();
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPinnedUp(boolean flag) {
|
||||||
|
if (titleBanner != null)
|
||||||
|
titleBanner.setPinnedUp(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPinnedUp() {
|
||||||
|
boolean flag = false;
|
||||||
|
if (titleBanner != null)
|
||||||
|
flag = titleBanner.isPinnedUp();
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCloseable(boolean flag) {
|
||||||
|
if (titleBanner != null)
|
||||||
|
titleBanner.setCloseable(flag);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCloseable() {
|
||||||
|
boolean flag = false;
|
||||||
|
if (titleBanner != null)
|
||||||
|
flag = titleBanner.isCloseable();
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPinnableButtonVisible(boolean flag) {
|
||||||
|
if (titleBanner != null) {
|
||||||
|
titleBanner.setPinnedUp(false);
|
||||||
|
titleBanner.setPinnableButtonVisible(flag);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLightWeightPopupEnabled(boolean flag) {
|
||||||
|
if (popupWindow != null)
|
||||||
|
popupWindow.setLightWeightPopupEnabled(flag);
|
||||||
|
lightWeightPopup = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPropertyDialog(final JDialog dlg) {
|
||||||
|
propertyDialog = dlg;
|
||||||
|
dlg.addWindowListener(new WindowAdapter() {
|
||||||
|
|
||||||
|
public void windowDeactivated(WindowEvent windowevent) {
|
||||||
|
dlg.toFront();
|
||||||
|
dlg.requestFocusInWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public JPopupMenu getPropertyPopupMenu() {
|
||||||
|
return propertyMenu;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void constructPopupWindow() {
|
||||||
|
popupWindow = new JPopupMenu() {
|
||||||
|
|
||||||
|
public void paint(Graphics g) {
|
||||||
|
Dimension dimension = getSize();
|
||||||
|
dimension.width--;
|
||||||
|
dimension.height--;
|
||||||
|
super.paint(g);
|
||||||
|
g.setColor(SystemColor.controlShadow);
|
||||||
|
g.drawLine(dimension.width, 0, dimension.width, dimension.height);
|
||||||
|
g.drawLine(0, dimension.height, dimension.width, dimension.height);
|
||||||
|
g.setColor(SystemColor.activeCaptionText);
|
||||||
|
g.drawLine(0, 0, dimension.width, 0);
|
||||||
|
g.drawLine(0, 0, 0, dimension.height);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVisible(boolean flag) {
|
||||||
|
if (!flag) {
|
||||||
|
Exception exception = new Exception();
|
||||||
|
StringWriter stringwriter = new StringWriter();
|
||||||
|
PrintWriter printwriter = new PrintWriter(stringwriter);
|
||||||
|
exception.printStackTrace(printwriter);
|
||||||
|
StringBuffer stringbuffer = stringwriter.getBuffer();
|
||||||
|
if (stringbuffer.toString().lastIndexOf("windowDeactivated") > 0 || stringbuffer.toString().lastIndexOf("menuSelectionChanged") > 0)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!isPinnedUp()) {
|
||||||
|
if (!flag) {
|
||||||
|
MenuSelectionManager menuselectionmanager = MenuSelectionManager.defaultManager();
|
||||||
|
MenuElement amenuelement[] = menuselectionmanager.getSelectedPath();
|
||||||
|
if (amenuelement.length != 0 && amenuelement[0] != this)
|
||||||
|
MenuSelectionManager.defaultManager().clearSelectedPath();
|
||||||
|
}
|
||||||
|
super.setVisible(flag);
|
||||||
|
} else {
|
||||||
|
super.setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
RecursiveSwingListener.addListenersFromFosterParent(this, popupWindow);
|
||||||
|
popupWindow.setLightWeightPopupEnabled(lightWeightPopup);
|
||||||
|
popupWindow.setBorderPainted(false);
|
||||||
|
popupWindow.addPopupMenuListener(new PopupMenuListener() {
|
||||||
|
|
||||||
|
public void popupMenuWillBecomeVisible(PopupMenuEvent popupmenuevent) {
|
||||||
|
asPopupWindowComesUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent popupmenuevent) {
|
||||||
|
beforePopupWindowGoesDown();
|
||||||
|
restoreButtonState();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void popupMenuCanceled(PopupMenuEvent popupmenuevent) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
panel = new JPanel(new BorderLayout());
|
||||||
|
initPopupWindow();
|
||||||
|
popupWindow.add(panel);
|
||||||
|
popupWindow.pack();
|
||||||
|
popupWindow.validate();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void tearoff() {
|
||||||
|
setPinnedUp(false);
|
||||||
|
if (!postDownValue)
|
||||||
|
postDown();
|
||||||
|
popupWindow.remove(panel);
|
||||||
|
if (titleBanner != null)
|
||||||
|
panel.remove(titleBanner);
|
||||||
|
dlg = constructTearoffDialog();
|
||||||
|
dlg.setDefaultCloseOperation(0);
|
||||||
|
dlg.addWindowListener(new WindowAdapter() {
|
||||||
|
|
||||||
|
public void windowClosing(WindowEvent windowevent) {
|
||||||
|
closeDialog();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!dlg.getOwner().isVisible())
|
||||||
|
dlg.addWindowListener(new WindowAdapter() {
|
||||||
|
|
||||||
|
public void windowDeactivated(WindowEvent windowevent) {
|
||||||
|
dlg.toFront();
|
||||||
|
dlg.requestFocusInWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
dlg.pack();
|
||||||
|
dlg.validate();
|
||||||
|
setWindowLocation(popupWindow);
|
||||||
|
setWindowLocation(dlg);
|
||||||
|
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
public void run() {
|
||||||
|
dlg.toFront();
|
||||||
|
if (tearoffAlwaysOnTop)
|
||||||
|
dlg.setAlwaysOnTop(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
dlg.setVisible(true);
|
||||||
|
panel.add("North", titleBanner);
|
||||||
|
popupWindow.add(panel);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void forceTearoffToTop() {
|
||||||
|
tearoffAlwaysOnTop = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void revalidatetWindw() {
|
||||||
|
if (dlg != null) {
|
||||||
|
dlg.pack();
|
||||||
|
dlg.validate();
|
||||||
|
}
|
||||||
|
if (popupWindow != null) {
|
||||||
|
popupWindow.pack();
|
||||||
|
popupWindow.validate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void closeDialog() {
|
||||||
|
beforePopupWindowGoesDown();
|
||||||
|
beforeDialogClosed();
|
||||||
|
MenuSelectionManager.defaultManager().clearSelectedPath();
|
||||||
|
dlg.getContentPane().removeAll();
|
||||||
|
dlg.setVisible(false);
|
||||||
|
dlg.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void beforeDialogClosed() {
|
||||||
|
dialogPanel = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void setWindowLocation(Container container) {
|
||||||
|
Point point = getLocationOnScreen();
|
||||||
|
Dimension dimension = getSize();
|
||||||
|
Dimension dimension1 = Toolkit.getDefaultToolkit().getScreenSize();
|
||||||
|
Dimension dimension2 = container.getPreferredSize();
|
||||||
|
Point point1 = new Point(0, 0);
|
||||||
|
for (int i = 0; i < 8; i++) {
|
||||||
|
int j = (i & 4) != 4 ? orientation : 3 - orientation;
|
||||||
|
int k = (i & 2) != 2 ? suggestedVerticalAlignment : 3 - suggestedVerticalAlignment;
|
||||||
|
int l = (i & 1) != 1 ? suggestedHorizontalAlignment : 3 - suggestedHorizontalAlignment;
|
||||||
|
if (j == 1) {
|
||||||
|
if (l == 1)
|
||||||
|
point1.x = point.x - dimension2.width;
|
||||||
|
else
|
||||||
|
point1.x = point.x + dimension.width;
|
||||||
|
if (k == 1)
|
||||||
|
point1.y = point.y;
|
||||||
|
else
|
||||||
|
point1.y = (point.y + dimension.height) - dimension2.height;
|
||||||
|
} else {
|
||||||
|
if (l == 1)
|
||||||
|
point1.x = point.x;
|
||||||
|
else
|
||||||
|
point1.x = (point.x + dimension.width) - dimension2.width;
|
||||||
|
if (k == 1)
|
||||||
|
point1.y = point.y - dimension2.height;
|
||||||
|
else
|
||||||
|
point1.y = point.y + dimension.height;
|
||||||
|
}
|
||||||
|
if (point1.x > 0 && point1.y > 0 && point1.x + dimension2.width < dimension1.width && point1.y + dimension2.height < dimension1.height) {
|
||||||
|
container.setLocation(point1.x, point1.y);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (point1.x < 0) {
|
||||||
|
point1.x = 0;
|
||||||
|
point1.y = point1.y - dimension.height;
|
||||||
|
}
|
||||||
|
if (point1.y < 0)
|
||||||
|
point1.y = 0;
|
||||||
|
container.setLocation(point1.x, point1.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void restoreButtonState() {
|
||||||
|
RestoreButtonState restorebuttonstate = new RestoreButtonState();
|
||||||
|
restorebuttonstate.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
private JPopupMenu popupWindow;
|
||||||
|
private JDialog dlg;
|
||||||
|
private int orientation;
|
||||||
|
private int suggestedHorizontalAlignment;
|
||||||
|
private int suggestedVerticalAlignment;
|
||||||
|
private boolean tearoff;
|
||||||
|
private boolean tearoffModality;
|
||||||
|
private boolean tearoffAlwaysOnTop;
|
||||||
|
private boolean lightWeightPopup;
|
||||||
|
private JPanel panel;
|
||||||
|
protected JPanel dialogPanel;
|
||||||
|
private Banner titleBanner;
|
||||||
|
private boolean pinAsPersistent;
|
||||||
|
private boolean latestPinStatus;
|
||||||
|
protected JDialog propertyDialog;
|
||||||
|
protected JPopupMenu propertyMenu;
|
||||||
|
protected JMenuItem propertyItem;
|
||||||
|
private Registry r;
|
||||||
|
public java.util.List limList;
|
||||||
|
public static final int HORIZONTAL = 1;
|
||||||
|
public static final int VERTICAL = 2;
|
||||||
|
public static final int LEFT = 1;
|
||||||
|
public static final int RIGHT = 2;
|
||||||
|
public static final int TOP = 1;
|
||||||
|
public static final int BOTTOM = 2;
|
||||||
|
private boolean postDownValue;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DECOMPILATION REPORT
|
||||||
|
*
|
||||||
|
* Decompiled from: G:\TC_plugins\TC83_plugins\plugins\com.teamcenter.rac.util_8000.3.0.jar Total time: 125 ms Jad reported messages/errors: Exit status: 0 Caught exceptions:
|
||||||
|
*/
|
@ -0,0 +1,78 @@
|
|||||||
|
package cn.com.origin.autocode.classification.panels;
|
||||||
|
|
||||||
|
|
||||||
|
public class ClassificationTreeData {
|
||||||
|
|
||||||
|
private String id = "";
|
||||||
|
private String name = "";
|
||||||
|
private String type = "";
|
||||||
|
private ClassificationTreeData parentTreeNode;
|
||||||
|
private ClassificationTreeData[] childrenTreeNodes;
|
||||||
|
|
||||||
|
public ClassificationTreeData() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClassificationTreeData(String id, String name, String type, ClassificationTreeData parentTreeNode, ClassificationTreeData[] childrenTreeNodes) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
this.type =type;
|
||||||
|
this.parentTreeNode = parentTreeNode;
|
||||||
|
this.childrenTreeNodes = childrenTreeNodes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClassificationTreeData getParentTreeNode() {
|
||||||
|
return parentTreeNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentTreeNode(ClassificationTreeData parentTreeNode) {
|
||||||
|
this.parentTreeNode = parentTreeNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClassificationTreeData[] getChildrenTreeNodes() {
|
||||||
|
return childrenTreeNodes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChildrenTreeNodes(ClassificationTreeData[] childrenTreeNodes) {
|
||||||
|
this.childrenTreeNodes = childrenTreeNodes;
|
||||||
|
}
|
||||||
|
public void addChildrenTreeNodes(ClassificationTreeData childrenTreeNode) {
|
||||||
|
if (childrenTreeNode == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ClassificationTreeData[] childrenNodes = this.childrenTreeNodes;
|
||||||
|
int childrenLength = 1;
|
||||||
|
if (childrenNodes != null) {
|
||||||
|
childrenLength = childrenLength + childrenNodes.length;
|
||||||
|
}
|
||||||
|
ClassificationTreeData[] childrenNodes2 = new ClassificationTreeData[childrenLength];
|
||||||
|
for (int i = 0; i < childrenLength - 1; i++) {
|
||||||
|
childrenNodes2[i] = childrenNodes[i];
|
||||||
|
}
|
||||||
|
childrenNodes2[childrenLength - 1] = childrenTreeNode;
|
||||||
|
this.setChildrenTreeNodes(childrenNodes2);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,321 @@
|
|||||||
|
package cn.com.origin.autocode.classification.panels;
|
||||||
|
|
||||||
|
import java.awt.Component;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import javax.swing.JDialog;
|
||||||
|
import javax.swing.JScrollPane;
|
||||||
|
import javax.swing.JTree;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
import javax.swing.event.TreeExpansionEvent;
|
||||||
|
import javax.swing.event.TreeExpansionListener;
|
||||||
|
import javax.swing.event.TreeSelectionEvent;
|
||||||
|
import javax.swing.event.TreeSelectionListener;
|
||||||
|
import javax.swing.tree.DefaultMutableTreeNode;
|
||||||
|
import javax.swing.tree.DefaultTreeCellRenderer;
|
||||||
|
import javax.swing.tree.DefaultTreeModel;
|
||||||
|
import javax.swing.tree.TreePath;
|
||||||
|
|
||||||
|
import cn.com.origin.autocode.classification.ClassificationPropertyNames;
|
||||||
|
import cn.com.origin.autocode.newitem.generatcode.PackClassificationInfos;
|
||||||
|
import cn.com.origin.autocode.newitem.system.ORNewItemDialog;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AifrcpPlugin;
|
||||||
|
import com.teamcenter.rac.commands.newitem.NewItemDialog;
|
||||||
|
import com.teamcenter.rac.kernel.TCAccessControlService;
|
||||||
|
import com.teamcenter.rac.kernel.TCClassificationService;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSApplicationObject;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSHierarchyNodeDescriptor;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSView;
|
||||||
|
|
||||||
|
public class CreateClassificationPanel {
|
||||||
|
JScrollPane classificationPropertyPanel;
|
||||||
|
CreateClassificationPropertyPanel createClassificationPropertyPanel;
|
||||||
|
TCClassificationService classificationService;
|
||||||
|
ICSApplicationObject icsapplicationobject;
|
||||||
|
NewItemDialog newItemDialog;
|
||||||
|
JTree tree;
|
||||||
|
|
||||||
|
public TCSession getSession() {
|
||||||
|
TCSession session = (TCSession) AifrcpPlugin.getSessionService().getDefaultSession();
|
||||||
|
TCAccessControlService service = session.getTCAccessControlService();
|
||||||
|
return session;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CreateClassificationPanel(NewItemDialog newItemDialog) {
|
||||||
|
classificationService = getSession().getClassificationService();
|
||||||
|
this.newItemDialog = newItemDialog;
|
||||||
|
try {
|
||||||
|
icsapplicationobject = classificationService.newICSApplicationObject("ICM");
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public JScrollPane createPropertyInfoPanel() {
|
||||||
|
createClassificationPropertyPanel = new CreateClassificationPropertyPanel();
|
||||||
|
classificationPropertyPanel = createClassificationPropertyPanel.getPropertyPanel();
|
||||||
|
return classificationPropertyPanel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JScrollPane CreateRootClassificationInfoPanel(String rootID, String rootName, String type) {
|
||||||
|
JScrollPane scrollPane = new JScrollPane();
|
||||||
|
ClassificationTreeData rootTreeData = new ClassificationTreeData(rootID, rootName, type, null, null);
|
||||||
|
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(rootTreeData);
|
||||||
|
|
||||||
|
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
|
||||||
|
tree = new JTree(treeModel);
|
||||||
|
tree.addTreeSelectionListener(new treeSelectedListener());
|
||||||
|
tree.setCellRenderer(new MyRenderer());
|
||||||
|
tree.addTreeExpansionListener(new TreeExpandedListener());
|
||||||
|
|
||||||
|
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
|
||||||
|
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
|
||||||
|
scrollPane.getViewport().setView(tree);
|
||||||
|
return scrollPane;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addClassificationInfoPanel(DefaultMutableTreeNode parentTreeNode, String rootID, String rootName, String type) {
|
||||||
|
try {
|
||||||
|
setChildrenNode(0, rootID, parentTreeNode, ((ClassificationTreeData) parentTreeNode.getUserObject()));
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JScrollPane CreateClassificationInfoPanel(String rootID, String rootName, String type) {
|
||||||
|
// JPanel panel = new JPanel(new BorderLayout());
|
||||||
|
// JScrollPane scrollPane = new JScrollPane(panel);
|
||||||
|
JScrollPane scrollPane = new JScrollPane();
|
||||||
|
try {
|
||||||
|
ClassificationTreeData rootTreeData = new ClassificationTreeData(rootID, rootName, type, null, null);
|
||||||
|
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(rootTreeData);
|
||||||
|
setChildrenNode(0, rootID, rootNode, rootTreeData);
|
||||||
|
|
||||||
|
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
|
||||||
|
JTree tree = new JTree(treeModel);
|
||||||
|
tree.addTreeSelectionListener(new treeSelectedListener());
|
||||||
|
tree.setCellRenderer(new MyRenderer());
|
||||||
|
tree.addTreeExpansionListener(new TreeExpandedListener());
|
||||||
|
|
||||||
|
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
|
||||||
|
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
|
||||||
|
scrollPane.getViewport().setView(tree);
|
||||||
|
// panel.add(scrollPane, BorderLayout.CENTER);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return scrollPane;
|
||||||
|
}
|
||||||
|
|
||||||
|
private class MyRenderer extends DefaultTreeCellRenderer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
ImageIcon imageIcon;
|
||||||
|
|
||||||
|
public MyRenderer() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
|
||||||
|
super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
|
||||||
|
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) value;
|
||||||
|
ClassificationTreeData treeData = (ClassificationTreeData) treeNode.getUserObject();
|
||||||
|
this.setText(treeData.getName());
|
||||||
|
String type = treeData.getType();
|
||||||
|
URL url = null;
|
||||||
|
if (type.equals(ClassificationPropertyNames.icsGroupType)) {
|
||||||
|
url = this.getClass().getResource("images/inclassgroup_16.png");
|
||||||
|
} else if (type.equals(ClassificationPropertyNames.icsAbstractType)) {
|
||||||
|
url = this.getClass().getResource("images/inclassabstractclass_16.png");
|
||||||
|
} else if (type.equals(ClassificationPropertyNames.icsInstanceType)) {
|
||||||
|
url = this.getClass().getResource("images/inclassstorageclass_16.png");
|
||||||
|
}
|
||||||
|
if (url != null) {
|
||||||
|
imageIcon = new ImageIcon(url);
|
||||||
|
setIcon(imageIcon);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setChildrenNode(int expandNum, String parentIcsID, DefaultMutableTreeNode parentNode, ClassificationTreeData parentClassificationTreeData) {
|
||||||
|
if (expandNum > 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ((parentNode.children() != null) && (parentNode.children().hasMoreElements())) {
|
||||||
|
expandNum++;
|
||||||
|
Enumeration childrensNode = parentNode.children();
|
||||||
|
while (childrensNode.hasMoreElements()) {
|
||||||
|
DefaultMutableTreeNode node = (DefaultMutableTreeNode) childrensNode.nextElement();
|
||||||
|
ClassificationTreeData treeData = (ClassificationTreeData) node.getUserObject();
|
||||||
|
setChildrenNode(expandNum, treeData.getId(), node, treeData);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
parentClassificationTreeData.setChildrenTreeNodes(null);
|
||||||
|
ICSHierarchyNodeDescriptor[] icsnode = classificationService.getChildren(parentIcsID, false, true, 0, 0);
|
||||||
|
if (icsnode != null) {
|
||||||
|
expandNum++;
|
||||||
|
for (int i = 0; i < icsnode.length; i++) {
|
||||||
|
String node_id = icsnode[i].getId();
|
||||||
|
String node_name = icsnode[i].getName();
|
||||||
|
String type = icsnode[i].getType();
|
||||||
|
if (icsnode[i].isStorageClass()) {
|
||||||
|
type = ClassificationPropertyNames.icsInstanceType;
|
||||||
|
}
|
||||||
|
ClassificationTreeData classificationTreeData = new ClassificationTreeData(node_id, node_name, type, parentClassificationTreeData, null);
|
||||||
|
parentClassificationTreeData.addChildrenTreeNodes(classificationTreeData);
|
||||||
|
DefaultMutableTreeNode node = new DefaultMutableTreeNode(classificationTreeData);
|
||||||
|
parentNode.add(node);
|
||||||
|
|
||||||
|
setChildrenNode(expandNum, node_id, node, classificationTreeData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private class TreeExpandedListener implements TreeExpansionListener {
|
||||||
|
public void treeCollapsed(TreeExpansionEvent treeexpansionevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void treeExpanded(TreeExpansionEvent treeexpansionevent) {
|
||||||
|
// JTree tree = (JTree) treeexpansionevent.getSource();
|
||||||
|
// TreePath expandPath = treeexpansionevent.getPath();
|
||||||
|
// if (expandPath == null) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// DefaultMutableTreeNode expanddNode = (DefaultMutableTreeNode)
|
||||||
|
// expandPath.getLastPathComponent();
|
||||||
|
// if (expanddNode == null) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// ClassificationTreeData treeData = (ClassificationTreeData)
|
||||||
|
// expanddNode.getUserObject();
|
||||||
|
// Enumeration childrens = expanddNode.children();
|
||||||
|
// TreeNode[] treeNodes= expanddNode.getPath();
|
||||||
|
// while (childrens.hasMoreElements()) {
|
||||||
|
// System.out.println("childrens.nextElement()==============" +
|
||||||
|
// childrens.nextElement());
|
||||||
|
// DefaultMutableTreeNode childrenNode = (DefaultMutableTreeNode)
|
||||||
|
// childrens.nextElement();
|
||||||
|
// ClassificationTreeData childrenData = (ClassificationTreeData)
|
||||||
|
// childrenNode.getUserObject();
|
||||||
|
// setChildrenNode(0, childrenData.getId(), childrenNode,
|
||||||
|
// childrenData);
|
||||||
|
// }
|
||||||
|
// JTree tree = (JTree) treeexpansionevent.getSource();
|
||||||
|
try {
|
||||||
|
TreePath selectedPath = treeexpansionevent.getPath();
|
||||||
|
if (selectedPath == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) selectedPath.getLastPathComponent();
|
||||||
|
if (selectedNode == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ClassificationTreeData treeData = (ClassificationTreeData) selectedNode.getUserObject();
|
||||||
|
|
||||||
|
if (treeData.getId().equals("ICM")) {
|
||||||
|
addClassificationInfoPanel(selectedNode, treeData.getId(), treeData.getName(), ClassificationPropertyNames.icsGroupType);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
setChildrenNode(0, treeData.getId(), selectedNode, treeData);
|
||||||
|
}
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
public void run() {
|
||||||
|
tree.repaint();
|
||||||
|
tree.updateUI();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// createClassificationPropertyPanel.createPropertyPanel(treeData.getName(), treeData.getId());
|
||||||
|
//
|
||||||
|
// PackClassificationInfos classificationInfos = new PackClassificationInfos();
|
||||||
|
// String icsID = treeData.getId();
|
||||||
|
// if ((icsID != null) && (!icsID.equals(""))) {
|
||||||
|
// TCClassificationService classificationService = newItemDialog.session.getClassificationService();
|
||||||
|
// ICSApplicationObject icsapplicationobject = classificationService.newICSApplicationObject("ICM");
|
||||||
|
// icsapplicationobject.setView("Base", icsID);
|
||||||
|
// ICSView icsview = icsapplicationobject.getView();
|
||||||
|
// if (icsview.isClassAbstract()) {
|
||||||
|
// icsID = "Abstract";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// classificationInfos.setIcsID(icsID);
|
||||||
|
// classificationInfos.setPropertyMaps(createClassificationPropertyPanel.getPropertyInfos());
|
||||||
|
// if (newItemDialog instanceof ORNewItemDialog) {
|
||||||
|
// ORNewItemDialog orNewItemDialog = (ORNewItemDialog) newItemDialog;
|
||||||
|
// orNewItemDialog.setClassificationInfos(classificationInfos);
|
||||||
|
// orNewItemDialog.setNotNullClassificationPropTextField(createClassificationPropertyPanel.getNotNullClassificationPropTextField());
|
||||||
|
// orNewItemDialog.setClassificationService(createClassificationPropertyPanel.getClassificationService());
|
||||||
|
// orNewItemDialog.setIcsView(createClassificationPropertyPanel.getICSView());
|
||||||
|
// orNewItemDialog.setIcsapplicationobject(createClassificationPropertyPanel.getICSApplicationObject());
|
||||||
|
// }
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private class treeSelectedListener implements TreeSelectionListener {
|
||||||
|
public void valueChanged(TreeSelectionEvent tse) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
TreePath selectedPath = tse.getNewLeadSelectionPath();
|
||||||
|
JTree tree = (JTree) tse.getSource();
|
||||||
|
|
||||||
|
if (selectedPath == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) selectedPath.getLastPathComponent();
|
||||||
|
if (selectedNode == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ClassificationTreeData treeData = (ClassificationTreeData) selectedNode.getUserObject();
|
||||||
|
|
||||||
|
if (treeData.getId().equals("ICM")) {
|
||||||
|
addClassificationInfoPanel(selectedNode, treeData.getId(), treeData.getName(), ClassificationPropertyNames.icsGroupType);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// else {
|
||||||
|
// setChildrenNode(0, treeData.getId(), selectedNode, treeData);
|
||||||
|
// }
|
||||||
|
|
||||||
|
createClassificationPropertyPanel.createPropertyPanel(treeData.getName(), treeData.getId(), newItemDialog);
|
||||||
|
|
||||||
|
PackClassificationInfos classificationInfos = new PackClassificationInfos();
|
||||||
|
String icsID = treeData.getId();
|
||||||
|
if ((icsID != null) && (!icsID.equals(""))) {
|
||||||
|
TCClassificationService classificationService = newItemDialog.getSession().getClassificationService();
|
||||||
|
ICSApplicationObject icsapplicationobject = classificationService.newICSApplicationObject("ICM");
|
||||||
|
icsapplicationobject.setView("Base", icsID);
|
||||||
|
ICSView icsview = icsapplicationobject.getView();
|
||||||
|
if (icsview.isAbstract()) {
|
||||||
|
icsID = "Abstract";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
classificationInfos.setIcsID(icsID);
|
||||||
|
classificationInfos.setPropertyMaps(createClassificationPropertyPanel.getPropertyInfos());
|
||||||
|
classificationInfos.setICSPropertyDescription(createClassificationPropertyPanel.getICSPropertyDescriptions());
|
||||||
|
classificationInfos.setIcsPropList(createClassificationPropertyPanel.getIcsPropList());
|
||||||
|
if (newItemDialog instanceof ORNewItemDialog) {
|
||||||
|
ORNewItemDialog orNewItemDialog = (ORNewItemDialog) newItemDialog;
|
||||||
|
orNewItemDialog.setClassificationInfos(classificationInfos);
|
||||||
|
orNewItemDialog.setNotNullClassificationPropTextField(createClassificationPropertyPanel.getNotNullClassificationPropTextField());
|
||||||
|
orNewItemDialog.setClassificationService(createClassificationPropertyPanel.getClassificationService());
|
||||||
|
orNewItemDialog.setIcsView(createClassificationPropertyPanel.getICSView());
|
||||||
|
orNewItemDialog.setIcsapplicationobject(createClassificationPropertyPanel.getICSApplicationObject());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,205 @@
|
|||||||
|
package cn.com.origin.autocode.classification.panels;
|
||||||
|
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
import java.awt.Component;
|
||||||
|
import java.awt.Dimension;
|
||||||
|
import java.awt.Graphics;
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.swing.JComboBox;
|
||||||
|
import javax.swing.JComponent;
|
||||||
|
import javax.swing.JLabel;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JScrollPane;
|
||||||
|
import javax.swing.JTextField;
|
||||||
|
import javax.swing.ScrollPaneConstants;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AifrcpPlugin;
|
||||||
|
import com.teamcenter.rac.commands.newitem.NewItemDialog;
|
||||||
|
import com.teamcenter.rac.kernel.TCClassificationService;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSApplicationObject;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSFormat;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSPropertyDescription;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSView;
|
||||||
|
import com.teamcenter.rac.util.Painter;
|
||||||
|
import com.teamcenter.rac.util.PropertyLayout;
|
||||||
|
import com.teamcenter.rac.util.VerticalLayout;
|
||||||
|
|
||||||
|
public class CreateClassificationPropertyPanel {
|
||||||
|
JPanel mainPanel;
|
||||||
|
JScrollPane scrollPane;
|
||||||
|
ICSApplicationObject icsapplicationobject;
|
||||||
|
ICSView icsView;
|
||||||
|
List<Object> notNullClassificationPropTextField;
|
||||||
|
HashMap<String, JComponent> propHashMap = new HashMap<String, JComponent>();
|
||||||
|
TCClassificationService classificationService;
|
||||||
|
HashMap<String,ICSPropertyDescription> iCSPropertyDescriptions= new HashMap<String, ICSPropertyDescription>();
|
||||||
|
List icsPropList = new ArrayList();
|
||||||
|
|
||||||
|
public TCSession getSession() {
|
||||||
|
TCSession session = (TCSession) AifrcpPlugin.getSessionService().getDefaultSession();
|
||||||
|
return session;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CreateClassificationPropertyPanel() {
|
||||||
|
notNullClassificationPropTextField = new ArrayList<Object>();
|
||||||
|
mainPanel = new JPanel(new BorderLayout());
|
||||||
|
// scrollPane = new JScrollPane(mainPanel);
|
||||||
|
scrollPane = new JScrollPane();
|
||||||
|
// scrollPane.getViewport().add(mainPanel);
|
||||||
|
scrollPane.getViewport().setView(mainPanel);
|
||||||
|
|
||||||
|
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
|
||||||
|
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
|
||||||
|
classificationService = getSession().getClassificationService();
|
||||||
|
try {
|
||||||
|
icsapplicationobject = classificationService.newICSApplicationObject("ICM");
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public JScrollPane getPropertyPanel() {
|
||||||
|
return scrollPane;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ICSApplicationObject getICSApplicationObject() {
|
||||||
|
return icsapplicationobject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ICSView getICSView() {
|
||||||
|
return icsView;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCClassificationService getClassificationService() {
|
||||||
|
return classificationService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Object> getNotNullClassificationPropTextField() {
|
||||||
|
return notNullClassificationPropTextField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNotNullClassificationPropTextField(List<Object> notNullClassificationPropTextField) {
|
||||||
|
this.notNullClassificationPropTextField = notNullClassificationPropTextField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JScrollPane createPropertyPanel(String icsName, String icsID, NewItemDialog newItemDialog) {
|
||||||
|
try {
|
||||||
|
mainPanel.removeAll();
|
||||||
|
icsapplicationobject.setView("Base", icsID);
|
||||||
|
icsView = icsapplicationobject.getView();
|
||||||
|
if (icsView == null) {
|
||||||
|
return scrollPane;
|
||||||
|
}
|
||||||
|
|
||||||
|
ICSPropertyDescription[] aicspropertydescription = icsapplicationobject.getView().getPropertyDescriptions();
|
||||||
|
JLabel jlabel = new JLabel(icsName);
|
||||||
|
JPanel formPanel = new JPanel();
|
||||||
|
if (aicspropertydescription != null && aicspropertydescription.length > 0) {
|
||||||
|
formPanel.setLayout(new VerticalLayout(aicspropertydescription.length));
|
||||||
|
for (int i = 0; i < aicspropertydescription.length; i++) {
|
||||||
|
String dispalayName = aicspropertydescription[i].getDisplayName();
|
||||||
|
boolean isMandatory = aicspropertydescription[i].isMandatory();
|
||||||
|
ICSFormat isformat = aicspropertydescription[i].getFormat();
|
||||||
|
JPanel panel = new JPanel(new GridLayout(1, 2, 2, 2));
|
||||||
|
panel.setPreferredSize(new Dimension(0, 25));
|
||||||
|
JLabel labelDisplayName = new JLabel(dispalayName);
|
||||||
|
JLabel labelUnit = new JLabel(aicspropertydescription[i].getUnit());
|
||||||
|
int lenth = isformat.getSize() > 20 ? 20 : isformat.getSize();
|
||||||
|
JComponent jtextField = null;
|
||||||
|
if (isformat.isList()) {
|
||||||
|
String keyLovs[] = isformat.getKeyLov().getKeyValues();
|
||||||
|
if (isMandatory) {
|
||||||
|
jtextField = new JComboBox(keyLovs) {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public void paint(Graphics g) {
|
||||||
|
super.paint(g);
|
||||||
|
Painter.paintIsRequired(this, g);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
jtextField = new JComboBox(keyLovs);
|
||||||
|
}
|
||||||
|
((JComboBox)jtextField).setSelectedIndex(-1);
|
||||||
|
} else {
|
||||||
|
if (isMandatory) {
|
||||||
|
jtextField = new JTextField(lenth) {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public void paint(Graphics g) {
|
||||||
|
super.paint(g);
|
||||||
|
Painter.paintIsRequired(this, g);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
jtextField = new JTextField(lenth);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
panel.add(labelDisplayName);
|
||||||
|
|
||||||
|
ListValuesButton ListValuesButton = new ListValuesButton(icsView, aicspropertydescription[i], jtextField, labelDisplayName);
|
||||||
|
ListValuesButton.setPreferredSize(new Dimension(28, 25));
|
||||||
|
// panel.add(ListValuesButton);
|
||||||
|
|
||||||
|
JPanel valuePanel = new JPanel(new PropertyLayout());
|
||||||
|
valuePanel.add("1.1.left.center", new JLabel(" "));
|
||||||
|
valuePanel.add("1.2.center.center", ListValuesButton);
|
||||||
|
valuePanel.add("1.3.right.center", new JLabel(" "));
|
||||||
|
panel.add(valuePanel);
|
||||||
|
|
||||||
|
if (isMandatory) {
|
||||||
|
notNullClassificationPropTextField.add(jtextField);
|
||||||
|
}
|
||||||
|
if (jtextField instanceof JTextField) {
|
||||||
|
panel.add((JTextField) jtextField);
|
||||||
|
} else if (jtextField instanceof JComboBox) {
|
||||||
|
panel.add((JComboBox) jtextField);
|
||||||
|
}
|
||||||
|
panel.add(labelUnit);
|
||||||
|
|
||||||
|
if (icsapplicationobject.getView().isAbstract()) {
|
||||||
|
Component[] components = panel.getComponents();
|
||||||
|
for (int m = 0; m < components.length; m++) {
|
||||||
|
components[m].setEnabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
formPanel.add("top.bind.left.top", panel);
|
||||||
|
// int propertyId = aicspropertydescription[i].getId();
|
||||||
|
// propHashMap.put(String.valueOf(propertyId), jtextField);
|
||||||
|
String propName = aicspropertydescription[i].getName();
|
||||||
|
propHashMap.put(propName, jtextField);
|
||||||
|
iCSPropertyDescriptions.put(propName, aicspropertydescription[i]);
|
||||||
|
icsPropList.add(propName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mainPanel.add(jlabel, BorderLayout.NORTH);
|
||||||
|
mainPanel.add(formPanel, BorderLayout.CENTER);
|
||||||
|
mainPanel.repaint();
|
||||||
|
mainPanel.validate();
|
||||||
|
|
||||||
|
scrollPane.repaint();
|
||||||
|
scrollPane.validate();
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return scrollPane;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HashMap<String, JComponent> getPropertyInfos() {
|
||||||
|
return propHashMap;
|
||||||
|
}
|
||||||
|
public HashMap<String, ICSPropertyDescription> getICSPropertyDescriptions() {
|
||||||
|
return iCSPropertyDescriptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List getIcsPropList() {
|
||||||
|
return icsPropList;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,490 @@
|
|||||||
|
package cn.com.origin.autocode.classification.panels;
|
||||||
|
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
import java.awt.Component;
|
||||||
|
import java.awt.Dimension;
|
||||||
|
import java.awt.Insets;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
import javax.swing.Box;
|
||||||
|
import javax.swing.BoxLayout;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JComboBox;
|
||||||
|
import javax.swing.JComponent;
|
||||||
|
import javax.swing.JLabel;
|
||||||
|
import javax.swing.JList;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JScrollPane;
|
||||||
|
import javax.swing.JTextField;
|
||||||
|
import javax.swing.ListCellRenderer;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
|
||||||
|
import org.apache.log4j.Level;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aif.AbstractAIFOperation;
|
||||||
|
import com.teamcenter.rac.aif.InterfaceAIFOperationExecutionListener;
|
||||||
|
import com.teamcenter.rac.aifrcp.AifrcpPlugin;
|
||||||
|
import com.teamcenter.rac.classification.common.TCClassificationViewer;
|
||||||
|
import com.teamcenter.rac.classification.common.form.G4MUnitLabel;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSAutoFilterValue;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSFormat;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSPropertyDescription;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSUnitDefinition;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSUnitDefinitions;
|
||||||
|
import com.teamcenter.rac.kernel.ics.ICSView;
|
||||||
|
import com.teamcenter.rac.util.Registry;
|
||||||
|
import com.teamcenter.rac.util.log.Debug;
|
||||||
|
|
||||||
|
public class ListValuesButton extends AbstractPopupPanel implements
|
||||||
|
InterfaceAIFOperationExecutionListener {
|
||||||
|
|
||||||
|
ICSView icsView;
|
||||||
|
ICSPropertyDescription aicspropertydescription;
|
||||||
|
JComponent jComponent;
|
||||||
|
JComponent jComponentLabel;
|
||||||
|
|
||||||
|
private class ValueListBox extends JPanel implements ActionListener {
|
||||||
|
public void actionPerformed(ActionEvent actionevent) {
|
||||||
|
if (actionevent.getSource() == m_okbutton) {
|
||||||
|
setSelectedValue();
|
||||||
|
closeDialog();
|
||||||
|
} else if (actionevent.getSource() == m_cancelbutton) {
|
||||||
|
postDown();
|
||||||
|
closeDialog();
|
||||||
|
} else if (actionevent.getSource() == m_clearbutton) {
|
||||||
|
{
|
||||||
|
if (jComponent instanceof JTextField) {
|
||||||
|
JTextField textField = (JTextField) jComponent;
|
||||||
|
textField.setText("");
|
||||||
|
} else if (jComponent instanceof JComboBox) {
|
||||||
|
JComboBox combox = (JComboBox) jComponent;
|
||||||
|
combox.setSelectedItem("");
|
||||||
|
}
|
||||||
|
postDown();
|
||||||
|
closeDialog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setSelectedValue() {
|
||||||
|
if ((m_list.getSelectedValue() instanceof String)
|
||||||
|
|| (jComponent instanceof JComboBox)) {
|
||||||
|
clearUnitFromAttrField();
|
||||||
|
postDown();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ICSAutoFilterValue icsautofiltervalue = (ICSAutoFilterValue) m_list
|
||||||
|
.getSelectedValue();
|
||||||
|
if (icsautofiltervalue != null) {
|
||||||
|
if (jComponent instanceof JTextField) {
|
||||||
|
JTextField textField = (JTextField) jComponent;
|
||||||
|
textField.setText(icsautofiltervalue.getValue());
|
||||||
|
} else if (jComponent instanceof JComboBox) {
|
||||||
|
JComboBox combox = (JComboBox) jComponent;
|
||||||
|
combox.setSelectedItem(icsautofiltervalue);
|
||||||
|
}
|
||||||
|
cleanMap(icsautofiltervalue.getValue());
|
||||||
|
clearUnitFromAttrField();
|
||||||
|
postDown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void cleanMap(String s) {
|
||||||
|
Object aobj[] = ListValuesButton.m_optStorageValuesMap.keySet()
|
||||||
|
.toArray();
|
||||||
|
for (int i = 0; i < aobj.length; i++)
|
||||||
|
if (aobj[i].toString().startsWith(
|
||||||
|
(new StringBuilder())
|
||||||
|
.append(aicspropertydescription.getId())
|
||||||
|
.append("_").toString())
|
||||||
|
&& !aobj[i]
|
||||||
|
.toString()
|
||||||
|
.equals((new StringBuilder())
|
||||||
|
.append(aicspropertydescription.getId())
|
||||||
|
.append("_").append(s).toString()))
|
||||||
|
ListValuesButton.m_optStorageValuesMap.remove(aobj[i]
|
||||||
|
.toString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void clearUnitFromAttrField() {
|
||||||
|
if (aicspropertydescription.isAttributeNumericAndHasUnit()) {
|
||||||
|
JTextField jtextfield = (JTextField) jComponent;
|
||||||
|
char ac[] = jtextfield.getText().trim().toCharArray();
|
||||||
|
String s = jtextfield.getText().trim();
|
||||||
|
G4MUnitLabel g4munitlabel = (G4MUnitLabel) jComponentLabel;
|
||||||
|
int i = 0;
|
||||||
|
do {
|
||||||
|
if (i >= ac.length)
|
||||||
|
break;
|
||||||
|
if (Character.isLetter(ac[i])) {
|
||||||
|
ICSUnitDefinitions icsunitdefinitions = getSession()
|
||||||
|
.getClassificationService()
|
||||||
|
.getUnitDefinitions();
|
||||||
|
g4munitlabel.setUnit(
|
||||||
|
icsunitdefinitions,
|
||||||
|
icsunitdefinitions.getUnitByIdOrLabel(
|
||||||
|
s.substring(i).trim()).getId());
|
||||||
|
String s1 = s.substring(0, i).trim();
|
||||||
|
jtextfield.setText(s1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
} while (true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public JList getList() {
|
||||||
|
return m_list;
|
||||||
|
}
|
||||||
|
|
||||||
|
private JList m_list;
|
||||||
|
JButton m_okbutton;
|
||||||
|
JButton m_cancelbutton;
|
||||||
|
JButton m_clearbutton;
|
||||||
|
|
||||||
|
ValueListBox() {
|
||||||
|
super(new BorderLayout());
|
||||||
|
m_list = new JList();
|
||||||
|
m_list.setSelectionMode(0);
|
||||||
|
MouseAdapter mouseadapter = new MouseAdapter() {
|
||||||
|
public void mouseClicked(MouseEvent mouseevent) {
|
||||||
|
if (mouseevent.getClickCount() == 2)
|
||||||
|
setSelectedValue();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
m_list.addMouseListener(mouseadapter);
|
||||||
|
JScrollPane jscrollpane = new JScrollPane(m_list);
|
||||||
|
add("Center", jscrollpane);
|
||||||
|
|
||||||
|
JPanel jpanel = new JPanel();
|
||||||
|
new BoxLayout(jpanel, 0);
|
||||||
|
m_okbutton = new JButton("ok");
|
||||||
|
m_okbutton.addActionListener(this);
|
||||||
|
m_cancelbutton = new JButton("cancel");
|
||||||
|
m_cancelbutton.addActionListener(this);
|
||||||
|
m_clearbutton = new JButton("clear");
|
||||||
|
m_clearbutton.addActionListener(this);
|
||||||
|
jpanel.add(Box.createHorizontalGlue());
|
||||||
|
jpanel.add(m_clearbutton);
|
||||||
|
jpanel.add(Box.createHorizontalGlue());
|
||||||
|
jpanel.add(m_cancelbutton);
|
||||||
|
jpanel.add(m_okbutton);
|
||||||
|
add("South", jpanel);
|
||||||
|
this.setPreferredSize(new Dimension(250, 120));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private class LoadValuesOperation extends AbstractAIFOperation {
|
||||||
|
|
||||||
|
public void executeOperation() throws Exception {
|
||||||
|
loadValues();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private class ListValueRenderer extends JLabel implements ListCellRenderer {
|
||||||
|
|
||||||
|
public Component getListCellRendererComponent(JList jlist, Object obj,
|
||||||
|
int i, boolean flag, boolean flag1) {
|
||||||
|
try {
|
||||||
|
if (!obj.toString().equalsIgnoreCase("Loading Values...")) {
|
||||||
|
ICSAutoFilterValue icsautofiltervalue = (ICSAutoFilterValue) obj;
|
||||||
|
if (icsautofiltervalue.getFormat() != null
|
||||||
|
&& icsautofiltervalue.getFormat().isList()) {
|
||||||
|
if (icsautofiltervalue.isDeprecated()) {
|
||||||
|
setIcon(m_deprecateIcon);
|
||||||
|
setText(icsautofiltervalue.getDisplayValue());
|
||||||
|
setEnabled(false);
|
||||||
|
} else {
|
||||||
|
setIcon(null);
|
||||||
|
setText(icsautofiltervalue.getDisplayValue());
|
||||||
|
}
|
||||||
|
} else if (icsautofiltervalue.isNative()) {
|
||||||
|
if (icsautofiltervalue.getValue() != ""
|
||||||
|
&& icsautofiltervalue.getValue() != null) {
|
||||||
|
if (icsautofiltervalue.isMetric())
|
||||||
|
setIcon(m_metricIcon);
|
||||||
|
else if (!icsautofiltervalue.isMetric())
|
||||||
|
setIcon(m_nonMetricIcon);
|
||||||
|
setText(icsautofiltervalue.getValue());
|
||||||
|
}
|
||||||
|
} else if (!icsautofiltervalue.isNative()
|
||||||
|
&& icsautofiltervalue.getValue() != ""
|
||||||
|
&& icsautofiltervalue.getValue() != null
|
||||||
|
&& icsautofiltervalue.getNativeValue() != ""
|
||||||
|
&& icsautofiltervalue.getNativeValue() != null) {
|
||||||
|
if (icsautofiltervalue.isMetric())
|
||||||
|
setIcon(m_metricIcon);
|
||||||
|
else if (!icsautofiltervalue.isMetric())
|
||||||
|
setIcon(m_nonMetricIcon);
|
||||||
|
ICSUnitDefinition icsunitdefinition = getSession()
|
||||||
|
.getClassificationService()
|
||||||
|
.getUnitDefinitions()
|
||||||
|
.getUnitDefinition(
|
||||||
|
aicspropertydescription.getAltUnit());
|
||||||
|
String s = (new StringBuilder())
|
||||||
|
.append(icsautofiltervalue.getValue())
|
||||||
|
.append(" ").append("(")
|
||||||
|
.append(icsautofiltervalue.getNativeValue())
|
||||||
|
.toString();
|
||||||
|
if (icsunitdefinition != null)
|
||||||
|
s = s.concat((new StringBuilder()).append(" ")
|
||||||
|
.append(icsunitdefinition.getLabel())
|
||||||
|
.toString());
|
||||||
|
setText((new StringBuilder()).append(s).append(")")
|
||||||
|
.toString());
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
setBackground(jlist.getSelectionBackground());
|
||||||
|
setForeground(jlist.getSelectionForeground());
|
||||||
|
} else if (icsautofiltervalue.isDeprecated()) {
|
||||||
|
setForeground(jlist.getBackground().darker().darker());
|
||||||
|
setBackground(jlist.getBackground());
|
||||||
|
} else {
|
||||||
|
setBackground(jlist.getBackground());
|
||||||
|
setForeground(jlist.getForeground());
|
||||||
|
}
|
||||||
|
setEnabled(jlist.isEnabled());
|
||||||
|
}
|
||||||
|
} catch (Exception exception) {
|
||||||
|
Debug.println((new StringBuilder())
|
||||||
|
.append("An Error occured in G4MListValuesButton: ")
|
||||||
|
.append(exception).toString());
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private ImageIcon m_metricIcon;
|
||||||
|
private ImageIcon m_nonMetricIcon;
|
||||||
|
private ImageIcon m_deprecateIcon;
|
||||||
|
|
||||||
|
public ListValueRenderer() {
|
||||||
|
super();
|
||||||
|
m_metricIcon = Registry.getRegistry(TCClassificationViewer.class)
|
||||||
|
.getImageIcon("g4mAutoFilterButton.METRIC_ICON");
|
||||||
|
m_nonMetricIcon = Registry
|
||||||
|
.getRegistry(TCClassificationViewer.class).getImageIcon(
|
||||||
|
"g4mAutoFilterButton.NONMETRIC_ICON");
|
||||||
|
m_deprecateIcon = Registry
|
||||||
|
.getRegistry(TCClassificationViewer.class).getImageIcon(
|
||||||
|
"DeprecatedKeyLOVNode.ICON");
|
||||||
|
setOpaque(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ListValuesButton(ICSView icsView,
|
||||||
|
ICSPropertyDescription aicspropertydescription,
|
||||||
|
JComponent jComponent, JComponent jComponentLabel) {
|
||||||
|
this.icsView = icsView;
|
||||||
|
this.aicspropertydescription = aicspropertydescription;
|
||||||
|
this.jComponent = jComponent;
|
||||||
|
this.jComponentLabel = jComponentLabel;
|
||||||
|
m_optStorageValuesMap = new HashMap();
|
||||||
|
if (m_icon == null)
|
||||||
|
m_icon = Registry.getRegistry(TCClassificationViewer.class)
|
||||||
|
.getImageIcon("g4mAutoFilterButton.ICON");
|
||||||
|
if (m_editIcon == null)
|
||||||
|
m_editIcon = Registry.getRegistry(TCClassificationViewer.class)
|
||||||
|
.getImageIcon("g4mAutoFilterButton.EDIT_ICON");
|
||||||
|
setIcon(m_icon);
|
||||||
|
m_refOnEdit = aicspropertydescription.getExt1().length() != 0;
|
||||||
|
setMargin(new Insets(0, 0, 0, 0));
|
||||||
|
setFocusPainted(false);
|
||||||
|
setPinnableButtonVisible(false);
|
||||||
|
m_listPanel = new ValueListBox();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void loadValues() {
|
||||||
|
loadValues4edit(icsView, aicspropertydescription);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void loadValues4edit(ICSView icsView,
|
||||||
|
ICSPropertyDescription icsPropertyDescription) {
|
||||||
|
int i = 1;
|
||||||
|
int ai[] = new int[i];
|
||||||
|
String as[] = new String[i];
|
||||||
|
int j = icsPropertyDescription.getId();
|
||||||
|
String s = icsPropertyDescription.getExt1();
|
||||||
|
if (s == null || s.length() == 0)
|
||||||
|
s = icsView.getClassID();
|
||||||
|
else
|
||||||
|
j = -599;
|
||||||
|
ai[0] = -600;
|
||||||
|
as[0] = s;
|
||||||
|
findValues(icsPropertyDescription, ai, as, j);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCSession getSession() {
|
||||||
|
TCSession session = (TCSession) AifrcpPlugin.getSessionService()
|
||||||
|
.getDefaultSession();
|
||||||
|
return session;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void findValues(ICSPropertyDescription icsPropertyDescription,
|
||||||
|
int ai[], String as[], int i) {
|
||||||
|
try {
|
||||||
|
m_optStorageValuesMap = new HashMap();
|
||||||
|
com.teamcenter.rac.kernel.ics.ICSKeyLov icskeylov = null;
|
||||||
|
if (icsPropertyDescription.getFormat().isList()) {
|
||||||
|
icskeylov = icsPropertyDescription.getFormat().getKeyLov();
|
||||||
|
}
|
||||||
|
int j = icsView.getActiveUnitsystem();
|
||||||
|
int m = icsView.getClassUnitSystem();
|
||||||
|
int k = m;
|
||||||
|
if (m == 0) {
|
||||||
|
k = m;
|
||||||
|
}
|
||||||
|
if (m == 1) {
|
||||||
|
k = m;
|
||||||
|
}
|
||||||
|
if (m == 2) {
|
||||||
|
if (icsPropertyDescription.isAttributeNumericAndHasUnit()) {
|
||||||
|
k = m;
|
||||||
|
} else {
|
||||||
|
k = j;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m != 2) {
|
||||||
|
k |= 32;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (icskeylov != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
m_values = getSession().getClassificationService().findValues(ai,
|
||||||
|
as, j, k, i, icsPropertyDescription, icskeylov,
|
||||||
|
m_optStorageValuesMap);
|
||||||
|
|
||||||
|
} catch (TCException tcexception) {
|
||||||
|
tcexception.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean isSearchExpression(String s) {
|
||||||
|
return s != null && !s.equals("") && s.substring(0, 1).matches("[<>!]");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMode(int i) {
|
||||||
|
setVisible(i != 2);
|
||||||
|
if (m_refOnEdit && (i == 4 || i == 8))
|
||||||
|
setIcon(m_editIcon);
|
||||||
|
else
|
||||||
|
setIcon(m_icon);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void initPopupWindow() {
|
||||||
|
try {
|
||||||
|
getPanel().add(m_listPanel);
|
||||||
|
} catch (Exception exception) {
|
||||||
|
System.out.println((new StringBuilder())
|
||||||
|
.append("G4MTreeSearchClassPanel() throws ")
|
||||||
|
.append(exception).toString());
|
||||||
|
}
|
||||||
|
setPopupTitle(Registry.getRegistry(TCClassificationViewer.class)
|
||||||
|
.getString("g4mListValueButton.TITLE", "!!!List of Values"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void postUp() {
|
||||||
|
String as[] = new String[1];
|
||||||
|
as[0] = "Loading Values...";
|
||||||
|
m_listPanel.getList().setListData(as);
|
||||||
|
m_exceptionThrown = false;
|
||||||
|
LoadValuesOperation loadvaluesoperation = new LoadValuesOperation();
|
||||||
|
loadvaluesoperation.addOperationListener(this);
|
||||||
|
getSession().queueOperation(loadvaluesoperation);
|
||||||
|
super.postUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void exceptionThrown(Exception exception) {
|
||||||
|
final Exception e = exception;
|
||||||
|
try {
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
String as[] = new String[3];
|
||||||
|
as[0] = "Loading Values...";
|
||||||
|
as[1] = "Exception thrown";
|
||||||
|
as[2] = e.toString();
|
||||||
|
m_listPanel.getList().setListData(as);
|
||||||
|
m_listPanel.getList().repaint();
|
||||||
|
m_exceptionThrown = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (Exception exception1) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void startOperation(String s) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void endOperation() {
|
||||||
|
try {
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
if (!m_exceptionThrown)
|
||||||
|
if (m_values != null) {
|
||||||
|
setPopupTitle((new StringBuilder())
|
||||||
|
.append(Registry.getRegistry(
|
||||||
|
TCClassificationViewer.class)
|
||||||
|
.getString(
|
||||||
|
"g4mListValueButton.TITLE",
|
||||||
|
"!!!List of Values"))
|
||||||
|
.append(" (").append(m_values.size())
|
||||||
|
.append(")").toString());
|
||||||
|
ICSAutoFilterValue aicsautofiltervalue[] = new ICSAutoFilterValue[m_values
|
||||||
|
.size()];
|
||||||
|
m_values.toArray(aicsautofiltervalue);
|
||||||
|
m_listPanel.getList().setListData(
|
||||||
|
aicsautofiltervalue);
|
||||||
|
ICSFormat icsformat = aicspropertydescription
|
||||||
|
.getFormat();
|
||||||
|
if (icsformat.isReal() || icsformat.isInteger())
|
||||||
|
m_listPanel.getList().setCellRenderer(
|
||||||
|
new ListValueRenderer());
|
||||||
|
if (icsformat.isList())
|
||||||
|
m_listPanel.getList().setCellRenderer(
|
||||||
|
new ListValueRenderer());
|
||||||
|
m_listPanel.getList().repaint();
|
||||||
|
m_listPanel.getList().validate();
|
||||||
|
} else {
|
||||||
|
String as[] = new String[1];
|
||||||
|
as[0] = "No Values found!";
|
||||||
|
m_listPanel.getList().setListData(as);
|
||||||
|
m_listPanel.getList().repaint();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (Exception exception) {
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ValueListBox m_listPanel;
|
||||||
|
private java.util.List m_values;
|
||||||
|
private boolean m_exceptionThrown;
|
||||||
|
private ImageIcon m_icon;
|
||||||
|
private ImageIcon m_editIcon;
|
||||||
|
private boolean m_refOnEdit;
|
||||||
|
public static HashMap m_optStorageValuesMap;
|
||||||
|
private static final Logger logger;
|
||||||
|
|
||||||
|
static {
|
||||||
|
logger = Logger
|
||||||
|
.getLogger("com/teamcenter/rac/classification/common/form/G4MListValuesButton");
|
||||||
|
if (Debug.isOn("G4M") && !logger.isDebugEnabled())
|
||||||
|
logger.setLevel(Level.DEBUG);
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 616 B |
After Width: | Height: | Size: 620 B |
After Width: | Height: | Size: 751 B |
@ -0,0 +1,28 @@
|
|||||||
|
package cn.com.origin.autocode.common;
|
||||||
|
|
||||||
|
import cn.com.origin.autocodemanager.common.IsShowAutocodeManagerPerspective;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class IsShowAutocodePerspective {
|
||||||
|
private String showAutocodeUserOptionName = "origin_showAutocodeUsers";
|
||||||
|
|
||||||
|
public IsShowAutocodePerspective() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getValue() {
|
||||||
|
boolean flag = false;
|
||||||
|
try {
|
||||||
|
TCSession session = (TCSession) AIFUtility.getCurrentApplication().getSession();
|
||||||
|
String userID = session.getUser().getUserId();
|
||||||
|
flag = new IsShowAutocodeManagerPerspective().isExist(userID, showAutocodeUserOptionName);
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,166 @@
|
|||||||
|
/**
|
||||||
|
* @author tyl
|
||||||
|
* @Action ini
|
||||||
|
* 2011-4-5
|
||||||
|
*/
|
||||||
|
package cn.com.origin.autocode.common.operations;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import cn.com.origin.autocodemanager.common.tree.AbstractTreeData;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponent;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.TCUserService;
|
||||||
|
import com.teamcenter.schemas.soa._2006_03.exceptions.ServiceException;
|
||||||
|
|
||||||
|
public class ClassificationOperation {
|
||||||
|
|
||||||
|
private TCUserService userService;
|
||||||
|
private TCSession session = null;
|
||||||
|
public String parentStr = "";
|
||||||
|
|
||||||
|
public ClassificationOperation() {
|
||||||
|
session = (TCSession) AIFUtility.getCurrentApplication().getSession();
|
||||||
|
try {
|
||||||
|
userService = (TCUserService) session.getUserService();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent createNewClassificationNode(HashMap<?, ?> hashMap) throws ServiceException, TCException {
|
||||||
|
String[] propNames = new String[hashMap.size()];
|
||||||
|
String[] propValues = new String[hashMap.size()];
|
||||||
|
Set<?> set = hashMap.keySet();
|
||||||
|
Iterator<?> it = set.iterator();
|
||||||
|
for (int i = 0; i < hashMap.size(); i++) {
|
||||||
|
propNames[i] = (String) it.next();
|
||||||
|
propValues[i] = (String) hashMap.get(propNames[i]);
|
||||||
|
}
|
||||||
|
Object[] params = { propNames, propValues };
|
||||||
|
try {
|
||||||
|
TCComponent newTCcomponent = (TCComponent) userService.call("createNewClassificationNode", params);
|
||||||
|
return newTCcomponent;
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent updateClassificationNode(TCComponent component, HashMap<?, ?> hashMap) throws ServiceException, TCException {
|
||||||
|
String[] propNames = new String[hashMap.size()];
|
||||||
|
String[] propValues = new String[hashMap.size()];
|
||||||
|
Set<?> set = hashMap.keySet();
|
||||||
|
Iterator<?> it = set.iterator();
|
||||||
|
for (int i = 0; i < hashMap.size(); i++) {
|
||||||
|
propNames[i] = (String) it.next();
|
||||||
|
propValues[i] = (String) hashMap.get(propNames[i]);
|
||||||
|
if (propValues[i] == null) {
|
||||||
|
propValues[i] = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Object[] params = { component, propNames, propValues };
|
||||||
|
try {
|
||||||
|
TCComponent updateTCcomponent = (TCComponent) userService.call("updateClassificationNode", params);
|
||||||
|
return updateTCcomponent;
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent[] searchClassificationSegmentByUser(String itemType, TCComponent currentUser, TCComponent currentRole, TCComponent currentGroup) throws ServiceException, TCException {
|
||||||
|
|
||||||
|
Object[] params = { itemType, currentUser, currentRole, currentGroup };
|
||||||
|
try {
|
||||||
|
TCComponent[] searchTCcomponents = (TCComponent[]) userService.call("searchClassificationSegmentByUser", params);
|
||||||
|
return searchTCcomponents;
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent[] searchClassificationUsers(HashMap<?, ?> hashMap) throws ServiceException, TCException {
|
||||||
|
String[] propNames = new String[hashMap.size()];
|
||||||
|
String[] propValues = new String[hashMap.size()];
|
||||||
|
Set<?> set = hashMap.keySet();
|
||||||
|
Iterator<?> it = set.iterator();
|
||||||
|
for (int i = 0; i < hashMap.size(); i++) {
|
||||||
|
propNames[i] = (String) it.next();
|
||||||
|
propValues[i] = (String) hashMap.get(propNames[i]);
|
||||||
|
}
|
||||||
|
Object[] params = { propNames, propValues };
|
||||||
|
try {
|
||||||
|
TCComponent[] searchTCcomponents = (TCComponent[]) userService.call("searchClassificationUsers", params);
|
||||||
|
return searchTCcomponents;
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent[] searchClassificationSegments(HashMap<?, ?> hashMap) throws ServiceException, TCException {
|
||||||
|
String[] propNames = new String[hashMap.size()];
|
||||||
|
String[] propValues = new String[hashMap.size()];
|
||||||
|
Set<?> set = hashMap.keySet();
|
||||||
|
Iterator<?> it = set.iterator();
|
||||||
|
for (int i = 0; i < hashMap.size(); i++) {
|
||||||
|
propNames[i] = (String) it.next();
|
||||||
|
propValues[i] = (String) hashMap.get(propNames[i]);
|
||||||
|
}
|
||||||
|
Object[] params = { propNames, propValues };
|
||||||
|
try {
|
||||||
|
TCComponent[] searchTCcomponents = (TCComponent[]) userService.call("searchClassificationSegments", params);
|
||||||
|
return searchTCcomponents;
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent[] searchClassificationNodes(HashMap<?, ?> hashMap) throws ServiceException, TCException {
|
||||||
|
String[] propNames = new String[hashMap.size()];
|
||||||
|
String[] propValues = new String[hashMap.size()];
|
||||||
|
Set<?> set = hashMap.keySet();
|
||||||
|
Iterator<?> it = set.iterator();
|
||||||
|
for (int i = 0; i < hashMap.size(); i++) {
|
||||||
|
propNames[i] = (String) it.next();
|
||||||
|
propValues[i] = (String) hashMap.get(propNames[i]);
|
||||||
|
}
|
||||||
|
Object[] params = { propNames, propValues };
|
||||||
|
try {
|
||||||
|
TCComponent[] searchTCcomponents = (TCComponent[]) userService.call("searchClassificationNodes", params);
|
||||||
|
return searchTCcomponents;
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteTreeData(AbstractTreeData treeData) {
|
||||||
|
try {
|
||||||
|
treeData.getPackCodeNodeInfo().getNodeComponent().delete();
|
||||||
|
} catch (TCException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteTreeDatas(AbstractTreeData treeData) {
|
||||||
|
if (treeData != null) {
|
||||||
|
AbstractTreeData[] childrenDatas = treeData.getChildrenDatas();
|
||||||
|
if ((childrenDatas != null) && (childrenDatas.length > 0)) {
|
||||||
|
for (int i = 0; i < childrenDatas.length; i++) {
|
||||||
|
deleteTreeDatas(childrenDatas[i]);
|
||||||
|
deleteTreeData(childrenDatas[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,87 @@
|
|||||||
|
package cn.com.origin.autocode.common.operations;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponent;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentFolder;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItem;
|
||||||
|
import com.teamcenter.rac.kernel.TCPreferenceService;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.TCUserService;
|
||||||
|
|
||||||
|
public class CreateNewItemOperation {
|
||||||
|
private TCSession session = null;
|
||||||
|
private String origin_newItemDatasetTemplateItem = "origin_newItemDatasetTemplateItem";
|
||||||
|
private String origin_newItemDatasetName = "origin_newItemDatasetName";
|
||||||
|
|
||||||
|
public CreateNewItemOperation() {
|
||||||
|
session = (TCSession) AIFUtility.getCurrentApplication().getSession();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTemplateItemID() {
|
||||||
|
String TemplateItemID = "";
|
||||||
|
try {
|
||||||
|
HashMap<String, String> cfghm = TCPreferenceUitl.getPreferenceHashMap(session, TCPreferenceService.TC_preference_site, origin_newItemDatasetTemplateItem);
|
||||||
|
if (cfghm == null) {
|
||||||
|
// MessageBox.post("没有配置首选项【" +
|
||||||
|
// origin_newItemDatasetTemplateItem + "】!", "INFO",
|
||||||
|
// MessageBox.INFORMATION);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
TemplateItemID = (cfghm.get("TemplateItemID") + "").trim();
|
||||||
|
if ((TemplateItemID == null) || (TemplateItemID.length() == 0)) {
|
||||||
|
// MessageBox.post("请配置首选项【" + origin_newItemDatasetTemplateItem
|
||||||
|
// + "】!", "INFO", MessageBox.INFORMATION);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return TemplateItemID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDatasetName(String itemType) {
|
||||||
|
String TemplateItemID = "";
|
||||||
|
try {
|
||||||
|
HashMap<String, String> cfghm = TCPreferenceUitl.getPreferenceHashMap(session, TCPreferenceService.TC_preference_site, origin_newItemDatasetName);
|
||||||
|
if (cfghm == null) {
|
||||||
|
// MessageBox.post("没有配置首选项【" + origin_newItemDatasetName +
|
||||||
|
// "】!", "INFO", MessageBox.INFORMATION);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
TemplateItemID = (cfghm.get(itemType) + "").trim();
|
||||||
|
if ((TemplateItemID == null) || (TemplateItemID.length() == 0)) {
|
||||||
|
// MessageBox.post("请配置首选项【" + origin_newItemDatasetName + "】!",
|
||||||
|
// "INFO", MessageBox.INFORMATION);
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return TemplateItemID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCComponent createNewItem(String itemID, String itemRev, String itemType, String itemName, String itemDesc, TCComponent targetFolder) {
|
||||||
|
TCComponentItem newItem = null;
|
||||||
|
try {
|
||||||
|
// System.out.println("itemID============" + itemID);
|
||||||
|
// System.out.println("itemRev============" + itemRev);
|
||||||
|
// System.out.println("itemType============" + itemType);
|
||||||
|
// System.out.println("itemName============" + itemName);
|
||||||
|
// System.out.println("itemDesc============" + itemDesc);
|
||||||
|
|
||||||
|
String templateItemID = getTemplateItemID();
|
||||||
|
TCUserService userService = (TCUserService) session.getUserService();
|
||||||
|
Object[] params = { itemID, itemName, itemType, itemRev, new TCComponentFolder(), templateItemID, getDatasetName(itemType) };
|
||||||
|
newItem = (TCComponentItem) userService.call("createNewItem", params);
|
||||||
|
if (newItem != null) {
|
||||||
|
newItem.refresh();
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return newItem;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
package cn.com.origin.autocode.common.operations;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItem;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.TCUserService;
|
||||||
|
import com.teamcenter.rac.util.MessageBox;
|
||||||
|
|
||||||
|
public class SendToIcsOperation {
|
||||||
|
private TCUserService userService;
|
||||||
|
private TCSession session = null;
|
||||||
|
public String parentStr = "";
|
||||||
|
|
||||||
|
public SendToIcsOperation() {
|
||||||
|
session = (TCSession) AIFUtility.getCurrentApplication().getSession();
|
||||||
|
try {
|
||||||
|
userService = (TCUserService) session.getUserService();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean sendItemToClassification(TCComponentItem item, String icsID, Object[] names, String[] values) {
|
||||||
|
try {
|
||||||
|
if ((icsID == null) || (icsID.length() == 0)) {
|
||||||
|
MessageBox.post("物料创建成功,未找到对应分类节点!", "提示", MessageBox.INFORMATION);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (item == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Object[] params = { item, icsID, names, values };
|
||||||
|
Object returnValue = userService.call("sendItemToClassification", params);
|
||||||
|
if (returnValue.equals("isAbstract")) {
|
||||||
|
MessageBox.post("所选节点为抽象类,发送到分类失败!", "提示", MessageBox.INFORMATION);
|
||||||
|
} else {
|
||||||
|
MessageBox.post("物料创建成功且发送到分类成功!", "提示", MessageBox.INFORMATION);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
MessageBox.post("物料创建成功但发送分类出错!", "提示", MessageBox.INFORMATION);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClassificationByName(String parentID, String childName) {
|
||||||
|
String returnValue = "";
|
||||||
|
try {
|
||||||
|
Object[] params = { parentID, childName };
|
||||||
|
Object obj = userService.call("getClassificationID", params);
|
||||||
|
returnValue = obj.toString();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return returnValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* @author tyl
|
||||||
|
* @Action ini
|
||||||
|
* 2011-4-4
|
||||||
|
*/
|
||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
import cn.com.origin.autocode.newitem.generatcode.NewCodeItemDialog;
|
||||||
|
import cn.com.origin.autocode.newitem.system.ORNewItemCommand;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
import com.teamcenter.rac.aif.AIFDesktop;
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class AutoCodeNewItemByTypeHandler extends AbstractHandler {
|
||||||
|
private String origin_newItemDialogType = "origin_newItemDialogType";
|
||||||
|
|
||||||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
|
||||||
|
String value = TCPreferenceUitl.getTCPreferenceValue((TCSession) AIFUtility.getCurrentApplication().getSession(), origin_newItemDialogType);
|
||||||
|
if (value.equals("2")) {
|
||||||
|
new Thread() {
|
||||||
|
public void run() {
|
||||||
|
ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication());
|
||||||
|
// ExcelTemplate Item
|
||||||
|
// ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication(),"DMTemplate");
|
||||||
|
try {
|
||||||
|
command.executeModal();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
|
} else {
|
||||||
|
new NewCodeItemDialog(AIFDesktop.getActiveDesktop().getShell(),"HX3_WL").open();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* @author tyl
|
||||||
|
* @Action ini
|
||||||
|
* 2011-4-4
|
||||||
|
*/
|
||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
import cn.com.origin.autocode.newitem.generatcode.NewCodeItemDialog;
|
||||||
|
import cn.com.origin.autocode.newitem.system.ORNewItemCommand;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
import com.teamcenter.rac.aif.AIFDesktop;
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class AutoCodeNewItemFilterTypeHandler extends AbstractHandler {
|
||||||
|
private String origin_newItemDialogType = "origin_newItemDialogType";
|
||||||
|
|
||||||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
|
||||||
|
String value = TCPreferenceUitl.getTCPreferenceValue((TCSession) AIFUtility.getCurrentApplication().getSession(), origin_newItemDialogType);
|
||||||
|
if (value.equals("2")) {
|
||||||
|
new Thread() {
|
||||||
|
public void run() {
|
||||||
|
ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication());
|
||||||
|
// ExcelTemplate Item
|
||||||
|
// ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication(),"DMTemplate");
|
||||||
|
try {
|
||||||
|
command.executeModal();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
|
} else {
|
||||||
|
new NewCodeItemDialog(AIFDesktop.getActiveDesktop().getShell(),"HX3_WL",true).open();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* @author tyl
|
||||||
|
* @Action ini
|
||||||
|
* 2011-4-4
|
||||||
|
*/
|
||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
import cn.com.origin.autocode.newitem.generatcode.NewCodeItemDialog;
|
||||||
|
import cn.com.origin.autocode.newitem.system.ORNewItemCommand;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
import com.teamcenter.rac.aif.AIFDesktop;
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class AutoCodeNewItemHandler extends AbstractHandler {
|
||||||
|
private String origin_newItemDialogType = "origin_newItemDialogType";
|
||||||
|
|
||||||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
|
||||||
|
String value = TCPreferenceUitl.getTCPreferenceValue((TCSession) AIFUtility.getCurrentApplication().getSession(), origin_newItemDialogType);
|
||||||
|
if (value.equals("2")) {
|
||||||
|
new Thread() {
|
||||||
|
public void run() {
|
||||||
|
ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication());
|
||||||
|
// ExcelTemplate Item
|
||||||
|
// ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication(),"DMTemplate");
|
||||||
|
try {
|
||||||
|
command.executeModal();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
|
} else {
|
||||||
|
new NewCodeItemDialog(AIFDesktop.getActiveDesktop().getShell()).open();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,97 @@
|
|||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
import org.eclipse.swt.SWT;
|
||||||
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
|
import org.eclipse.swt.events.SelectionListener;
|
||||||
|
import org.eclipse.swt.layout.FillLayout;
|
||||||
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
import org.eclipse.swt.layout.GridLayout;
|
||||||
|
import org.eclipse.swt.widgets.Button;
|
||||||
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
import org.eclipse.swt.widgets.Display;
|
||||||
|
import org.eclipse.swt.widgets.Shell;
|
||||||
|
public class DynamSample{
|
||||||
|
Display display;
|
||||||
|
Shell shell;
|
||||||
|
Composite c;
|
||||||
|
Composite c1;
|
||||||
|
Composite c2;
|
||||||
|
|
||||||
|
public DynamSample(){
|
||||||
|
display = new Display();
|
||||||
|
shell = new Shell(display);
|
||||||
|
shell.setText("SWT Sample");
|
||||||
|
shell.setLayout( new FillLayout(SWT.VERTICAL));
|
||||||
|
|
||||||
|
c = new Composite(shell, SWT.NONE);
|
||||||
|
c.setLayout( new FillLayout() );
|
||||||
|
|
||||||
|
createGui1();
|
||||||
|
createGui2();
|
||||||
|
|
||||||
|
shell.open();
|
||||||
|
while (!shell.isDisposed())
|
||||||
|
if (!display.readAndDispatch())
|
||||||
|
display.sleep();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void createGui1(){
|
||||||
|
c1 = new Composite(c, SWT.NONE);
|
||||||
|
c1.setLayout(new GridLayout(1, true));
|
||||||
|
Button b1 = new Button( c1, SWT.NONE);
|
||||||
|
b1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||||
|
b1.setText("Button 1");
|
||||||
|
b1.addSelectionListener(new SelectionListener(){
|
||||||
|
@Override
|
||||||
|
public void widgetDefaultSelected(SelectionEvent e) {
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
c1.dispose(); //先销毁了
|
||||||
|
createGui3(); //在重新加载上???但不成功
|
||||||
|
//按添加的
|
||||||
|
c1.layout();
|
||||||
|
c.layout();
|
||||||
|
//
|
||||||
|
}});
|
||||||
|
}
|
||||||
|
private void createGui2(){
|
||||||
|
Composite c2 = new Composite(c, SWT.NONE);
|
||||||
|
c2.setLayout(new GridLayout( 1, true ));
|
||||||
|
Button b2 = new Button( c2, SWT.NONE);
|
||||||
|
b2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||||
|
b2.setText("Button 2");
|
||||||
|
b2.addSelectionListener(new SelectionListener(){
|
||||||
|
@Override
|
||||||
|
public void widgetDefaultSelected(SelectionEvent e) {
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
// 功能如上
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
private void createGui3(){
|
||||||
|
c1 = new Composite(c, SWT.NONE);
|
||||||
|
c1.setLayout(new GridLayout( 1, true ));
|
||||||
|
Button b1 = new Button( c1, SWT.NONE);
|
||||||
|
b1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||||
|
b1.setText("Button 2222222");
|
||||||
|
b1.addSelectionListener(new SelectionListener(){
|
||||||
|
@Override
|
||||||
|
public void widgetDefaultSelected(SelectionEvent e) {
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
// 功能如上
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void main(String args[])
|
||||||
|
{
|
||||||
|
new DynamSample();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
|
||||||
|
public class HandlerControlTest extends AbstractHandler {
|
||||||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public boolean isEnabled() {
|
||||||
|
String origin_handlerTest="origin_handlerTest";
|
||||||
|
TCSession session = (TCSession) AIFUtility.getCurrentApplication().getSession();
|
||||||
|
if (TCPreferenceUitl.isTrueTCPreferenceValue(session, origin_handlerTest)) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,78 @@
|
|||||||
|
/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||||
|
|
||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import java.util.MissingResourceException;
|
||||||
|
import java.util.ResourceBundle;
|
||||||
|
import org.eclipse.jface.resource.ImageDescriptor;
|
||||||
|
import org.eclipse.swt.graphics.Image;
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.ui.commands.RACUICommandsActivator;
|
||||||
|
|
||||||
|
// Referenced classes of package com.teamcenter.rac.ui.commands:
|
||||||
|
// RACUICommandsActivator
|
||||||
|
|
||||||
|
public class Messages
|
||||||
|
{
|
||||||
|
|
||||||
|
public Messages()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getString(String s)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return RESOURCE_BUNDLE.getString(s);
|
||||||
|
}
|
||||||
|
catch(MissingResourceException _ex)
|
||||||
|
{
|
||||||
|
return (new StringBuilder(String.valueOf('!'))).append(s).append('!').toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String[] getStringArray(String s)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
String s1 = getString(s);
|
||||||
|
String as[] = s1.split(",");
|
||||||
|
String as1[] = new String[as.length];
|
||||||
|
for(int i = 0; i < as.length; i++)
|
||||||
|
as1[i] = as[i].trim();
|
||||||
|
|
||||||
|
return as1;
|
||||||
|
}
|
||||||
|
catch(MissingResourceException _ex)
|
||||||
|
{
|
||||||
|
return (new String[] {
|
||||||
|
(new StringBuilder(String.valueOf('!'))).append(s).append('!').toString()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Image getImage(String s)
|
||||||
|
{
|
||||||
|
ImageDescriptor imagedescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(RACUICommandsActivator.getBundleID(), s);
|
||||||
|
if(imagedescriptor != null)
|
||||||
|
return imagedescriptor.createImage();
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final String BUNDLE_NAME = "cn.com.origin.autocode.handlers.messages_locale";
|
||||||
|
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("cn.com.origin.autocode.handlers.messages_locale");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
DECOMPILATION REPORT
|
||||||
|
|
||||||
|
Decompiled from: C:\TC\Siemens\Teamcenter11\portal\plugins\com.teamcenter.rac.ui.commands_11000.2.0.jar
|
||||||
|
Total time: 49 ms
|
||||||
|
Jad reported messages/errors:
|
||||||
|
Exit status: 0
|
||||||
|
Caught exceptions:
|
||||||
|
*/
|
@ -0,0 +1,32 @@
|
|||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.ExecutionException;
|
||||||
|
|
||||||
|
import cn.com.origin.autocode.newitem.generatcode.NewCodeItemDialog;
|
||||||
|
import cn.com.origin.autocode.newitem.system.ORNewItemCommand;
|
||||||
|
import cn.com.origin.autocodemanager.common.TCPreferenceUitl;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aif.AIFDesktop;
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
|
||||||
|
public class NewItemTestHandler extends AbstractHandler {
|
||||||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
|
||||||
|
new NewCodeItemDialog(AIFDesktop.getActiveDesktop().getShell(),"ExcelTemplate").open();
|
||||||
|
|
||||||
|
// new Thread() {
|
||||||
|
// public void run() {
|
||||||
|
// // ExcelTemplate Item DMTemplate
|
||||||
|
// ORNewItemCommand command = new ORNewItemCommand(AIFDesktop.getActiveDesktop().getFrame(), AIFUtility.getCurrentApplication(),"ExcelTemplate");
|
||||||
|
// try {
|
||||||
|
// command.executeModal();
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// e.printStackTrace();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }.start();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,193 @@
|
|||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
||||||
|
import com.teamcenter.rac.commands.genericsaveas.ISaveAsService;
|
||||||
|
import com.teamcenter.rac.common.Activator;
|
||||||
|
import com.teamcenter.rac.kernel.*;
|
||||||
|
import com.teamcenter.rac.ui.commands.handlers.SaveASHandler;
|
||||||
|
import com.teamcenter.rac.util.*;
|
||||||
|
import com.teamcenter.rac.util.wizard.extension.*;
|
||||||
|
import java.text.MessageFormat;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.eclipse.core.commands.*;
|
||||||
|
import org.eclipse.jface.viewers.ISelection;
|
||||||
|
import org.eclipse.jface.viewers.StructuredSelection;
|
||||||
|
import org.eclipse.jface.wizard.Wizard;
|
||||||
|
import org.eclipse.jface.wizard.WizardDialog;
|
||||||
|
import org.eclipse.swt.widgets.Shell;
|
||||||
|
import org.eclipse.ui.IWorkbenchWindow;
|
||||||
|
import org.eclipse.ui.handlers.HandlerUtil;
|
||||||
|
|
||||||
|
public class ORItemSaveAsHandler extends AbstractHandler
|
||||||
|
{
|
||||||
|
private class CreateSaveAsDialog
|
||||||
|
implements Runnable
|
||||||
|
{
|
||||||
|
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
BaseExternalWizard baseexternalwizard = getWizard();
|
||||||
|
if(baseexternalwizard != null)
|
||||||
|
{
|
||||||
|
baseexternalwizard.setForcePreviousAndNextButtons(true);
|
||||||
|
ISaveAsService isaveasservice =(ISaveAsService)OSGIUtil.getService(Activator.getDefault(), ISaveAsService.class);
|
||||||
|
if(isaveasservice != null)
|
||||||
|
{
|
||||||
|
isaveasservice.setInput((TCComponent)m_selectedCmp);
|
||||||
|
baseexternalwizard.setWindowTitle(getWizardTitle());
|
||||||
|
baseexternalwizard.setContext(new StructuredSelection(m_selectedCmp));
|
||||||
|
Shell shell = UIUtilities.getCurrentModalShell();
|
||||||
|
BaseExternalWizardDialog baseexternalwizarddialog = new BaseExternalWizardDialog(shell, baseexternalwizard);
|
||||||
|
baseexternalwizarddialog.create();
|
||||||
|
ORItemSaveAsHandler.readDisplayParameters(baseexternalwizard, baseexternalwizarddialog);
|
||||||
|
Shell shell1 = baseexternalwizarddialog.getShell();
|
||||||
|
UIUtilities.setCurrentModalShell(shell1);
|
||||||
|
baseexternalwizarddialog.open();
|
||||||
|
UIUtilities.setCurrentModalShell(shell);
|
||||||
|
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
MessageBox.post(m_shell, Messages.getString("saveAsServiceNotAvailble.MEG"), Messages.getString("saveAs.TITLE"), 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private final Shell m_shell;
|
||||||
|
final ORItemSaveAsHandler this$0;
|
||||||
|
|
||||||
|
private CreateSaveAsDialog(Shell shell)
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
this$0 = ORItemSaveAsHandler.this;
|
||||||
|
m_shell = shell;
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateSaveAsDialog(Shell shell, CreateSaveAsDialog createsaveasdialog)
|
||||||
|
{
|
||||||
|
this(shell);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ORItemSaveAsHandler()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object execute(ExecutionEvent executionevent)
|
||||||
|
throws ExecutionException
|
||||||
|
{
|
||||||
|
ISelection iselection = HandlerUtil.getCurrentSelection(executionevent);
|
||||||
|
if(iselection instanceof StructuredSelection)
|
||||||
|
{
|
||||||
|
StructuredSelection structuredselection = (StructuredSelection)iselection;
|
||||||
|
if(structuredselection.size() != 1)
|
||||||
|
{
|
||||||
|
MessageBox.post(HandlerUtil.getActiveWorkbenchWindow(executionevent).getShell(), Messages.getString("toomanyObjects.MSG"), Messages.getString("saveAs.TITLE"), 4);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
m_selectedCmp = (InterfaceAIFComponent)AdapterUtil.getAdapter(iselection, InterfaceAIFComponent.class);
|
||||||
|
if(m_selectedCmp.getType().endsWith("HX3_WLRevision")){
|
||||||
|
try {
|
||||||
|
m_selectedCmp =((TCComponentItemRevision)m_selectedCmp).getItem();
|
||||||
|
} catch (TCException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(m_selectedCmp instanceof TCComponent)
|
||||||
|
{
|
||||||
|
Object aobj[] = {
|
||||||
|
((TCComponent)m_selectedCmp).toDisplayString()
|
||||||
|
};
|
||||||
|
m_selectedCmp = getUnderlyingComponent((TCComponent)m_selectedCmp);
|
||||||
|
if(m_selectedCmp != null)
|
||||||
|
{
|
||||||
|
Shell shell = HandlerUtil.getActiveShell(executionevent);
|
||||||
|
if(shell != null)
|
||||||
|
{
|
||||||
|
CreateSaveAsDialog createsaveasdialog = new CreateSaveAsDialog(shell, null);
|
||||||
|
createsaveasdialog.run();
|
||||||
|
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
MessageBox.post(HandlerUtil.getActiveWorkbenchWindow(executionevent).getShell(), MessageFormat.format(Messages.getString("saveAsNotSupported.MESSAGE"), aobj), Messages.getString("saveAs.TITLE"), 1);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
MessageBox.post(HandlerUtil.getActiveWorkbenchWindow(executionevent).getShell(), Messages.getString("invalidSelection.MESSAGE"), Messages.getString("saveAs.TITLE"), 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static void readDisplayParameters(Wizard wizard, WizardDialog wizarddialog)
|
||||||
|
{
|
||||||
|
String s = "DialogParameters";
|
||||||
|
String s1 = wizard.getClass().getName();
|
||||||
|
if(Cookie.exists(s, true))
|
||||||
|
try
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
int j = 0;
|
||||||
|
int k = 0;
|
||||||
|
int l = 0;
|
||||||
|
Cookie cookie = Cookie.getCookie(s, true);
|
||||||
|
i = cookie.getNumber((new StringBuilder(String.valueOf(s1))).append(".x").toString());
|
||||||
|
j = cookie.getNumber((new StringBuilder(String.valueOf(s1))).append(".y").toString());
|
||||||
|
k = cookie.getNumber((new StringBuilder(String.valueOf(s1))).append(".w").toString());
|
||||||
|
l = cookie.getNumber((new StringBuilder(String.valueOf(s1))).append(".h").toString());
|
||||||
|
if(k > 0 && l > 0)
|
||||||
|
wizarddialog.getShell().setBounds(i, j, k, l);
|
||||||
|
}
|
||||||
|
catch(Exception _ex) { }
|
||||||
|
}
|
||||||
|
|
||||||
|
protected BaseExternalWizard getWizard()
|
||||||
|
{
|
||||||
|
String s = "com.teamcenter.rac.ui.commands.saveas.SaveAsWizard";
|
||||||
|
return WizardExtensionHelper.getWizard(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getWizardTitle()
|
||||||
|
{
|
||||||
|
String s = null;
|
||||||
|
if(m_selectedCmp instanceof TCComponent)
|
||||||
|
{
|
||||||
|
Object aobj[] = {
|
||||||
|
((TCComponent)m_selectedCmp).getTypeComponent().getDisplayType()
|
||||||
|
};
|
||||||
|
s = MessageFormat.format(Messages.getString("saveAswizard.TITLE"), aobj);
|
||||||
|
}
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
|
private TCComponent getUnderlyingComponent(TCComponent tccomponent)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if(tccomponent.isRuntimeType())
|
||||||
|
return tccomponent.getUnderlyingComponent().isRuntimeType() ? null : tccomponent.getUnderlyingComponent();
|
||||||
|
}
|
||||||
|
catch(TCException tcexception)
|
||||||
|
{
|
||||||
|
Logger.getLogger(SaveASHandler.class).error(tcexception.getLocalizedMessage(), tcexception);
|
||||||
|
}
|
||||||
|
return tccomponent;
|
||||||
|
}
|
||||||
|
|
||||||
|
private InterfaceAIFComponent m_selectedCmp;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
DECOMPILATION REPORT
|
||||||
|
|
||||||
|
Decompiled from: C:\TC\Siemens\Teamcenter11\portal\plugins\com.teamcenter.rac.ui.commands_11000.2.0.jar
|
||||||
|
Total time: 29 ms
|
||||||
|
Jad reported messages/errors:
|
||||||
|
Exit status: 0
|
||||||
|
Caught exceptions:
|
||||||
|
*/
|
@ -0,0 +1,75 @@
|
|||||||
|
# @<COPYRIGHT>@
|
||||||
|
# ==================================================
|
||||||
|
# Copyright 2010.
|
||||||
|
# Siemens Product Lifecycle Management Software Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
# ==================================================
|
||||||
|
# @<COPYRIGHT>@
|
||||||
|
|
||||||
|
# Entries for NewBOWizard
|
||||||
|
#-----------------------------
|
||||||
|
wizard.TITLE = New Business Object
|
||||||
|
NewItemWizard.TITLE = New Item
|
||||||
|
NewFolderWizard.TITLE = New Folder
|
||||||
|
NewFormWizard.TITLE = New Form
|
||||||
|
NewTableRowWizard.TITLE = New Table Row
|
||||||
|
NewNameValueWizard.TITLE = New Name Value
|
||||||
|
|
||||||
|
General = General
|
||||||
|
Cleartext.TIP = Clear textbox
|
||||||
|
# Entries for create props pages
|
||||||
|
# ------------------------------
|
||||||
|
IdRevBlank.MSG = Leave {0} and {1} fields blank for auto-assign.
|
||||||
|
OneAttributeBlank.MSG = Leave {0} field blank for auto-assign.
|
||||||
|
createPage.TITLE=Object Create Information
|
||||||
|
createPage.DESCRIPTION=Define business object create information
|
||||||
|
|
||||||
|
# Entries for NewBOOperation
|
||||||
|
# ----------------------------
|
||||||
|
newBOOperation.NAME = New Business Object
|
||||||
|
creatingBO.MSG = Creating business object
|
||||||
|
|
||||||
|
# Entries for New Structure Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewStructureContextHandler_NewSCWizardTitle=New Structure Context
|
||||||
|
NewStructureContext_wrongSelection_TITLE=Error
|
||||||
|
NewStructureContext_wrongSelection_MESSAGE=Structure Context cannot be selected for this command.
|
||||||
|
|
||||||
|
# Entries for New Collaboration Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewCollaborationContextHandler_NewCCWizardTitle=New Collaboration Context
|
||||||
|
|
||||||
|
# Entries for the OpenOnCreatePanel
|
||||||
|
# ----------------------------------------
|
||||||
|
OpenOnCreatePanel_checkBoxTitle=Open On Create
|
||||||
|
CopyToClipboard_checkBoxTitle=Copy To Clipboard
|
||||||
|
|
||||||
|
# Entries for the MMSaveAsWizard
|
||||||
|
# ----------------------------------------
|
||||||
|
saveAswizard.TITLE =Save {0} As
|
||||||
|
toomanyObjects.MSG = Can not save more than one objects at same time.
|
||||||
|
saveAs.TITLE = Save As...
|
||||||
|
|
||||||
|
propertyWithoutSrcObject.MSG=Property page creation failed. Please contact your Administrator.
|
||||||
|
saveAsServiceNotAvailble.MEG=Save As Service initialization failed. Please contact your Administrator.
|
||||||
|
modelPopulationError.MESSAGE=Associated object's property page creation failed. Please contact your Administrator.
|
||||||
|
saveAsNotSupported.MESSAGE=Save As on {0} is not supported, because {0} is a runtime object.
|
||||||
|
invalidSelection.MESSAGE=Selected object is invalid for the Save As operation.
|
||||||
|
|
||||||
|
# Entries for the DeepCopyPage
|
||||||
|
# ----------------------------------------
|
||||||
|
objectColumn.TITLE= Object Name
|
||||||
|
dcAction.TITLE= Copy Option
|
||||||
|
relation.TITLE= Relation Name
|
||||||
|
|
||||||
|
# Entries for the Deep Copy Option
|
||||||
|
# ----------------------------------------
|
||||||
|
copyReference.OPTION= Reference Copy
|
||||||
|
copyAsObject.OPTION= Object Copy
|
||||||
|
noCopy.OPTION= No Copy
|
||||||
|
|
||||||
|
# Entries for EditPropertiesSWTHandler
|
||||||
|
# -------------------------------
|
||||||
|
editPropertyTask.MSG=Edit Properties...
|
||||||
|
|
||||||
|
|
@ -0,0 +1,75 @@
|
|||||||
|
# @<COPYRIGHT>@
|
||||||
|
# ==================================================
|
||||||
|
# Copyright 2010.
|
||||||
|
# Siemens Product Lifecycle Management Software Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
# ==================================================
|
||||||
|
# @<COPYRIGHT>@
|
||||||
|
|
||||||
|
# Entries for NewBOWizard
|
||||||
|
#-----------------------------
|
||||||
|
wizard.TITLE = \u65B0\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
NewItemWizard.TITLE = \u65B0\u5EFA\u96F6\u7EC4\u4EF6
|
||||||
|
NewFolderWizard.TITLE = \u65B0\u5EFA\u6587\u4EF6\u5939
|
||||||
|
NewFormWizard.TITLE = \u65B0\u5EFA\u8868\u5355
|
||||||
|
NewTableRowWizard.TITLE = \u65B0\u5EFA\u8868\u884C
|
||||||
|
NewNameValueWizard.TITLE = \u65B0\u5EFA\u540D\u79F0\u503C
|
||||||
|
|
||||||
|
General = \u5E38\u89C4
|
||||||
|
Cleartext.TIP = \u6E05\u9664\u6587\u672C\u6846
|
||||||
|
# Entries for create props pages
|
||||||
|
# ------------------------------
|
||||||
|
IdRevBlank.MSG = \u4FDD\u7559 {0}\u548C{1}\u5B57\u6BB5\u4E3A\u7A7A\u4EE5\u81EA\u52A8\u8D4B\u503C\u3002
|
||||||
|
OneAttributeBlank.MSG = \u4FDD\u7559 {0} \u5B57\u6BB5\u4E3A\u7A7A\u4EE5\u81EA\u52A8\u8D4B\u503C\u3002
|
||||||
|
createPage.TITLE=\u5BF9\u8C61\u521B\u5EFA\u4FE1\u606F
|
||||||
|
createPage.DESCRIPTION=\u5B9A\u4E49\u4E1A\u52A1\u5BF9\u8C61\u521B\u5EFA\u4FE1\u606F
|
||||||
|
|
||||||
|
# Entries for NewBOOperation
|
||||||
|
# ----------------------------
|
||||||
|
newBOOperation.NAME = \u65B0\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
creatingBO.MSG = \u6B63\u5728\u521B\u5EFA\u4E1A\u52A1\u5BF9\u8C61
|
||||||
|
|
||||||
|
# Entries for New Structure Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewStructureContextHandler_NewSCWizardTitle=\u65B0\u5EFA\u7ED3\u6784\u5173\u8054
|
||||||
|
NewStructureContext_wrongSelection_TITLE=\u9519\u8BEF
|
||||||
|
NewStructureContext_wrongSelection_MESSAGE=\u65E0\u6CD5\u4E3A\u6B64\u547D\u4EE4\u9009\u62E9\u7ED3\u6784\u5173\u8054\u3002
|
||||||
|
|
||||||
|
# Entries for New Collaboration Context wizard
|
||||||
|
# ----------------------------------------
|
||||||
|
NewCollaborationContextHandler_NewCCWizardTitle=\u65B0\u5EFA\u534F\u540C\u5173\u8054
|
||||||
|
|
||||||
|
# Entries for the OpenOnCreatePanel
|
||||||
|
# ----------------------------------------
|
||||||
|
OpenOnCreatePanel_checkBoxTitle=\u521B\u5EFA\u540E\u6253\u5F00
|
||||||
|
CopyToClipboard_checkBoxTitle=\u590D\u5236\u5230\u526A\u8D34\u677F
|
||||||
|
|
||||||
|
# Entries for the MMSaveAsWizard
|
||||||
|
# ----------------------------------------
|
||||||
|
saveAswizard.TITLE =\u5C06{0}\u53E6\u5B58\u4E3A
|
||||||
|
toomanyObjects.MSG = \u4E0D\u80FD\u540C\u65F6\u4FDD\u5B58\u591A\u4E2A\u5BF9\u8C61\u3002
|
||||||
|
saveAs.TITLE = \u53E6\u5B58\u4E3A...
|
||||||
|
|
||||||
|
propertyWithoutSrcObject.MSG=\u672A\u80FD\u521B\u5EFA\u5C5E\u6027\u9875\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
saveAsServiceNotAvailble.MEG=\u672A\u80FD\u8FDB\u884C\u201C\u53E6\u5B58\u4E3A\u670D\u52A1\u201D\u521D\u59CB\u5316\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
modelPopulationError.MESSAGE=\u672A\u80FD\u521B\u5EFA\u5173\u8054\u5BF9\u8C61\u7684\u5C5E\u6027\u9875\u3002\u8BF7\u4E0E\u7BA1\u7406\u5458\u8054\u7CFB\u3002
|
||||||
|
saveAsNotSupported.MESSAGE={0} \u4E2D\u4E0D\u652F\u6301\u201C\u53E6\u5B58\u4E3A\u201D\u64CD\u4F5C\uFF0C\u56E0\u4E3A {0} \u662F\u8FD0\u884C\u65F6\u5BF9\u8C61\u3002
|
||||||
|
invalidSelection.MESSAGE=\u9009\u5B9A\u5BF9\u8C61\u5BF9\u4E8E\u201C\u53E6\u5B58\u4E3A\u201D\u64CD\u4F5C\u65E0\u6548\u3002
|
||||||
|
|
||||||
|
# Entries for the DeepCopyPage
|
||||||
|
# ----------------------------------------
|
||||||
|
objectColumn.TITLE= \u5BF9\u8C61\u540D\u79F0
|
||||||
|
dcAction.TITLE= \u590D\u5236\u9009\u9879
|
||||||
|
relation.TITLE= \u5173\u7CFB\u540D\u79F0
|
||||||
|
|
||||||
|
# Entries for the Deep Copy Option
|
||||||
|
# ----------------------------------------
|
||||||
|
copyReference.OPTION= \u5F15\u7528\u590D\u5236
|
||||||
|
copyAsObject.OPTION= \u5BF9\u8C61\u590D\u5236
|
||||||
|
noCopy.OPTION= \u4E0D\u590D\u5236
|
||||||
|
|
||||||
|
# Entries for EditPropertiesSWTHandler
|
||||||
|
# -------------------------------
|
||||||
|
editPropertyTask.MSG=\u7F16\u8F91\u5C5E\u6027...
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
package cn.com.origin.autocode.handlers;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItem;
|
||||||
|
|
||||||
|
public class test {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class JFomBZJBean {
|
||||||
|
private List<String> zhName = new ArrayList<String>();
|
||||||
|
private List<String> enName = new ArrayList<String>();
|
||||||
|
private List<String> lovName = new ArrayList<String>();
|
||||||
|
|
||||||
|
|
||||||
|
public List<String> getLovName() {
|
||||||
|
return lovName;
|
||||||
|
}
|
||||||
|
public void setLovName(List<String> lovName) {
|
||||||
|
this.lovName = lovName;
|
||||||
|
}
|
||||||
|
public List<String> getZhName() {
|
||||||
|
return zhName;
|
||||||
|
}
|
||||||
|
public void setZhName(List<String> zhName) {
|
||||||
|
this.zhName = zhName;
|
||||||
|
}
|
||||||
|
public List<String> getEnName() {
|
||||||
|
return enName;
|
||||||
|
}
|
||||||
|
public void setEnName(List<String> enName) {
|
||||||
|
this.enName = enName;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,114 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class JFomBean {
|
||||||
|
|
||||||
|
private String itemType ;
|
||||||
|
private Boolean isHaveUnit = false;
|
||||||
|
|
||||||
|
//private List<String> relPropList = new ArrayList<String>(); //真实属性汇总
|
||||||
|
private List<String> disPropList = new ArrayList<String>(); //显示名称汇总
|
||||||
|
private List<String> itemRelPropList = new ArrayList<String>(); //对象真实属性
|
||||||
|
//private List<String> itemDisPropList = new ArrayList<String>(); //对象显示名称
|
||||||
|
private List<String> revRelPropList = new ArrayList<String>(); //版本真实属性
|
||||||
|
//private List<String> revDisPropList = new ArrayList<String>(); //版本显示属性
|
||||||
|
private List<String> formRelPropList = new ArrayList<String>(); //表单真实属性
|
||||||
|
//private List<String> formDisPropList = new ArrayList<String>(); //表单显示属性
|
||||||
|
private List<String> lovPropName = new ArrayList<String>();//属性是否关联的LOV的名字
|
||||||
|
|
||||||
|
private List<String> propType = new ArrayList<String>(); //属性的类型
|
||||||
|
|
||||||
|
private List<String> propIsMust = new ArrayList<String>(); //属性是否必要
|
||||||
|
|
||||||
|
private List<String> defaultValue = new ArrayList<>(); //默认属性
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public List<String> getDefaultValue() {
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
public void setDefaultValue(List<String> defaultValue) {
|
||||||
|
this.defaultValue = defaultValue;
|
||||||
|
}
|
||||||
|
public List<String> getPropIsMust() {
|
||||||
|
return propIsMust;
|
||||||
|
}
|
||||||
|
public void setPropIsMust(List<String> propIsMust) {
|
||||||
|
this.propIsMust = propIsMust;
|
||||||
|
}
|
||||||
|
public List<String> getPropType() {
|
||||||
|
return propType;
|
||||||
|
}
|
||||||
|
public void setPropType(List<String> propType) {
|
||||||
|
this.propType = propType;
|
||||||
|
}
|
||||||
|
public List<String> getLovPropName() {
|
||||||
|
return lovPropName;
|
||||||
|
}
|
||||||
|
public void setLovPropName(List<String> lovPropName) {
|
||||||
|
this.lovPropName = lovPropName;
|
||||||
|
}
|
||||||
|
public String getItemType() {
|
||||||
|
return itemType;
|
||||||
|
}
|
||||||
|
public List<String> getDisPropList() {
|
||||||
|
return disPropList;
|
||||||
|
}
|
||||||
|
public void setDisPropList(List<String> disPropList) {
|
||||||
|
this.disPropList = disPropList;
|
||||||
|
}
|
||||||
|
public void setItemType(String itemType) {
|
||||||
|
this.itemType = itemType;
|
||||||
|
}
|
||||||
|
public Boolean getIsHaveUnit() {
|
||||||
|
return isHaveUnit;
|
||||||
|
}
|
||||||
|
public void setIsHaveUnit(Boolean isHaveUnit) {
|
||||||
|
this.isHaveUnit = isHaveUnit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<String> getItemRelPropList() {
|
||||||
|
return itemRelPropList;
|
||||||
|
}
|
||||||
|
public void setItemRelPropList(List<String> itemRelPropList) {
|
||||||
|
this.itemRelPropList = itemRelPropList;
|
||||||
|
}
|
||||||
|
// public List<String> getItemDisPropList() {
|
||||||
|
// return itemDisPropList;
|
||||||
|
// }
|
||||||
|
// public void setItemDisPropList(List<String> itemDisPropList) {
|
||||||
|
// this.itemDisPropList = itemDisPropList;
|
||||||
|
// }
|
||||||
|
public List<String> getRevRelPropList() {
|
||||||
|
return revRelPropList;
|
||||||
|
}
|
||||||
|
public void setRevRelPropList(List<String> revRelPropList) {
|
||||||
|
this.revRelPropList = revRelPropList;
|
||||||
|
}
|
||||||
|
// public List<String> getRevDisPropList() {
|
||||||
|
// return revDisPropList;
|
||||||
|
// }
|
||||||
|
// public void setRevDisPropList(List<String> revDisPropList) {
|
||||||
|
// this.revDisPropList = revDisPropList;
|
||||||
|
// }
|
||||||
|
public List<String> getFormRelPropList() {
|
||||||
|
return formRelPropList;
|
||||||
|
}
|
||||||
|
public void setFormRelPropList(List<String> formRelPropList) {
|
||||||
|
this.formRelPropList = formRelPropList;
|
||||||
|
}
|
||||||
|
// public List<String> getFormDisPropList() {
|
||||||
|
// return formDisPropList;
|
||||||
|
// }
|
||||||
|
// public void setFormDisPropList(List<String> formDisPropList) {
|
||||||
|
// this.formDisPropList = formDisPropList;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class JFomLovBean {
|
||||||
|
|
||||||
|
private List<String> valueList = new ArrayList<String>();
|
||||||
|
private List<String> disValueList = new ArrayList<String>();
|
||||||
|
|
||||||
|
public List<String> getValueList() {
|
||||||
|
return valueList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValueList(List<String> valueList) {
|
||||||
|
this.valueList = valueList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getDisValueList() {
|
||||||
|
return disValueList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisValueList(List<String> disValueList) {
|
||||||
|
this.disValueList = disValueList;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,295 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.kernel.TCComponent;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentDataset;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentFormType;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItemRevisionType;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItemType;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentTcFile;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCPreferenceService;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.util.FileUtility;
|
||||||
|
|
||||||
|
public class JFomMethodUtil {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下载文件
|
||||||
|
*
|
||||||
|
* @param comps
|
||||||
|
* @return
|
||||||
|
* @throws TCException
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
public static String downLoadFile(TCComponent comp) {
|
||||||
|
if (comp == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
String value = "";
|
||||||
|
String tempPath = System.getenv("TEMP");
|
||||||
|
// MessageBox.post(" tempPath =
|
||||||
|
// "+tempPath,"INFO",MessageBox.INFORMATION);
|
||||||
|
if (tempPath == null) {
|
||||||
|
tempPath = "";
|
||||||
|
} else if (!tempPath.endsWith("\\")) {
|
||||||
|
tempPath = tempPath + "\\";
|
||||||
|
}
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
||||||
|
// for(TCComponent comp : comps){
|
||||||
|
try {
|
||||||
|
if (comp instanceof TCComponentDataset) {
|
||||||
|
TCComponentTcFile[] tcFiles = ((TCComponentDataset) comp)
|
||||||
|
.getTcFiles();
|
||||||
|
File file = null;
|
||||||
|
if (tcFiles != null && tcFiles.length != 0) {
|
||||||
|
file = tcFiles[0].getFmsFile();
|
||||||
|
String fileName = file.getName();
|
||||||
|
String fileDix = fileName.substring(
|
||||||
|
fileName.lastIndexOf("."), fileName.length());
|
||||||
|
fileName = tempPath + sdf.format(new Date()) + fileDix;
|
||||||
|
File dirFile = new File(fileName);
|
||||||
|
FileUtility.copyFile(file, dirFile);
|
||||||
|
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (TCException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (IOException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取首选项的值
|
||||||
|
* @param prefName
|
||||||
|
* @param session
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getOptionValue(String prefName, TCSession session) {
|
||||||
|
String value = null;
|
||||||
|
TCPreferenceService service = session.getPreferenceService();
|
||||||
|
value = service.getString(TCPreferenceService.TC_preference_site, prefName);
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取mapping表
|
||||||
|
* name:value
|
||||||
|
* @param prefName
|
||||||
|
* @param session
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static HashMap<String, String> getMapping(String prefName, TCSession session) {
|
||||||
|
HashMap<String, String> map = new HashMap<String, String>();
|
||||||
|
TCPreferenceService service = session.getPreferenceService();
|
||||||
|
String[] prefValues = service.getStringArray(TCPreferenceService.TC_preference_site, prefName);
|
||||||
|
if (prefValues != null) {
|
||||||
|
for (String value : prefValues) {
|
||||||
|
String[] values = value.split("\\:");
|
||||||
|
if (values != null && values.length == 2)
|
||||||
|
map.put(values[0], values[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取BZJ的FORM属性对照表
|
||||||
|
* TYPE|ZH:CN/ZH:CN/zh:en
|
||||||
|
* @param prefName
|
||||||
|
* @param session
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static HashMap<String,JFomBZJBean> getBZJFormMapping(String prefName, TCSession session){
|
||||||
|
HashMap<String,JFomBZJBean> formMap = new HashMap<String, JFomBZJBean>();
|
||||||
|
//HashMap<String, String> map = new HashMap<String, String>();
|
||||||
|
TCPreferenceService service = session.getPreferenceService();
|
||||||
|
String[] prefValues = service.getStringArray(TCPreferenceService.TC_preference_site, prefName);
|
||||||
|
if (prefValues != null) {
|
||||||
|
for (String value : prefValues) {
|
||||||
|
JFomBZJBean bean = new JFomBZJBean();
|
||||||
|
List<String> zhNameList = new ArrayList<String>();
|
||||||
|
List<String> enNameList = new ArrayList<String>();
|
||||||
|
List<String> lovNameList = new ArrayList<String>();
|
||||||
|
String keyStr = null;
|
||||||
|
String[] values = value.split("\\|");
|
||||||
|
if (values != null && values.length == 2){
|
||||||
|
keyStr = values[0];
|
||||||
|
String[] values2 = values[1].split("\\/");
|
||||||
|
if(values2!=null && values2.length>0){
|
||||||
|
for(String names : values2){
|
||||||
|
String[] values3 = names.split("\\:");
|
||||||
|
if(values3!=null && values3.length==2){
|
||||||
|
zhNameList.add(values3[0]);
|
||||||
|
enNameList.add(values3[1]);
|
||||||
|
lovNameList.add("");
|
||||||
|
}else if(values3!=null && values3.length==3){
|
||||||
|
zhNameList.add(values3[0]);
|
||||||
|
enNameList.add(values3[1]);
|
||||||
|
lovNameList.add(values3[2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bean.setZhName(zhNameList);
|
||||||
|
bean.setEnName(enNameList);
|
||||||
|
bean.setLovName(lovNameList);
|
||||||
|
formMap.put(keyStr, bean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return formMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static List<JFomBean> getTcPropInfo(String prefName, TCSession session) {
|
||||||
|
List<JFomBean> beanList = new ArrayList<JFomBean>();
|
||||||
|
TCPreferenceService service = session.getPreferenceService();
|
||||||
|
// Item@true@Item,prop1:属性1/prop2:属性2|Rev,prop1:属性1/prop2:属性2|Form,prop1:属性1/prop2:属性2
|
||||||
|
String[] prefValues = service.getStringArray(TCPreferenceService.TC_preference_site, prefName);
|
||||||
|
if (prefValues != null) {
|
||||||
|
for (String value : prefValues) {
|
||||||
|
JFomBean bean = new JFomBean();
|
||||||
|
List<String> propDisList = new ArrayList<String>();
|
||||||
|
List<String> lovList = new ArrayList<String>();
|
||||||
|
List<String> propTypeList = new ArrayList<>();
|
||||||
|
List<String> propIsMustList = new ArrayList<>();
|
||||||
|
List<String> propDefaultValueList = new ArrayList<>();
|
||||||
|
|
||||||
|
String[] values1 = value.split("@");
|
||||||
|
if (values1.length != 3) {
|
||||||
|
return beanList;
|
||||||
|
}
|
||||||
|
// 设置类型
|
||||||
|
bean.setItemType(values1[0]);
|
||||||
|
if (values1[1].trim().toUpperCase().endsWith("TRUE")) {
|
||||||
|
// 设置单位
|
||||||
|
bean.setIsHaveUnit(true);
|
||||||
|
}
|
||||||
|
// 分割属性
|
||||||
|
String[] values2 = values1[2].split("\\|");
|
||||||
|
if (values2.length != 3) {
|
||||||
|
return beanList;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 对象属性
|
||||||
|
String[] items = values2[0].split(",");
|
||||||
|
if (items != null && items.length == 2) {
|
||||||
|
String[] props1 = items[1].split("\\/");
|
||||||
|
if (props1 != null && props1.length > 0) {
|
||||||
|
List<String> propRelList = new ArrayList<String>();
|
||||||
|
|
||||||
|
for (String prop : props1) {
|
||||||
|
String[] props = prop.split("\\:");
|
||||||
|
if (props != null && props.length == 5) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add("");
|
||||||
|
}else if(props != null && props.length == 6){
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add(props[5]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bean.setItemRelPropList(propRelList);
|
||||||
|
// bean.setDisPropList(propDisList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 版本属性
|
||||||
|
String[] revs = values2[1].split(",");
|
||||||
|
if (revs != null && revs.length == 2) {
|
||||||
|
String[] props1 = revs[1].split("\\/");
|
||||||
|
if (props1 != null && props1.length > 0) {
|
||||||
|
List<String> propRelList = new ArrayList<String>();
|
||||||
|
// List<String> propDisList = new ArrayList<String>();
|
||||||
|
for (String prop : props1) {
|
||||||
|
String[] props = prop.split("\\:");
|
||||||
|
if (props != null && props.length == 5) {
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add("");
|
||||||
|
}else if (props != null && props.length == 6) {
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add(props[5]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bean.setRevRelPropList(propRelList);
|
||||||
|
// bean.setDisPropList(propDisList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 表单属性
|
||||||
|
String[] forms = values2[2].split(",");
|
||||||
|
if (forms != null && forms.length == 2) {
|
||||||
|
String[] props1 = forms[1].split("\\/");
|
||||||
|
if (props1 != null && props1.length > 0) {
|
||||||
|
List<String> propRelList = new ArrayList<String>();
|
||||||
|
// List<String> propDisList = new ArrayList<String>();
|
||||||
|
for (String prop : props1) {
|
||||||
|
String[] props = prop.split("\\:");
|
||||||
|
if (props != null && props.length == 5) {
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add("");
|
||||||
|
}else if (props != null && props.length == 6) {
|
||||||
|
|
||||||
|
propRelList.add(props[0]);
|
||||||
|
propDisList.add(props[1]);
|
||||||
|
propTypeList.add(props[2]);
|
||||||
|
propIsMustList.add(props[3]);
|
||||||
|
propDefaultValueList.add(props[4]);
|
||||||
|
lovList.add(props[5]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bean.setFormRelPropList(propRelList);
|
||||||
|
|
||||||
|
// bean.setDisPropList(propDisList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bean.setLovPropName(lovList);
|
||||||
|
bean.setDisPropList(propDisList);
|
||||||
|
bean.setPropType(propTypeList);
|
||||||
|
bean.setPropIsMust(propIsMustList);
|
||||||
|
bean.setDefaultValue(propDefaultValueList);
|
||||||
|
beanList.add(bean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return beanList;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
public class JFomUtil {
|
||||||
|
//存放配置文件的PUID
|
||||||
|
public static final String AUTOCODE_UID_REF ="Autocode_OptionFile_option";
|
||||||
|
|
||||||
|
|
||||||
|
//type{}unit{}props
|
||||||
|
public static final String ITEM_TYPE_PROP_MAPPING_REF ="Cust_jfom_type_prop_mapping";
|
||||||
|
public static final String PROP_MAPPING_REF = "Cust_bzj_prop_mapping";
|
||||||
|
//中文和英文对照
|
||||||
|
public static final String FORM_TYPE_PROP_MAPPING = "Cust_form_type_prop_mapping";
|
||||||
|
//属性对照
|
||||||
|
public static final String FORM_PROPS_MAPPING = "Cust_form_mapping";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String JF3_CP_TYPE ="JF3_CP";//成品
|
||||||
|
public static final String JF3_BCP_TYPE ="JF3_BCP";//半成品
|
||||||
|
public static final String JF3_YCL_TYPE ="JF3_YCL";//原材料
|
||||||
|
public static final String JF3_BZJ_TYPE ="JF3_BZJ";//标准件
|
||||||
|
|
||||||
|
public static final String JF3_CP_FLMC = "jf3_CPFlmc"; //成品分类名称(1)
|
||||||
|
public static final String JF3_CP_XMDH = "jf3_xmdh"; //成品项目代号(2)
|
||||||
|
public static final String JF3_D_FLMC = "jf3_dflm"; //大分类(1)
|
||||||
|
public static final String JF3_X_FLMC = "jf3_xflm"; //小分类(2)
|
||||||
|
|
||||||
|
public static final String JF3_BZJFL_PROP = "jf3_BZJfl";//标准件分类(1)
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
import org.eclipse.swt. * ;
|
||||||
|
import org.eclipse.swt.events. * ;
|
||||||
|
import org.eclipse.swt.layout. * ;
|
||||||
|
import org.eclipse.swt.widgets. * ;
|
||||||
|
|
||||||
|
public class Snippet251 {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Display display = new Display();
|
||||||
|
final Shell shell = new Shell(display);
|
||||||
|
shell.setLayout( new FillLayout());
|
||||||
|
|
||||||
|
Button open = new Button(shell, SWT.PUSH);
|
||||||
|
open.setText( " Open Dialog " );
|
||||||
|
open.addSelectionListener( new SelectionAdapter() {
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
final Shell dialog = new Shell(shell, SWT.DIALOG_TRIM);
|
||||||
|
dialog.setLayout( new GridLayout( 3 , false ));
|
||||||
|
|
||||||
|
final DateTime calendar = new DateTime(dialog, SWT.CALENDAR
|
||||||
|
| SWT.BORDER);
|
||||||
|
final DateTime date = new DateTime(dialog, SWT.DATE | SWT.SHORT);
|
||||||
|
final DateTime time = new DateTime(dialog, SWT.TIME | SWT.SHORT);
|
||||||
|
|
||||||
|
new Label(dialog, SWT.NONE);
|
||||||
|
new Label(dialog, SWT.NONE);
|
||||||
|
Button ok = new Button(dialog, SWT.PUSH);
|
||||||
|
ok.setText( " OK " );
|
||||||
|
ok.setLayoutData( new GridData(SWT.FILL, SWT.CENTER, false ,
|
||||||
|
false ));
|
||||||
|
ok.addSelectionListener( new SelectionAdapter() {
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
System.out
|
||||||
|
.println( " Calendar date selected (MM/DD/YYYY) = "
|
||||||
|
+ (calendar.getMonth() + 1 )
|
||||||
|
+ " / "
|
||||||
|
+ calendar.getDay()
|
||||||
|
+ " / "
|
||||||
|
+ calendar.getYear());
|
||||||
|
System.out.println( " Date selected (MM/YYYY) = "
|
||||||
|
+ (date.getMonth() + 1 ) + " / " + date.getYear());
|
||||||
|
System.out.println( " Time selected (HH:MM) = "
|
||||||
|
+ time.getHours() + " : " + time.getMinutes());
|
||||||
|
dialog.close();
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
dialog.setDefaultButton(ok);
|
||||||
|
dialog.pack();
|
||||||
|
dialog.open();
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
shell.pack();
|
||||||
|
shell.open();
|
||||||
|
|
||||||
|
while ( ! shell.isDisposed()) {
|
||||||
|
if ( ! display.readAndDispatch())
|
||||||
|
display.sleep();
|
||||||
|
}
|
||||||
|
display.dispose();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,203 @@
|
|||||||
|
package cn.com.origin.autocode.jfom.util;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.sf.json.JSONArray;
|
||||||
|
|
||||||
|
import org.apache.axiom.om.OMAbstractFactory;
|
||||||
|
import org.apache.axiom.om.OMElement;
|
||||||
|
import org.apache.axiom.om.OMFactory;
|
||||||
|
import org.apache.axiom.om.OMNamespace;
|
||||||
|
import org.apache.axis2.AxisFault;
|
||||||
|
import org.apache.axis2.addressing.EndpointReference;
|
||||||
|
import org.apache.axis2.client.Options;
|
||||||
|
import org.apache.axis2.client.ServiceClient;
|
||||||
|
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
|
import com.teamcenter.rac.kernel.TCAccessControlService;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponent;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItem;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentUser;
|
||||||
|
import com.teamcenter.rac.kernel.TCComponentUserType;
|
||||||
|
import com.teamcenter.rac.kernel.TCException;
|
||||||
|
import com.teamcenter.rac.kernel.TCPreferenceService;
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.TCUserService;
|
||||||
|
|
||||||
|
public class SoaServerUtil {
|
||||||
|
|
||||||
|
public static TCPreferenceService preferenceService;
|
||||||
|
public static String priverUserID;
|
||||||
|
public static String webServiceURL;
|
||||||
|
|
||||||
|
static {
|
||||||
|
try {
|
||||||
|
|
||||||
|
if (preferenceService == null) {
|
||||||
|
preferenceService = ((TCSession) AIFUtility
|
||||||
|
.getCurrentApplication().getSession())
|
||||||
|
.getPreferenceService();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (priverUserID == null) {
|
||||||
|
priverUserID = preferenceService.getString(
|
||||||
|
TCPreferenceService.TC_preference_site,
|
||||||
|
"Autocode_PriverUser_ID");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (webServiceURL == null) {
|
||||||
|
webServiceURL = preferenceService.getString(
|
||||||
|
TCPreferenceService.TC_preference_site,
|
||||||
|
"Autocode_SendClassServer_URL");
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void sendToClass(String wsoPUID, String classID, String json) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
ServiceClient sc = new ServiceClient();
|
||||||
|
Options opts = new Options();
|
||||||
|
String url = webServiceURL;// "http://10.201.5.203:19090/ErpWebService.asmx?WSDL";
|
||||||
|
System.out.println("url="+url);
|
||||||
|
EndpointReference end = new EndpointReference(url);
|
||||||
|
opts.setTo(end);
|
||||||
|
opts.setAction("SendToClass");
|
||||||
|
sc.setOptions(opts);
|
||||||
|
|
||||||
|
OMFactory fac = OMAbstractFactory.getOMFactory();
|
||||||
|
OMNamespace omNs = fac.createOMNamespace("http://tempuri.org/", "");
|
||||||
|
OMElement method = fac.createOMElement("SendToClass", omNs);
|
||||||
|
OMElement value = fac.createOMElement("wsoPuiid", omNs);
|
||||||
|
value.setText(wsoPUID);
|
||||||
|
OMElement value1 = fac.createOMElement("classID", omNs);
|
||||||
|
value1.setText(classID);
|
||||||
|
OMElement value2 = fac.createOMElement("JsonContainer", omNs);
|
||||||
|
// "[{\"value\":\"1\",\"propertyID\":-500003},{\"value\":\"1\",\"propertyID\":-500011}]"
|
||||||
|
value2.setText(json);
|
||||||
|
|
||||||
|
method.addChild(value);
|
||||||
|
method.addChild(value1);
|
||||||
|
method.addChild(value2);
|
||||||
|
|
||||||
|
OMElement res = sc.sendReceive(method);
|
||||||
|
|
||||||
|
res.getFirstElement().getText();
|
||||||
|
System.out.println(res.getFirstElement().getText());
|
||||||
|
} catch (AxisFault e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String objectToJson(List<ClassProperty> props) {
|
||||||
|
String str = null;
|
||||||
|
try {
|
||||||
|
JSONArray json = JSONArray.fromObject(props);// 将java对象转换为json对象
|
||||||
|
str = json.toString();// 将json对象转换为字符串
|
||||||
|
System.out.println("JSON =>" + str);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void grantReadPrivilege(TCSession tcSession,
|
||||||
|
TCComponent tccomponent) {
|
||||||
|
try {
|
||||||
|
TCAccessControlService accessControlService = tcSession
|
||||||
|
.getTCAccessControlService();
|
||||||
|
TCComponentUserType type = (TCComponentUserType) tcSession
|
||||||
|
.getTypeComponent("User");
|
||||||
|
TCComponentUser user = type.find(priverUserID);// 2135
|
||||||
|
|
||||||
|
if (user == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (tcSession.getUser().equals(user)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
String[] as2 = new String[] { "READ" };
|
||||||
|
|
||||||
|
if (tccomponent instanceof TCComponentItemRevision) {
|
||||||
|
TCComponentItem tempItem = ((TCComponentItemRevision) tccomponent)
|
||||||
|
.getItem();
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tempItem, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tccomponent, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
} else {
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tccomponent, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
}
|
||||||
|
} catch (TCException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void grantWritePrivilege(TCSession tcSession,
|
||||||
|
TCComponent tccomponent) {
|
||||||
|
try {
|
||||||
|
TCAccessControlService accessControlService = tcSession
|
||||||
|
.getTCAccessControlService();
|
||||||
|
TCComponentUserType type = (TCComponentUserType) tcSession
|
||||||
|
.getTypeComponent("User");
|
||||||
|
|
||||||
|
TCComponentUser user = type.find(priverUserID);// 2135
|
||||||
|
if (user == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (tcSession.getUser().equals(user)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
String[] as2 = new String[] { "READ", "WRITE", "DELETE" };
|
||||||
|
|
||||||
|
if (tccomponent instanceof TCComponentItemRevision) {
|
||||||
|
TCComponentItem tempItem = ((TCComponentItemRevision) tccomponent)
|
||||||
|
.getItem();
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tempItem, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tccomponent, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
} else {
|
||||||
|
openByPass(tcSession);
|
||||||
|
accessControlService.grantPrivilege(tccomponent, user, as2);
|
||||||
|
closeByPass(tcSession);
|
||||||
|
}
|
||||||
|
} catch (TCException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void openByPass(TCSession session) throws TCException {
|
||||||
|
TCUserService userservice = session.getUserService();
|
||||||
|
Object[] obj = new Object[1];
|
||||||
|
obj[0] = "origin";
|
||||||
|
userservice.call("ORIGIN_set_bypass", obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void closeByPass(TCSession session) throws TCException {
|
||||||
|
TCUserService userservice = session.getUserService();
|
||||||
|
Object[] obj = new Object[1];
|
||||||
|
obj[0] = "origin";
|
||||||
|
userservice.call("ORIGIN_close_bypass", obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|