Changeset 3558


Ignore:
Timestamp:
Mar 18, 2008, 7:10:12 PM (13 years ago)
Author:
yura
Message:
  • Use runtime in runtime plugin.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/launching/RfpContainerInitializerAndResolver.java

    r3529 r3558  
    3131            this.containerPath = containerPath;
    3232            IPath path = RfpContainerInitializerAndResolver.getPath();
     33            IPath srcPath = RfpContainerInitializerAndResolver.getSrcPath();
    3334            this.entries = path == null ? new IClasspathEntry[0] : new IClasspathEntry[] { JavaCore.newLibraryEntry(
    34                     path, null, null) };
     35                    path, srcPath, null) };
    3536        }
    3637
     
    5354
    5455    private static IPath getPath () {
    55         Bundle b = Platform.getBundle("org.refal.plus");
     56        Bundle b = Platform.getBundle("org.refal.rfpdt.runtime");
    5657        if (b != null)
    5758            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());
    6171            } catch (IOException e) {
    6272                RfpCore.log(e);
Note: See TracChangeset for help on using the changeset viewer.