Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Intro Page not shown in Eclipse E4 Application Project
Intro Page not shown in Eclipse E4 Application Project [message #1131470] Thu, 10 October 2013 15:00 Go to next message
Rita Gomez is currently offline Rita GomezFriend
Messages: 2
Registered: October 2013
Junior Member
Hi everybody,

My problem is that the intro page is not shown when I launch the product.

I have followed the steps:

1. File - New - Project - Eclipse E4 Application Project, with the default settings
2. Add the extensions : org.eclipse.ui.intro, org.eclipse.ui.intro.universal Dependencies on the plugin.xml file and also in the *.product file.
3. Add and intro extension with its intro configuration just as shown on web tutorials.

When I launch the project it works fine but no intro page appears. I clear the workspace and I am using eclipse Kepler. Since this doesn't seem to be a bug, does anybody have any idea why is this happening?

Thanks in advance,
Daria
Re: Intro Page not shown in Eclipse E4 Application Project [message #1505852 is a reply to message #1131470] Wed, 10 December 2014 11:09 Go to previous message
Heiko Hollenbach is currently offline Heiko HollenbachFriend
Messages: 2
Registered: December 2014
Junior Member
I have run into the same problem.

plugin.xml
<extension
         point="org.eclipse.ui.intro">
      <intro
            class="namespace.MyIntroPart"
            id="namespace.intro"
            label="Willkommen">
      </intro>
      <introProductBinding
            introId="namespace.intro"
            productId="test.product">
      </introProductBinding>
   </extension>


MyIntroPart.java
public class MyIntroPart extends IntroPart {

	@Override
	public void createPartControl(Composite container) {
		Composite outerContainer = new Composite(container, SWT.NONE);
		GridLayout gridLayout = new GridLayout();
		outerContainer.setLayout(gridLayout);
		outerContainer.setBackground(outerContainer.getDisplay().getSystemColor(SWT.COLOR_TITLE_BACKGROUND_GRADIENT));
		Label label = new Label(outerContainer, SWT.CENTER);
		label.setText("WELCOME TO ECLIPSE");
		GridData gd = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);
		gd.horizontalAlignment = GridData.CENTER;
		gd.verticalAlignment = GridData.CENTER;
		label.setLayoutData(gd);
		label.setBackground(outerContainer.getDisplay().getSystemColor(SWT.COLOR_TITLE_BACKGROUND_GRADIENT));
	}

	@Override
	public void standbyStateChanged(boolean standby) {

	}

	@Override
	public void setFocus() {

	}

}


I selected the Welcome Page in the test.product under Branding.

i also have tried to remove the generetes workspace when Launch as Eclipse application.

What did i miss or what's the poroblem
Previous Topic:How to contribute "Toggle Breakpoint" with org.eclipse.ui.menus extension point
Next Topic:tableviewer double-click opens editor and clicks button on new editor
Goto Forum:
  


Current Time: Sun Dec 21 18:08:04 GMT 2014

Powered by FUDForum. Page generated in 0.01490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software