Make Eclipse RCP Intro Part of the Perspective

For the product we are creating, we want to have a welcome screen in perspective (which we call "Start Here"). An introduction is the only thing that should be in this perspective, however, when I try to add our perspective on the perspective, he says that the view already exists in the layout.

I tried to programmatically close the input, enter standby mode, etc., but I can not get it to work.

The introduction is XHTML, and we use the internal "Eclipse" links (for example, http: //org.eclipse ...? RunAction , etc.) (hence the reason that we need to use the built-in infrastructure.

Does anyone have any ideas on how I could add it to the perspective, or at least get the most complete introduction when you select a specific perspective (using the "showIntro" method, the result will appear strange, grouped one side).

Thank!

+3
source share
2 answers

Intro view is a sticky view, so its placeholder is created by default for each perspective, to the right of the editor area. There is no public API to remove the placeholder after creating it, and when you try to create it, you will get an error message that it already exists.

You can maximize Intro performance as follows:

IWorkbenchPage page =
    PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.setPartState(page.findViewReference("org.eclipse.ui.internal.introview"),
    IWorkbenchPage.STATE_MAXIMIZED);

, , IPerspectiveListener.perspectiveChanged(), factory.

+1

IIntroManager.showIntro() WorkbenchWindowAdvisor.openIntro()

0

Source: https://habr.com/ru/post/1763786/


All Articles