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.
ResultData.java
01 /*
02  * Created on 2004/08/03
03  * Author aki@www.xucker.jpn.org
04  * License Apache2.0 or Common Public License
05  */
06 package org.jpn.xucker.optipngwrapper;
07 
08 /**
09  
10  *
11  */
12 public class ResultData {
13 private String file;
14 private String directory;
15 private int bytes;
16 private int percent;
17 public void setSize(long file1,long file2){
18     long result=file1-file2;
19     int p=0;
20     if(result!=0){
21         p=(int)(result*100/file1);
22     }
23     bytes=(int)result;
24     percent=p;
25 }
26 
27 public int getBytes() {
28     return bytes;
29 }
30 public void setBytes(int bytes) {
31     this.bytes = bytes;
32 }
33 public String getDirectory() {
34     return directory;
35 }
36 public void setDirectory(String directory) {
37     this.directory = directory;
38 }
39 public String getFile() {
40     return file;
41 }
42 public void setFile(String file) {
43     this.file = file;
44 }
45 public int getPercent() {
46     return percent;
47 }
48 public void setPercent(int percent) {
49     this.percent = percent;
50 }
51 }