PLM之家PLMHome-工业软件践行者

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

  [复制链接]

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

2

主题

34

回帖

350

积分

中级会员

积分
350
发表于 2017-11-2 16:23:56 | 显示全部楼层 |阅读模式

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
- @+ y$ Z0 Y! ~  Jfile:///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"?>
( K0 s+ f; h8 h( O, U% ?<?eclipse version="3.4"?>% _. }6 Q" w- `/ J
<plUGin>0 o) e) V/ k9 i, c! d- X0 k
                          
" _1 s% _; O2 W7 g" a& b        <extension point="org.eclipse.ui.commands">
- Z# E5 x* @2 \+ W, [/ F( w/ A          , k5 D; A, h/ Q5 d) M, }: L8 M0 I
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />  b) |' N4 u/ e( H
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
1 j' m+ N: d% p6 E# a                        id="com.mycom.myitem.commands.sampleCommand"/>+ Y1 r, _7 D2 z" v/ ?5 x8 @
         4 ]! I9 h6 v9 \+ T. m/ {+ V! w
   </extension>6 ?3 s4 o. k( j  G2 T, n( Y

9 y" D" b$ X5 a: J8 o6 r0 r   <extension point="org.eclipse.ui.handlers">
, c+ i$ L1 q9 m5 v* |4 E3 r: x           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
) X$ i/ s/ X# h( L; i* w% E: a
      </extension>
* D) J2 j) [) U+ q! X. A! N
, n- P! k7 p- @) f( H   <extension point="org.eclipse.ui.handlers">
7 q  |/ ^1 s* q, M" Z6 |( G            " ?' k3 M9 I, F  N2 e, |
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">. x  a) g$ E) J: ^  C
                        <activeWhen>
& y1 K3 ~2 }9 U% C8 L+ b; q' {                                <iterate ifEmpty="false">% d' H* S& X, N2 `
                                        <and>
% F: B, g/ B* L3 B                                                <adapt type="com.teamcenter.rac.kernel.TCComponent"># T% V, b& m/ J
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> ; g5 C4 O) `* b
                                                </adapt>$ ~) g* _6 w4 t4 t6 {
                                        </and>
9 ]# D/ R, o! m7 ~                                </iterate>
) ~1 g" w* v) f% |8 M, d                        </activeWhen>  \! e: M/ {. F
                </handler>; }4 ~3 ?! E7 ?8 K8 n# X& t
   </extension>
  p$ L3 ]; n7 \: S4 P# N0 r: V) s+ l' J% v( @: S& r6 H
        <extension point="org.eclipse.ui.bindings">
' S- c! x7 m$ Y7 U/ j7 s' f( W                        <key commandId="com.mycom.myitem.commands.sampleCommand"/ w' G: c! ~8 Y
                                contextId="org.eclipse.ui.contexts.window"9 N( B' F0 Z& [8 c
                                sequence="M1+6"4 Q& N/ b/ a& X0 k2 F5 T7 t" ?
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">( i: ~0 T: X/ ?$ Z5 Z4 d
                           </key>+ k: w+ j3 ?8 i& l6 G  a  j
           </extension>
+ q3 k6 k: D7 v% X                          
/ b' R1 b3 P( G3 T! N4 {: x6 @       
/ I4 m, X$ q5 N' g</plugin>
, o, G8 s, ]/ @* D; u; l0 ]' S/ q" `5 ]9 y, E

1 X4 u! @. Y! u% ]: g) j
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

全部回复3

1

主题

12

回帖

55

积分

注册会员

积分
55
发表于 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.doteam.tech
回复 支持 反对

使用道具 举报

2

主题

34

回帖

350

积分

中级会员

积分
350
 楼主| 发表于 2018-11-27 09:20:52 | 显示全部楼层
pzc1350 发表于 2018-11-26 21:12
8 U/ f5 C& U0 I# s& w/ b& v* c...

1 x  `% B6 n) A9 _! h这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

发表回复

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

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

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

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

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

    我知道了