Package org.eclipse.ui.internal.intro.impl.model

Examples of org.eclipse.ui.internal.intro.impl.model.IntroPartPresentation


        // current kind.
        String currentPresentationKind = model.getPresentation()
            .getImplementationKind();
        // load shared style corresponding to same presentation kind from target
        // model.
        IntroPartPresentation targetPresentation = ((IntroModelRoot) page
            .getParent()).getPresentation();
        String targetSharedStyle = targetPresentation
            .getSharedStyle(currentPresentationKind);
        // clone.
        AbstractIntroPage clonedPage = null;
        try {
            clonedPage = (AbstractIntroPage) page.clone();
View Full Code Here


            .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))
            return presentation.navigateForward();
        else if (direction.equalsIgnoreCase(VALUE_HOME))
            return presentation.navigateHome();
        return false;
    }
View Full Code Here

            // still false, check the embedTarget. If embedTarget is set, then
            // we
            // have embedded by default.
            isEmbedded = (embedTarget != null) ? true : false;

        IntroPartPresentation presentation = IntroPlugin.getDefault()
            .getIntroModelRoot().getPresentation();
        String presentationStyle = presentation.getImplementationKind();

        if (isEmbedded
                && presentationStyle
                    .equals(IntroPartPresentation.BROWSER_IMPL_KIND)) {

            // Embedded is true and we have HTML presentation, show href
            // embedded, either in full page, or in div.
            BrowserIntroPartImplementation impl = (BrowserIntroPartImplementation) presentation
                .getIntroPartImplementation();
            // INTRO: maybe add support for navigation
            href = PlatformUI.getWorkbench().getHelpSystem()
                .resolve(href, true).toExternalForm();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.intro.impl.model.IntroPartPresentation

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.