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

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

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

    大夢想家

    5年開發(fā)工程師,2年實施經(jīng)理,X年售前顧問,......
    數(shù)據(jù)加載中……
    How to show taskbar icon when use splash?
        這個問題非常的重要!
        做過RCP開發(fā)的朋友應(yīng)該都遇到過,使用AbstractSplashHandler做的登陸界面,在windows的任務(wù)欄上面是不會顯示的,這個問題讓客戶用起來很麻煩,總是動不動就找不到登陸界面了!現(xiàn)在有解決辦法了~
     1Here is the modified Code of the InteractiveSplashHandler Class:
     2
     3
     4    private Shell splash;
     5
     6
     7    public void init(final Shell splash) {
     8        // Shell replaced by one with task bar icon
     9        // (old Style: SWT.TOOL, new Style: SWT.NO_TRIM)
    10        replaceShell(splash);
    11        // Store the shell
    12        super.init(getSplash());
    13        // Configure the shell layout
    14        configureUISplash();
    15        // Create UI Colors and Fonts
    16        createColorsAndFonts();
    17        // Create UI
    18        createUI();
    19        // Create UI listeners
    20        createUIListeners();
    21        // Force the splash screen to layout
    22        splash.dispose();
    23        getSplash().layout(true);
    24        // Keep the splash screen visible and prevent the RCP application from
    25        // loading until the close button is clicked.
    26        doEventLoop();
    27    }

    28
    29
    30    private void replaceShell(Shell splash) {
    31        Shell newSplash = new Shell(Display.getCurrent(), SWT.NO_TRIM);
    32        newSplash.setBackgroundImage(splash.getBackgroundImage());
    33        newSplash.setBounds(splash.getBounds());
    34        newSplash.setFont(splash.getFont());
    35        newSplash.setVisible(true);
    36        setSplash(newSplash);
    37    }

    38
    39
    40    public Shell getSplash() {
    41        return splash;
    42    }

    43
    44
    45    public void setSplash(Shell splash) {
    46        this.splash = splash;
    47    }

    48
    49

    稍稍進行改造,就可以了~

    客戶虐我千百遍,我待客戶如初戀!

    posted on 2009-03-15 20:59 阿南 閱讀(1316) 評論(0)  編輯  收藏 所屬分類: Eclipse-RCP

    主站蜘蛛池模板: 精品一区二区三区无码免费视频| 三根一起会坏掉的好痛免费三级全黄的视频在线观看 | 亚洲av无码国产精品夜色午夜| 亚洲美女视频一区| 精品在线视频免费| 性无码免费一区二区三区在线| 在线观看免费a∨网站| 亚洲精品高清无码视频| 亚洲日韩乱码中文字幕| 三年片在线观看免费| 国产v片免费播放| 亚洲喷奶水中文字幕电影| a级片免费在线观看| 国产国产人免费人成免费视频| 亚洲一卡2卡三卡4卡有限公司| 国产一区二区三区亚洲综合| 久久亚洲精品无码网站| 亚洲无砖砖区免费| 久久青草亚洲AV无码麻豆| 久久久久成人片免费观看蜜芽| 亚洲免费观看在线视频| 大香人蕉免费视频75| 日日躁狠狠躁狠狠爱免费视频| 全免费a级毛片免费看不卡| 亚洲av无码一区二区三区观看| 亚洲免费精彩视频在线观看| 亚洲国产超清无码专区| 99re6免费视频| 亚洲好看的理论片电影| 青青青国产手机频在线免费观看| 亚洲综合色视频在线观看| 猫咪免费观看人成网站在线| 国产精品四虎在线观看免费 | 亚洲国产精品日韩av不卡在线| 97在线视频免费公开观看| 亚洲精品美女网站| 2020久久精品国产免费| 亚洲毛片一级带毛片基地| 精品国产免费人成电影在线观看 | 小小影视日本动漫观看免费| 亚洲色大成网站www永久男同|