Create My Own Eclipse Intro Page

I have to face the difficulty of making my own Eclipse Intro page ( as shown here ).

It seems that I have problems with my product identifier, but I don’t know how to get the product identifier, I tried to extend org.eclipse.core.runtime.products, but when it asks which application I want to register, I don’t know what answer, and it seems like this is part of the problem ... anyone like any idea?

+4
source share
2 answers

Do you need to define a new identifier, or do you just want the minimum configuration to display only your content?

If this is the last, have you seen a later section of the same help? Defining a minimal intro configuration , he suggests using org.eclipse.intro.minimal so that it only shows your content.

+1
source

Here is what I finally did ...

public class IntroPart implements IIntroPart { //VITAL : you must implement 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)); } //VITAL : you must implement public String getTitle() { return "My Title"; } //VITAL : you must implement public Image getTitleImage() { return new Image(Display.getCurrent(), this.getClass() .getResourceAsStream("splash.bmp")); } public void addPropertyListener(IPropertyListener listener) { //NON-VITAL : implement accordingly to your needs } public void dispose() { //NON-VITAL : implement accordingly to your needs } public IIntroSite getIntroSite() { //NON-VITAL : implement accordingly to your needs return null; } public void init(IIntroSite site, IMemento memento) throws PartInitException { //NON-VITAL : implement accordingly to your needs } public void removePropertyListener(IPropertyListener listener) { //NON-VITAL : implement accordingly to your needs } public void saveState(IMemento memento) { //NON-VITAL : implement accordingly to your needs } public void setFocus() { //NON-VITAL : implement accordingly to your needs } public void standbyStateChanged(boolean standby) { //NON-VITAL : implement accordingly to your needs } public Object getAdapter(Class adapter) { //NON-VITAL : implement accordingly to your needs return null; } } 

The photo used is one of mine, and it appears as a tab icon when you show your welcome page ...

It is odd that the name and image have no default values ​​... but heh ... this is life.

Hope this helps ^^

+5
source

All Articles