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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
* j! A" V' M: M& vfile:///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"?>9 k( D: P: f  J' }9 A1 g8 n. `
<?eclipse version="3.4"?>
) a, a# h! p0 |& N8 h<plUGin>3 j6 A1 D: C# u' [+ H" i
                           * ^1 F; c5 d9 h) d* W% C
        <extension point="org.eclipse.ui.commands">. @/ s7 w& _$ d* r# W
            N6 i7 P5 T0 X% S$ j
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />1 D$ F1 e8 M4 d+ O6 w
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"1 ^4 F& _2 }( p- m8 G8 A
                        id="com.mycom.myitem.commands.sampleCommand"/>
3 J" H# t" T3 ^' w         ' R, Q! g; t& V
   </extension>$ t- W7 I7 U, J; X3 F1 G  ~
# x$ M6 Y8 A) e! n+ ]: {8 v) _! _# u
   <extension point="org.eclipse.ui.handlers">
" c& e& F+ F8 W2 N5 x           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>4 G6 q5 B$ [, h! \  ^! M
/ ~) G3 |  l, o7 G1 J9 C
      </extension>" V) q( I( ~: x3 D; O$ m$ N6 A" t

& S- Y+ f: @" O3 v% ~* z. c   <extension point="org.eclipse.ui.handlers">
: e% z, n/ w3 ]1 p' k; `2 H4 h            
; a( U, ?1 F2 d                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">, m: I9 c2 ?, _5 D. q
                        <activeWhen>; B( }' @. y& ~8 W) y
                                <iterate ifEmpty="false">
1 j8 v) P3 v" _. U                                        <and>1 z0 B* c% K2 Y( m$ O, y
                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
# [6 p: a& I9 @; }                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
# B8 d" }" `4 o                                                </adapt>
& {. \* C7 X; q3 b' y                                        </and>/ [) B  h# o, J, Z) T  S
                                </iterate>3 |$ |- o8 T6 s3 R7 o2 o
                        </activeWhen>+ {$ x2 D+ {6 O- Y7 a/ N
                </handler>, \; }/ p+ c) P( r% [* f3 O
   </extension>
, _. s* V% `, t* u8 C4 F* d1 s+ |2 n$ h( S
        <extension point="org.eclipse.ui.bindings">
8 {" z, z- e% j; x  O3 I                        <key commandId="com.mycom.myitem.commands.sampleCommand"
( ]. N3 t$ V. i- n' C, Z( z; C0 B                                contextId="org.eclipse.ui.contexts.window"
- d' m$ P6 d6 J% F( P, J- ~                                sequence="M1+6"3 O. m  S7 U  ^  \, f/ q/ g$ ~
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">  s8 Q7 b( D& Z7 {9 v; i
                           </key>  E+ b5 Y, h- A
           </extension>
3 U( K! T$ h% E  n, S3 D' d) B                           8 m8 F4 ]# y/ `, g; L( ?
        3 j, }& K! u& _4 a* N0 g# O+ @
</plugin>4 B5 z  e% H( R6 ?) G; r) [
. ^8 H, g, k& E" l/ f4 a1 w. T

- S  B5 l) i5 y8 D
上海点团信息科技有限公司,承接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

9 G3 Y3 ^# H0 T* T
这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了