문제

나는 내 자신의 이클립스 소개 페이지를 만드는 데 어려움을 겪고 있습니다.여기에 표시된대로).

제품 ID에 문제가있는 것 같지만 제품 ID를 얻는 방법을 모르지만 org.eclipse.core.runtime.products를 확장하려고했지만 등록 할 응용 프로그램을 묻습니다. 대답해야 할 것은 문제의 일부인 것 같습니다.

도움이 되었습니까?

해결책

새 ID를 정의해야합니까, 아니면 콘텐츠 만 표시하는 최소한의 구성을 원하십니까?

후자라면 같은 도움의 후반부를 보셨습니까? 최소 소개 구성 정의, org.eclipse.intro.minimal을 사용하여 콘텐츠 만 표시 할 것을 제안합니다.

다른 팁

여기 내가 마침내 한 일이 있습니다 ...

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;
    }
}

사용 된 사진은 내 중 하나이며 환영 페이지를 표시 할 때 탭 아이콘으로 간다 ...

제목과 이미지에 기본값이 없다는 것은 이상합니다. 그러나 heh ... 그것은 생명입니다.

도움이되기를 바랍니다 ^^

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top