<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
    主站蜘蛛池模板: 又色又污又黄无遮挡的免费视| 二级毛片免费观看全程| 午夜免费啪视频在线观看| 国产gv天堂亚洲国产gv刚刚碰| 亚洲精品无码久久久久牙蜜区| 国产情侣激情在线视频免费看| 亚洲视频在线观看网址| 亚洲欧美国产精品专区久久| 成人午夜性A级毛片免费| 亚洲人成网站在线播放2019| 女人18毛片特级一级免费视频| 国产亚洲精品bv在线观看| 日本成人免费在线| 免费无遮挡无遮羞在线看| 亚洲伊人久久成综合人影院| 亚洲爱情岛论坛永久| 精品一区二区三区无码免费视频| 日本免费一二区在线电影| 亚洲AV无码AV日韩AV网站| 免费大片在线观看网站| 9久热这里只有精品免费| 午夜亚洲www湿好大| 一二三四免费观看在线电影 | 亚洲VA成无码人在线观看天堂| 久久国产乱子伦精品免费看| 亚洲性猛交xx乱| 国产免费观看a大片的网站| 一级毛片**免费看试看20分钟| 亚洲爆乳精品无码一区二区三区| 亚洲熟妇无码AV不卡在线播放 | 久久国产精品免费一区| 亚洲国产天堂在线观看| 97在线免费观看视频| 国产亚洲精久久久久久无码AV| 亚洲av成人无码网站…| 久久精品国产亚洲5555| 日韩免费精品视频| 一级黄色片免费观看| 亚洲噜噜噜噜噜影院在线播放| 国产午夜影视大全免费观看| 亚洲成人免费在线|