Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 18757 Details for
Bug 87900
Error 'Requesting Java AST from selection': Bug in the Java AST parser
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
The test case (also found in the first comment).
Skin.java (text/plain), 1.29 KB, created by
Reinier Zwitserloot
on 2005-03-14 00:42:58 EST
(
hide
)
Description:
The test case (also found in the first comment).
Filename:
MIME Type:
Creator:
Reinier Zwitserloot
Created:
2005-03-14 00:42:58 EST
Size:
1.29 KB
patch
obsolete
>package org.eden.swt; > >import java.io.File; >import java.io.FileNotFoundException; >import java.io.IOException; >import java.io.InputStream; >import java.util.zip.ZipFile; > >public class Skin >{ > private String fSkinLocation; > private boolean fSkinLocationIsZip; > //private transient //remove the first doubleslash on this line and the error happends. > > private Skin() > { > //intentionally left blank > } > > public static Skin makeSkin(String pSkinLocation) > throws IOException > { > Skin lNew = new Skin(); > File lFile; > > lNew.fSkinLocation = pSkinLocation; > lFile = new File(lNew.fSkinLocation); > > if ( !lFile.exists() ) { > throw new FileNotFoundException( > "Skin '" + pSkinLocation + "' not found."); > } > > lNew.fSkinLocationIsZip = !lFile.isDirectory(); > > return lNew; > } > > public static void setTempDirectory(String pTemp) > { > sTempDirectory = pTemp; > } > > private InputStream getResource(String pResourceName) > throws IOException > { > if ( fSkinLocationIsZip ) { > return getResourceFromZip(pResourceName); > } else { > return getResourceFromDir(pResourceName); > } > } > > private InputStream getResourceFromZip(String pResourceName) > throws IOException > { > ZipFile lZipFile; > > lZipFile = new ZipFile(fSkinLocation); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 87900
: 18757 |
18758
|
18761