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.
OptipngWrapperPerspective.java
01 /*
02  * Created on 2005/02/19
03  * Author aki@www.xucker.jpn.org
04  * License Apache2.0 or Common Public License
05  */
06 package org.jpn.xucker.rcp.optipngwrapper;
07 
08 /**
09  
10  *
11  */
12 
13 import org.eclipse.ui.IFolderLayout;
14 import org.eclipse.ui.IPageLayout;
15 import org.eclipse.ui.IPerspectiveFactory;
16 import org.eclipse.ui.IWorkbench;
17 import org.eclipse.ui.PlatformUI;
18 import org.eclipse.ui.internal.WorkbenchWindow;
19 
20 
21 
22 public class OptipngWrapperPerspective implements IPerspectiveFactory {
23 public static final String ID="org.jpn.xucker.rcp.optipngwrapper.OptipngWrapperPerspective";
24     public OptipngWrapperPerspective() {
25         
26     }
27 
28     public void createInitialLayout(IPageLayout layout) {
29        
30         
31         layout.setEditorAreaVisible(false)//don't use edit area.
32         String editorArea = layout.getEditorArea();
33         
34        
35         IFolderLayout left =
36            
37           layout.createFolder(
38             "left",
39             IPageLayout.LEFT,
40             0.1f,
41             editorArea)
42        left.addView(
43                           OptipngWrapperView.ID_VIEW
44                      );
45                   
46                   IFolderLayout top =
47                       layout.createFolder(
48                         "top",
49                         IPageLayout.RIGHT,
50                         (float0.355f,
51                         "left");
52                   top.addView(
53                           FileListImageView.ID_VIEW);
54                  
55                   
56                   IFolderLayout bottom =
57                       layout.createFolder(
58                         "bottom",
59                         IPageLayout.BOTTOM,
60                         (float0.7f,
61                         "top");
62                   bottom.addView(
63                           ResultView.ID_VIEW);
64                   
65                   
66                   IWorkbench workbench = 
67                       PlatformUI.getWorkbench();
68                   WorkbenchWindow workbenchWindow = 
69                       (WorkbenchWindow)workbench.
70                       getActiveWorkbenchWindow();
71                   
72                  
73     }
74 }