Package org.eclipse.ui.intro.config

Examples of org.eclipse.ui.intro.config.CustomizableIntroPart


                if (history.currentLocationIsUrl())
                    success = Util.openBrowser(history
                        .getCurrentLocationAsUrl());
                else {
                    // Set current page, and this will triger regen.
                    CustomizableIntroPart currentIntroPart = (CustomizableIntroPart) IntroPlugin
                        .getIntro();
                    currentIntroPart.getControl().setRedraw(false);
                    success = getModel().setCurrentPageId(
                        history.getCurrentLocationAsPage().getId());
                    currentIntroPart.getControl().setRedraw(true);
                }
            }
        }

        updateNavigationActionsState();
View Full Code Here


                if (history.currentLocationIsUrl())
                    success = Util.openBrowser(history
                        .getCurrentLocationAsUrl());
                else {
                    // Set current page, and this will triger regen.
                    CustomizableIntroPart currentIntroPart = (CustomizableIntroPart) IntroPlugin
                        .getIntro();
                    currentIntroPart.getControl().setRedraw(false);
                    success = getModel().setCurrentPageId(
                        history.getCurrentLocationAsPage().getId());
                    currentIntroPart.getControl().setRedraw(true);
                }
            }
        }
        updateNavigationActionsState();
        return success;
View Full Code Here

    }

    public boolean navigateHome() {
        IntroHomePage rootPage = getModel().getHomePage();
        if (getModel().isDynamic()) {
            CustomizableIntroPart currentIntroPart = (CustomizableIntroPart) IntroPlugin
                .getIntro();
            currentIntroPart.getControl().setRedraw(false);
            boolean success = false;
            success = getModel().setCurrentPageId(rootPage.getId());
            updateHistory(rootPage);
            currentIntroPart.getControl().setRedraw(true);
            return success;
        }
        // static model. Nothing to do.
        return false;
    }
View Full Code Here

    getTrimManager().removeTrim(this);

    IIntroPart intro = null;
    if (restore) {
      intro = PlatformUI.getWorkbench().getIntroManager().showIntro(window, false);
      CustomizableIntroPart cpart = (CustomizableIntroPart) intro;
      Rectangle startBounds = Geometry.toDisplay(getControl().getParent(), getControl().getBounds());
      Rectangle endBounds = Geometry.toDisplay(cpart.getControl().getParent(), cpart.getControl()
          .getBounds());

      RectangleAnimation animation = new RectangleAnimation(window.getShell(), startBounds, endBounds);
      animation.schedule();
    }
View Full Code Here

     * @param partId
     * @param input
     */
    private boolean handleStandbyState(String partId, String input) {
        // set intro to standby mode. we know we have a customizable part.
        CustomizableIntroPart introPart = (CustomizableIntroPart) IntroPlugin
            .getIntro();
        if (introPart == null)
            introPart = (CustomizableIntroPart) IntroPlugin.showIntro(true);
        // store the flag to indicate that standbypart is needed.
        introPart.getControl().setData(IIntroConstants.SHOW_STANDBY_PART,
            VALUE_TRUE);
        IntroPlugin.setIntroStandby(true);
        StandbyPart standbyPart = (StandbyPart) introPart
            .getAdapter(StandbyPart.class);

        boolean success = standbyPart.showContentPart(partId, input);
        if (success)
            return true;
View Full Code Here

        // set the current page id in the model. This will triger appropriate
        // listener event to the UI. If setting the page in the model fails (ie:
        // the page was not found in the current model, look for it in loaded
        // models. return false if failed.
        // avoid flicker.
        CustomizableIntroPart currentIntroPart = (CustomizableIntroPart) IntroPlugin
            .getIntro();
        currentIntroPart.getControl().setRedraw(false);

        IntroModelRoot modelRoot = IntroPlugin.getDefault().getIntroModelRoot();
        boolean success = modelRoot.setCurrentPageId(pageId);
        if (!success)
            success = includePageToShow(modelRoot, pageId);

        // we turned drawing off. Turn it on again.
        currentIntroPart.getControl().setRedraw(true);

        if (success) {
            // found page. Set the history
            modelRoot.getPresentation().updateHistory(
                modelRoot.getCurrentPage());
View Full Code Here

     *
     * @return
     */
    private boolean navigate(String direction) {
        // set intro to standby mode. we know we have a customizable part.
        CustomizableIntroPart introPart = (CustomizableIntroPart) IntroPlugin
            .getIntro();
        if (introPart == null)
            // intro is closed. Do nothing.
            return false;

        IntroPartPresentation presentation = (IntroPartPresentation) introPart
            .getAdapter(IntroPartPresentation.class);

        if (direction.equalsIgnoreCase(VALUE_BACKWARD))
            return presentation.navigateBackward();
        else if (direction.equalsIgnoreCase(VALUE_FORWARD))
View Full Code Here

        IIntroPart intro = PlatformUI.getWorkbench().getIntroManager()
            .getIntro();
        if (intro == null)
            return false;

        CustomizableIntroPart cpart = (CustomizableIntroPart) intro;
        IntroModelRoot modelRoot = IntroPlugin.getDefault().getIntroModelRoot();
        String pageId = modelRoot.getCurrentPageId();
        IntroTheme theme = modelRoot.getTheme();
        Rectangle bounds = cpart.getControl().getBounds();
        Rectangle startBounds = Geometry.toDisplay(cpart.getControl()
            .getParent(), bounds);
        closeIntro();

        IWorkbenchWindow window = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.intro.config.CustomizableIntroPart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.