source: default/v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/WorkspaceResolver.java @ 70

Last change on this file since 70 was 70, checked in by hkaulbersch, 10 years ago

Added a method to get the whole path of generated files.

  • Property svn:mime-type set to text/plain
File size: 361 bytes
Line 
1package de.ugoe.cs.swe.bnftools.generator;
2
3import org.eclipse.core.resources.IWorkspace;
4import org.eclipse.core.resources.ResourcesPlugin;
5
6public class WorkspaceResolver {
7
8        public static String getWorkspace(){
9                IWorkspace workspace = ResourcesPlugin.getWorkspace(); 
10                return workspace.getRoot().getLocation().toFile().toURI().getPath();
11        }
12}
Note: See TracBrowser for help on using the repository browser.