File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
sources/net.sf.j2s.ui/src/net/sf/j2s/ui/property Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -73,23 +73,10 @@ public J2SAddInnerJarAction(J2SConfigPage page) {
7373 }
7474
7575 public void widgetSelected (SelectionEvent e ) {
76- IWorkspaceRoot root = ResourcesPlugin .getWorkspace ().getRoot ();
77- String rootPath = root .getLocation ().toOSString ();
78- String rootTruePath = new File (rootPath ).getAbsolutePath ();
79- String j2sPath = page .j2sFile .getAbsolutePath ();
80- String prjName = null ;
81- if (j2sPath .startsWith (rootTruePath )) {
82- j2sPath = j2sPath .substring (rootTruePath .length ());
83- if (j2sPath .startsWith (File .separator )) {
84- j2sPath = j2sPath .substring (1 );
85- }
86- prjName = j2sPath .substring (0 , j2sPath .indexOf (File .separatorChar ));
87- }
8876 ILabelProvider lp = new LabelProvider () {
8977
9078 public String getText (Object element ) {
9179 if (element instanceof J2SLibrary []) {
92- //J2SLibrary[] libs = (J2SLibrary[]) element;
9380 return "Inner JS Library" ;
9481 } else if (element instanceof J2SLibrary ) {
9582 J2SLibrary lib = (J2SLibrary ) element ;
You can’t perform that action at this time.
0 commit comments