Changeset 3558
- Timestamp:
- Mar 18, 2008, 7:10:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/launching/RfpContainerInitializerAndResolver.java
r3529 r3558 31 31 this.containerPath = containerPath; 32 32 IPath path = RfpContainerInitializerAndResolver.getPath(); 33 IPath srcPath = RfpContainerInitializerAndResolver.getSrcPath(); 33 34 this.entries = path == null ? new IClasspathEntry[0] : new IClasspathEntry[] { JavaCore.newLibraryEntry( 34 path, null, null) };35 path, srcPath, null) }; 35 36 } 36 37 … … 53 54 54 55 private static IPath getPath () { 55 Bundle b = Platform.getBundle("org.refal. plus");56 Bundle b = Platform.getBundle("org.refal.rfpdt.runtime"); 56 57 if (b != null) 57 58 try { 58 String file = FileLocator.resolve(b.getEntry("/")).getPath(); 59 if (file.startsWith("file:") && file.endsWith("jar!/")) 60 return new Path(file.substring(5, file.length() - 2)); 59 return new Path(FileLocator.resolve(b.getEntry("/rfprt.jar")).getPath()); 60 } catch (IOException e) { 61 RfpCore.log(e); 62 } 63 return null; 64 } 65 66 private static IPath getSrcPath () { 67 Bundle b = Platform.getBundle("org.refal.rfpdt.runtime"); 68 if (b != null) 69 try { 70 return new Path(FileLocator.resolve(b.getEntry("/rfprt-src.jar")).getPath()); 61 71 } catch (IOException e) { 62 72 RfpCore.log(e);
Note: See TracChangeset
for help on using the changeset viewer.