<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    9910

    單飛

       :: 首頁 :: 聯系 :: 聚合  :: 管理
     
    
    MenuManager menuMgr = new MenuManager();
            menuMgr.setRemoveAllWhenShown(
    true);
            menuMgr.addMenuListener(
    new IMenuListener() {
                
    public void menuAboutToShow(IMenuManager manager) {
                    manager.add(
    new Action("刪除"){
                        
    public void run(){
                            
    boolean flag = MessageDialog.openConfirm(parentComposite.getShell(), "確認刪除嗎?""你確認要刪除嗎?");
                            
    if(flag){
                                removeSelectPage();    
                            }

                            
                        }

                    }
    );
                }

            }
    );
            
    final Menu menu = menuMgr.createContextMenu(this);
            
    this.setMenu(menu);
            
            tabFolder.addMenuDetectListener(
    new MenuDetectListener(){

                
    public void menuDetected(MenuDetectEvent arg0) {
                    menu.setVisible(
    true);
                }

                
            }
    );
            tabFolder.addMouseListener(
    new MouseAdapter(){
                
    public void mouseDown(MouseEvent mouseevent)
                
    {
                    TabItem selectItem 
    = tabFolder.getItem(new Point(mouseevent.x,mouseevent.y));
                    tabFolder.setSelection(selectItem);
                }

            }
    );
    Unfortunately, there is no way to get the bounds of a TabItem on every
    platform (specifically, the Mac does not support it).  Therefore, at the
    lowest level, we can't get what you want.
    "Stéphane Fournier" <stephane.fournier@xxxxxxxxxxxxxxx> wrote in message
    news:dgdg2j$5p4$1@xxxxxxxxxxxxxxxxxxx
    > Hi,
    >
    > Does anyone know how to set a Popup Menu on a TabItem.
    > I found how to set a Menu on the TabFolder but in my case I need a popup
    > menu with a content related to the TabItem when right mouse click is
    > triggered (the TabItem could not be the selected tabItem for the
    TabFolder).
    >
    > Another way is to get a dynamic content for the Menu  set on the
    > TabFolder, but I need to listen to an event when mouse is moving over
    > the TabItems without selecting them....
    > My need is something close to the behavior of the CTabItem when the
    > mouse is over a not selected CTabItem ,a cross is displayed to close the
    > CTabItem without activating it...
    >
    > Which event can I listen to ?
    >
    > Thanks in advance,
    > Stephane.
    
    posted on 2009-09-21 13:48 單飛 閱讀(661) 評論(0)  編輯  收藏 所屬分類: Eclipse Plugin
    主站蜘蛛池模板: 五月天国产成人AV免费观看| 中文字幕亚洲码在线| 四虎精品成人免费视频| 午夜免费福利在线| 亚洲乱码无限2021芒果| 2021久久精品免费观看| 亚洲欧洲在线播放| 成人免费一区二区无码视频| 亚洲精品国产电影午夜| 7m凹凸精品分类大全免费| 亚洲无线电影官网| 免费在线观看视频网站| 亚洲国产综合人成综合网站00| 久久久久久成人毛片免费看| 久久精品国产亚洲| 亚欧人成精品免费观看| 亚洲精品人成网在线播放影院| 亚洲欧洲免费无码| 国产AV无码专区亚洲AV蜜芽| 免费欧洲毛片A级视频无风险| 免费国产黄网站在线看| 国产精品亚洲w码日韩中文| 青柠影视在线观看免费高清| 亚洲AV无码一区二区三区系列| 最近中文字幕2019高清免费| 亚洲一级特黄特黄的大片| 在线免费观看污网站| 七次郎成人免费线路视频| 亚洲av一综合av一区| 免费无码又爽又刺激聊天APP| 亚洲人成网站在线播放2019| 久久久久亚洲AV无码专区桃色| 日韩免费观看一区| 国产AV无码专区亚洲AV蜜芽| 亚洲AV中文无码字幕色三| 色播在线永久免费视频| 久别的草原电视剧免费观看| 久久亚洲精品无码网站| 亚洲人成网站在线播放影院在线| 国产在线观看免费完整版中文版 | 97超高清在线观看免费视频|