diff options
author | fallilaire | 2007-01-09 17:23:19 +0000 |
---|---|---|
committer | fallilaire | 2007-01-09 17:23:19 +0000 |
commit | b51c60b73f2fd79d124a1463174ddb662ce89bd3 (patch) | |
tree | 01367e434d237460b96374822c8f9f46ece99a49 | |
parent | 5683795817d6590fff14f11d692a7ab0b6406ac0 (diff) | |
download | org.eclipse.atl-ADTDebugForEclipse3_1.tar.gz org.eclipse.atl-ADTDebugForEclipse3_1.tar.xz org.eclipse.atl-ADTDebugForEclipse3_1.zip |
changed creation method for atl file pathADTDebugForEclipse3_1
-rw-r--r-- | deprecated/org.atl.eclipse.adt.debug/src/org/atl/eclipse/adt/launching/AtlLaunchConfigurationDelegate.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/deprecated/org.atl.eclipse.adt.debug/src/org/atl/eclipse/adt/launching/AtlLaunchConfigurationDelegate.java b/deprecated/org.atl.eclipse.adt.debug/src/org/atl/eclipse/adt/launching/AtlLaunchConfigurationDelegate.java index 08a999ae..ec9f8945 100644 --- a/deprecated/org.atl.eclipse.adt.debug/src/org/atl/eclipse/adt/launching/AtlLaunchConfigurationDelegate.java +++ b/deprecated/org.atl.eclipse.adt.debug/src/org/atl/eclipse/adt/launching/AtlLaunchConfigurationDelegate.java @@ -415,7 +415,6 @@ public class AtlLaunchConfigurationDelegate implements ILaunchConfigurationDeleg File f = new File(filePath.substring(4)); return URI.createFileURI(f.getPath()); } else { - filePath = filePath.replace('#', '/'); return URI.createPlatformResourceURI(filePath, true); } } @@ -441,20 +440,16 @@ public class AtlLaunchConfigurationDelegate implements ILaunchConfigurationDeleg * @return ASM File corresponding to the ATL File */ private static IFile getASMFile(String atlFilePath) { - atlFilePath = atlFilePath.replace('#', '/'); - - IWorkspace wks = ResourcesPlugin.getWorkspace(); - IWorkspaceRoot wksroot = wks.getRoot(); - + // TODO Get properties of the project // know where bin files are, then choose good ASM File for ATL File - IFile currentAtlFile = wksroot.getFile(new Path(atlFilePath)); - + IFile currentAtlFile = ResourcesPlugin.getWorkspace().getRoot().getFile(Path.fromOSString(atlFilePath)); + String extension = currentAtlFile.getFileExtension().toLowerCase(); if (AtlLauncherTools.EXTENSIONS.contains(extension)) { String currentAsmPath = currentAtlFile.getFullPath().toString().substring(0, currentAtlFile.getFullPath().toString().length() - extension.length()) + "asm"; - return wksroot.getFile(new Path(currentAsmPath)); + return ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(currentAsmPath)); } else return null; |