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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
6 h: G% W% o' l7 W6 M! Qfile:///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 L7 ^5 ]! _& [) e4 B- S<?eclipse version="3.4"?>6 ~9 q; }  r3 I- L. a, W
<plUGin>. B+ v+ l* R  f8 F
                          
! Q. B/ r4 X% N- |9 ?  B        <extension point="org.eclipse.ui.commands">
9 S7 b& w& S6 @! W  Q4 `7 l, k          
& y# l, p& N8 ]; t5 M4 h2 K' p' W# V8 }           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
1 U! i6 C' f9 c$ Y! q           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
: E; I4 g8 X8 K& c# O                        id="com.mycom.myitem.commands.sampleCommand"/>5 z2 v3 `& e% F: r6 T6 x# [
         ) l7 j8 J- u3 c
   </extension>
$ e2 ?& _$ f$ o$ W+ r) \: W! w3 ]* o" z- r, P& X5 m0 i  H* Y
   <extension point="org.eclipse.ui.handlers">. D. P  H' }9 U  a
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
1 z' k; s  _5 i8 n& m4 z# u/ S9 N. }
      </extension>7 ~8 N$ w0 y9 j: e3 ^/ q

  J1 [8 i3 R8 |6 F6 J  N& ^. s   <extension point="org.eclipse.ui.handlers"># R7 e. \0 a5 U# ?1 l8 S# R7 {8 a* U5 u
            / {' x; {4 d3 E, b/ A0 [5 v/ Q$ H
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">! U% A$ r0 e; r% u) r
                        <activeWhen>
9 F1 i3 ]7 H. x7 O. ^' O$ R$ q                                <iterate ifEmpty="false">
! [: v" @5 z, i0 p6 |( P0 m+ C. S                                        <and>
' u- l' }" G1 X! W& t0 b                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
$ j+ f# a  P& G7 T/ x1 R; K. U                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> ! K6 ?/ j5 ~" z* m, d% M; I$ [0 d
                                                </adapt>1 }% w6 x# Q1 H; V6 k& |
                                        </and>) X( O- O2 u- {' a4 ~. w4 _: S- ]
                                </iterate>
+ O& `. S. Q# W( [- a& z                        </activeWhen>
8 J0 _6 o) N1 Z                </handler>2 ^( w7 C& b* i! d
   </extension>5 M/ J, {& v8 B9 S( C
. z6 r# z6 G5 S; ]5 f
        <extension point="org.eclipse.ui.bindings">
/ p2 W6 K! S: G                        <key commandId="com.mycom.myitem.commands.sampleCommand"
9 s! d4 f' I. v# s6 K( g, Q$ }                                contextId="org.eclipse.ui.contexts.window"0 l5 y7 f. r$ b; T; i3 T5 W6 |% h
                                sequence="M1+6"& K" e1 L6 _, f) j3 h! L
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
7 p' Q3 v) Q( ]! G                           </key>8 Z2 ^  Q6 i* m7 R# e) D* f
           </extension>6 l2 u! Y0 ^# C& G
                           % k" r% e4 P+ d
        ; {' Y/ r1 e1 d: [* Z2 Z8 C
</plugin>8 a8 l( E9 d% i

. W4 P" W; E9 d7 s: n* O# w- u* c/ U# ^/ u/ l/ T3 y+ P
上海点团信息科技有限公司,承接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
; c  t4 l9 _% O& S...

7 B$ ~6 O* k! t! _% }" ?9 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二次开发专题模块培训报名开始啦

    我知道了