Application의 About을 눌렀을 때 aboutText 대신 %aboutText가 나타날 때

1. xxx.product 파일의 Branding-About Dialog-Text에 %aboutText가 써 있는가?
2. plugin.properties파일이 프로젝트의 root에 존재하고 내용은  aboutText=xxxx로 시작하는가?
3. Run As-Open Run Dialog-Configuration에서 Clear configurtion area before lauching이 체크 되어 있는가?
3. plugin.xml의 MANIFEST.MF에 Bundle-Localization: plugin이 존재하는가?
Posted by zennken

출처: http://www.ibm.com/developerworks/kr/library/os-eclipse-custwiz/

문제: Child method에서 발생하는 메세지 다이얼로그를 열 수가 없다. 이유는 Thread.
핵심: InvocationTargetException을 이용하여 수행하고자 하는 메서드에서 던지는 Exception을 받아서 처리한다.


    /**
     * This method is called when 'Finish' button is pressed in
     * the wizard. We will create an operation and run it
     * using wizard as execution context.
     */
    public boolean performFinish() {
        final String containerName = page.getContainerName();
        final String fileName = page.getFileName();
        IRunnableWithProgress op = new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) throws InvocationTargetException {
                try {
                    doFinish(containerName, fileName, monitor);
                } catch (CoreException e) {
                    throw new InvocationTargetException(e);
                } finally {
                    monitor.done();
                }
            }
        };
        try {
            getContainer().run(true, false, op);
        } catch (InterruptedException e) {
            return false;
        } catch (InvocationTargetException e) {
            Throwable realException = e.getTargetException();
            MessageDialog.openError(getShell(), "Error", realException.getMessage());
            return false;
        }
        return true;
    }
Posted by zennken
대상: Eclipse 3.3.2 버젼

Update Site에서 Build를 하기 전에 반드시 Feature projec의 Plug-ins에서 버젼을 update 시켜야 한다.
Posted by zennken
대상: Eclipse 3.3.2

Feature Project의 Included Features에서 추가되는 3.3.x버젼의 org.eclipse.rcp feature에 의해 RCP application의 update가 실패한다.

아직 자세히는 모르겠지만, org.eclipse.rcp feature 자체의 문제점인 듯 보인다.

Work-around
처음 RCP application을 export product할 때는 Feature의 Included Features에 org.eclipse.rcp 추가한다.
이후 Update Site에 추가할 feature를 구성할 때는 Included Features에서 org.eclipse.rcp를 제거한 후 Build를 한다.

단점: org.eclipse.rcp는 update할 수 없다.




Posted by zennken
123

zennken

달력