PLM之家PLMHome-工业软件与AI结合践行者

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。* T3 U' a1 o) ]" u+ q
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"?>7 C5 q+ x2 r; Z5 e# M. X
<?eclipse version="3.4"?>
* H4 X' \6 _. g+ I6 y( U3 a4 l7 z<plUGin>; P9 d2 L0 G4 p# U$ o
                          
* V$ o, L9 m' J( _6 w        <extension point="org.eclipse.ui.commands">
/ k' l' {( {% {* G3 L          
* [4 n, X" X% x% N  P! `# s) @& b           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
6 R2 o5 M# d1 {5 h4 ]           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
  g- z+ u7 ~- j8 V                        id="com.mycom.myitem.commands.sampleCommand"/>
9 {1 y: w  m* B8 \# e3 w         * \" i; w8 \" G3 ]2 \# g' |
   </extension>
2 P7 l! a9 x" H3 t- b0 a" o
- D4 J8 }7 e0 k   <extension point="org.eclipse.ui.handlers">
5 y3 J; d6 u. p7 L$ F           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>* S. s6 ?: U- x6 X% i5 P$ g8 M- X

$ a5 v: p( J9 k' g      </extension>
9 G! l; A& r0 ?- X
5 l5 U2 i0 T4 c2 u   <extension point="org.eclipse.ui.handlers">
4 l' Q2 v1 U$ {- Z6 ?% }5 `$ _            " ?# y2 H6 d4 e
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
  l3 O. y  o1 |% f' |, ~4 ?                        <activeWhen>
  P9 D: u7 k! F4 |                                <iterate ifEmpty="false">7 _. m* W: {' X" G; l- R9 H
                                        <and>
( h! }  @( b" p7 |                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
2 k+ z4 h9 h4 S+ b- \0 l                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> 6 Q; n3 ~' m# X6 J9 U, D) Z
                                                </adapt>
& e2 s- |5 V% r* H3 |9 V$ g                                        </and>4 M+ n1 {2 X( I! r$ z
                                </iterate>& l; z7 i2 Q2 q% }
                        </activeWhen>
2 [9 H; B% g' S2 z! f6 ^% X                </handler>' H& t( Z/ r# R
   </extension>) |0 o$ V: L1 M% ]+ [
9 \. n0 C( R" c! c% G& h7 G3 o! d0 W
        <extension point="org.eclipse.ui.bindings">
5 Y. a0 g5 Z# ~. {+ g  b( j                        <key commandId="com.mycom.myitem.commands.sampleCommand"
: N+ W2 C3 Z4 {9 [8 i                                contextId="org.eclipse.ui.contexts.window"
5 u+ C7 q+ S$ L# p7 l/ `                                sequence="M1+6"9 _7 M0 D/ u" r" r. N
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">2 ~" E% |) y, H2 j( _
                           </key>
% ~* F' l# o) ^+ L% Q# s/ b2 h           </extension>
4 Y) K6 M$ ^2 Y$ g; E                          
" Q# y7 ^- b3 A4 b       
' u  B3 s5 n- H- {  ?" ~& Z& v( K$ e</plugin>
  v; N. p: g0 T0 o4 D+ b+ |
- `. h) }  p) a4 ~$ p9 F/ k4 ?
+ k) `, b0 H, ?; 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
3 ?! Z* v' z" X. E6 w...
7 z1 P. s2 X' `9 @
这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了