Changeset 3819 for devel-tools/trunk


Ignore:
Timestamp:
Jun 21, 2008, 10:15:41 PM (12 years ago)
Author:
yura
Message:
  • Module creating and opening.
File:
1 edited

Legend:

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

    r3783 r3819  
    116116    private IFile getClassFile (String moduleName) {
    117117        try {
    118             return workspaceRoot.getFile(javaProject.getOutputLocation()
    119                     .append(moduleName.replace('.', '/') + ".class"));
     118            return getSource(javaProject.getOutputLocation(), moduleName, "class");
    120119        } catch (CoreException e) {
    121120            RfpCore.log(e);
    122121        }
    123122        return null;
     123    }
     124
     125    public IFile getSource (IPath path, String moduleName, String ext) {
     126        return workspaceRoot.getFile(path.append(moduleName.replace('.', '/') + "." + ext));
    124127    }
    125128
     
    129132            for (IClasspathEntry entry : javaProject.getRawClasspath())
    130133                if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
    131                     IFile file = workspaceRoot
    132                             .getFile(entry.getPath().append(moduleName.replace('.', '/') + "." + ext));
     134                    IFile file = getSource(entry.getPath(), moduleName, ext);
    133135                    if (file.exists())
    134136                        return file;
Note: See TracChangeset for help on using the changeset viewer.