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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。) G5 q* O& g( s. D8 U$ c
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"?>* w0 {  R' i' Q' r# r9 {
<?eclipse version="3.4"?>
6 @3 ]$ `  {' m<plUGin>$ |8 t7 ~$ s' k& J' ]: V9 n! n
                          
+ [' M8 z) s4 M: \2 G8 Z* f! S        <extension point="org.eclipse.ui.commands">
5 j$ z8 ~1 e1 H# z          
0 f; x0 w9 T6 |1 W" U           <category name="Sample Category" id="com.mycom.myitem.commands.category" />: m; m% D1 L* T; B" U+ i
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
& s8 h+ s  J% ?4 r" J                        id="com.mycom.myitem.commands.sampleCommand"/>$ U) m$ d1 ?3 ~# T/ L
         
  Z: V2 `9 q( h+ q) H. o   </extension>( a+ [1 X, ]* S6 n' f8 W" M0 x& H

5 t, y" ~0 \: o& ]   <extension point="org.eclipse.ui.handlers">6 q- f  X, t. M$ c
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>6 d0 k6 I9 i* ^# Y+ x* B+ D

9 ^; c9 v* C' u      </extension>0 [6 c; v* V, G4 u

! [0 h4 `+ \& D8 ~! J   <extension point="org.eclipse.ui.handlers">& W# P& C9 ^& r, b; S! C! U2 s# h
            
. g$ b8 ], v) r                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">7 h; p3 {. c( l( H, ~( s
                        <activeWhen>- m  d; ?0 V8 U" B+ p
                                <iterate ifEmpty="false">1 p  J; d$ T  w! I
                                        <and>
5 I% s2 w: R- P2 n* c2 V0 Q                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">9 B' j/ {  G. [( U% t% i- r
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
  Q& ~0 F. L5 E2 y$ `& y, x' R                                                </adapt>
. g+ Q0 p/ v7 ~5 l0 L2 e4 c                                        </and>% L5 O+ I8 d8 q+ m
                                </iterate>/ x) ?; @3 L0 `4 E. G4 P
                        </activeWhen>  Y; j# N. a& m' F9 n; {7 Y, X8 z
                </handler>& B9 G2 ?! y  l8 Y: C0 i
   </extension>
! R  ]; F) s  T7 J. s$ x# R$ Q7 y  r
        <extension point="org.eclipse.ui.bindings">
% U0 P; `0 f4 J* D  F                        <key commandId="com.mycom.myitem.commands.sampleCommand"
' `/ T4 k. h0 E2 y+ \+ ]/ b                                contextId="org.eclipse.ui.contexts.window"
1 U3 `7 y" ]+ z0 [4 l0 Y% A$ m1 c' S                                sequence="M1+6"/ V! d  ~- N+ T7 E6 i! P
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">- Z% G9 X- k: d) p  X- m
                           </key>4 n+ {3 L- k$ e' g! G+ y( w
           </extension>' h8 {1 W1 f5 _
                          
" a$ M% W8 H8 m8 v$ H( j        6 c6 E. v8 a4 |) T9 U
</plugin>
& P5 a: _' G0 w& {% ^8 ^
5 l# B/ O' ]6 U4 A5 B
# f6 A5 s) H: A: J- A2 i0 b! u
上海点团信息科技有限公司,承接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% M- ~4 n- r& Q  D
...
8 ^; O7 V; R- w! }# _4 C
这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了