PLM之家PLMHome-国产软件践行者

谁有开发过这个override Teamcenter commands 求教。。

  [复制链接]

2018-11-27 09:20:52 3721 3

chris 发表于 2017-11-2 16:23:56 |阅读模式

chris 楼主

2017-11-2 16:23:56

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
  谁有开发过这个override Teamcenter commands 求教。。
4 F. r# S1 x( o& |file:///C:\Users\Admin\AppData\Roaming\Tencent\Users\1092333185\QQ\WinTemp\RichOle\){}F_KHAUSEAB9(NXBGE2$5.pngfile:///C:\Users\Admin\AppData\Roaming\Tencent\Users\1092333185\QQ\WinTemp\RichOle\){}F_KHAUSEAB9(NXBGE2$5.png<?xml version="1.0" encoding="UTF-8"?>8 v5 \2 D! o" a. i
<?eclipse version="3.4"?>
9 S6 R- q, |6 H$ f<plUGin>
8 ?% g2 a' k  m. K8 D                           . O3 M0 ^; H2 l  `% i
        <extension point="org.eclipse.ui.commands">
3 I3 U1 b0 _2 I/ e) h. E          
6 |  ~) K: h5 o           <category name="Sample Category" id="com.mycom.myitem.commands.category" />* m6 n# ~  d; y. p' ^
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category": f8 g  \* z0 N: Z6 C
                        id="com.mycom.myitem.commands.sampleCommand"/>. m. g2 K9 F9 ?" j( b  G* n9 x
         ; E" R1 Y  }$ p& W0 e8 T+ H
   </extension>
: q$ l0 e( K: c" h, X
6 M1 K  `, ^* {   <extension point="org.eclipse.ui.handlers">. V7 u4 X2 x8 h3 ~
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>( n* F3 b" Q7 {' c# N4 R6 V9 N

* Y" N- X& g9 Z, z1 g/ @' k- t- Y      </extension>6 J# e( Z9 N* U: U$ e

& }( J. o# u; l$ I0 m: \" B( o3 G   <extension point="org.eclipse.ui.handlers">2 U1 L& X7 j! `
            
  ?4 z% |, x& ~  c                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">; ~. V# x  u. L- e# d  W7 R
                        <activeWhen>3 _2 n/ L. N+ A
                                <iterate ifEmpty="false">
0 C2 f5 ?" Q$ F( d6 m                                        <and>
2 s6 ?/ }2 ^' p8 \! ~                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
8 T, U. c8 F" X5 A% ~" @1 }                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
( b& i/ ]/ }( G0 y: {$ ?                                                </adapt>
. V  v6 S* M/ a( B$ m& Y1 f) |                                        </and># [* k& a# O( F  p6 K& p! k, H& G7 t- b
                                </iterate>5 H# y$ H9 V) a$ }+ `9 ^
                        </activeWhen>* c+ ^# l2 q+ s) A7 `( m
                </handler>+ V5 ~! W* W& n2 L( [9 s: Q
   </extension>% \9 K$ G7 l. Q' \  u
0 [& T  O6 Y) L9 j2 W8 s+ f5 A8 J
        <extension point="org.eclipse.ui.bindings">
2 E) J' ?3 B# s$ `' S+ v4 ?                        <key commandId="com.mycom.myitem.commands.sampleCommand". m% k9 J8 g5 O, n
                                contextId="org.eclipse.ui.contexts.window"
3 U9 m8 i3 u" t# B" K  w                                sequence="M1+6"
$ {* D& f% I0 O                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">+ ^+ u9 ]/ C3 a$ ]8 ~
                           </key>1 ~; }1 @8 L; w) n
           </extension>
* _7 ^3 s9 s6 `                          
  l) Q6 W5 {, m) [% r       
; r% g# T2 a* Z: M6 J: v' |</plugin>2 X* z% O+ \6 R" E& Q; _9 _; x

( s3 O9 A0 A& x2 x6 ^0 Q3 q9 ^0 R, m
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

全部回复3

pzc1350 发表于 2018-11-26 21:12:07

pzc1350 板凳

2018-11-26 21:12:07

<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin>     <extension          point="org.eclipse.ui.commands">       <category             name="Sample Category"             id="handler.commands.category">       </category>       <command             name="Sample Command"             categoryId="handler.commands.category"             id="handler.commands.sampleCommand">       </command>    </extension>    <extension          point="org.eclipse.ui.handlers">       <handler             commandId="handler.commands.sampleCommand"             class="handler.handlers.SampleHandler">       </handler>    </extension>    <extension          point="org.eclipse.ui.bindings">       <key             commandId="handler.commands.sampleCommand"             contextId="org.eclipse.ui.contexts.window"             sequence="M1+6"             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">       </key>    </extension>    <extension          point="org.eclipse.ui.menus">       <menuContribution             locationURI="menurg.eclipse.ui.main.menu?after=additions">          <menu                label="Sample Menu"                mnemonic="M"                id="handler.menus.sampleMenu">             <command                   commandId="handler.commands.sampleCommand"                   mnemonic="S"                   id="handler.menus.sampleCommand">             </command>          </menu>       </menuContribution>       <menuContribution             locationURI="toolbarrg.eclipse.ui.main.toolbar?after=additions">          <toolbar                id="handler.toolbars.sampleToolbar">             <command                   commandId="handler.commands.sampleCommand"                   icon="icons/sample.gif"                   tooltip="Say hello world"                   id="handler.toolbars.sampleCommand">             </command>          </toolbar>       </menuContribution>    </extension>  </plugin>
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

chris 发表于 2018-11-27 09:20:52

chris 地板

2018-11-27 09:20:52

pzc1350 发表于 2018-11-26 21:12
6 W( y3 n! w* L- h/ _7 A1 I6 ~...

5 X- g; \, G0 p) X2 L1 N2 p8 W这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了