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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
6 c4 D7 g) l) Y6 A1 K! ~8 }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"?>3 L3 y" C, G* L5 \- F( W) [" U3 A
<?eclipse version="3.4"?>' V0 c* @# R0 h) a4 @$ \4 b
<plUGin>3 m0 E3 F, I) K0 \5 ^
                           8 g% J+ O) [# {  L; z' `
        <extension point="org.eclipse.ui.commands">
9 R; y5 ], l* B# T4 x          ! g9 c& c/ g  j" ~' K9 ]
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
& Y6 H, W+ R& n/ r8 D9 d           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"+ ?& x  X+ X7 G+ r
                        id="com.mycom.myitem.commands.sampleCommand"/>1 b- W, e# ~6 |- t! ~
         , o1 x" _; P1 p) J: E5 C# x, I9 _
   </extension>! n5 x/ ?" D- b8 W, U  {7 t

4 y1 U, B4 c: E   <extension point="org.eclipse.ui.handlers">
8 z1 D7 _. b8 _' B' c* o           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
4 E* j- v. @' t
& m$ V$ J7 K# n; z/ m      </extension>
5 l& n3 L7 G! ~
3 F& G1 C  u0 X   <extension point="org.eclipse.ui.handlers">
( v9 g5 h' [  k2 ?9 l2 g            ) m" G/ _$ @# z; D- P
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
1 [# X7 v; h) m7 J8 s- Z2 G" Q                        <activeWhen>
8 s/ u7 b/ G1 g! z                                <iterate ifEmpty="false"># r8 l- J; L+ E; o% P6 i# o
                                        <and>
6 j: p: s0 `' N+ L                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">& W8 M4 ]  U4 U: ]
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> + g& l/ D+ E, g
                                                </adapt>6 q0 Y+ ~; a' ?/ ?; U
                                        </and>
8 d* J$ ^# P& j( V- d                                </iterate>: {+ U# m: s  i* J
                        </activeWhen>/ O3 g; {; C" t" N% c5 O# S
                </handler>
9 F# V( m5 l4 W% U9 S7 X8 ?   </extension>0 Q$ p! t) C& h$ k" {/ [
2 \; r& S, \0 G$ v
        <extension point="org.eclipse.ui.bindings">
7 ~3 G2 ~: y) y, _+ B                        <key commandId="com.mycom.myitem.commands.sampleCommand"2 N6 K4 h  J) ^( U! b9 y2 y
                                contextId="org.eclipse.ui.contexts.window"
( E* q3 K) F! z; M: P: P                                sequence="M1+6"# L! t1 q. W0 Y# O1 J
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
, J" V3 c4 a6 z- B! B0 R                           </key>* u- X; M8 ]6 {7 Y
           </extension>$ G) F: b9 v7 s. c  H2 Y  j
                           ( Q: F+ }3 a$ k- t9 V: {
        - U$ ?9 Y9 s5 J5 x! p4 X
</plugin>+ h6 i4 ~+ d* n
  j5 |- Q0 j  q

9 l$ `' O) j5 e. N0 p  f
上海点团信息科技有限公司,承接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 r( b- C2 }. k% M6 k5 p9 [6 Z...

* }) Q+ y% C3 I7 T& E5 ~  M. V# O这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了