akJ Eclipse RCP Codes

plugin.properties
plugin.xml
org.jpn.xucker.optipngwrapper
OptiPNGExecuter
ResultData
org.jpn.xucker.rcp.optipngwrapper
FileListImageView
Messages
OptimizeListener
OptipngWrapperApplication
OptipngWrapperPerspective
OptipngWrapperPlugin
optipngwrapperResources.properties
optipngwrapperResources_ja.properties
OptipngWrapperView
OptipngWrapperWorkbenchAdvisor
ResultView
org.jpn.xucker.rcp.optipngwrapper.actions
UpdateAction
akJ OptipngWrapper

----
TOP
Blog
ak's java blog
Applications
akJ OptipngWrapper
Links
EclipseCon 2005
many great tutorials pdfs.
Eclipse RCP
eclipsepowered
---
Japanese(日本語) Site
Creative Commons
I use Java2Html.nice tool.
OptipngWrapperApplication.java
01 package org.jpn.xucker.rcp.optipngwrapper;
02 
03 import org.eclipse.core.runtime.IPlatformRunnable;
04 import org.eclipse.swt.widgets.Display;
05 import org.eclipse.ui.PlatformUI;
06 import org.eclipse.ui.application.WorkbenchAdvisor;
07 
08 public class OptipngWrapperApplication implements IPlatformRunnable {
09 
10     public Object run(Object args) {
11        
12         WorkbenchAdvisor workbenchAdvisor = new OptipngWrapperWorkbenchAdvisor();
13   
14         Display display = PlatformUI.createDisplay();
15         try {
16             int returnCode = PlatformUI.createAndRunWorkbench(display,
17                     workbenchAdvisor);
18             if (returnCode == PlatformUI.RETURN_RESTART) {
19                 return IPlatformRunnable.EXIT_RESTART;
20             else {
21                 return IPlatformRunnable.EXIT_OK;
22             }
23         finally {
24             display.dispose();
25         }
26     }
27 }