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

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

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

    大夢想家

    5年開發(fā)工程師,2年實(shí)施經(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

    稍稍進(jìn)行改造,就可以了~

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

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

    主站蜘蛛池模板: 亚洲午夜激情视频| 久久久久久亚洲av无码蜜芽| 国产精品视频白浆免费视频| 久久亚洲中文字幕精品一区四| 免费看内射乌克兰女| 又黄又爽一线毛片免费观看| 亚洲AV电影天堂男人的天堂| 国产成人综合久久精品免费| 国产亚洲视频在线观看网址| 又爽又黄无遮挡高清免费视频 | 二区久久国产乱子伦免费精品 | 国产精品亚洲综合五月天| 99久久综合国产精品免费| 亚洲一区二区久久| 久久不见久久见免费影院 | 日本免费A级毛一片| 亚洲va中文字幕无码久久不卡 | 春暖花开亚洲性无区一区二区| 国产成人免费片在线观看| 免费很黄无遮挡的视频毛片| 久久精品国产亚洲AV不卡| 在线观看免费视频一区| 亚洲乱亚洲乱淫久久| 香蕉97超级碰碰碰免费公| 亚洲另类古典武侠| 免费黄网在线观看| 欧亚一级毛片免费看| 亚洲欧洲日产国码av系列天堂| 久久精品视频免费看| 亚洲免费观看在线视频| 永久黄网站色视频免费| 日本一区二区在线免费观看| 亚洲国产婷婷六月丁香| 67pao强力打造国产免费| 亚洲字幕AV一区二区三区四区| 免费观看国产精品| 三年片免费高清版| 内射少妇36P亚洲区| 免费中文熟妇在线影片| 老司机福利在线免费观看| 亚洲熟妇av一区二区三区|