Java Code Examples for org.eclipse.xtext.util.UriUtil#createFolderURI()
The following examples show how to use
org.eclipse.xtext.util.UriUtil#createFolderURI() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XBuildRequest.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** Return the base dir. */ public URI getBaseDir() { if ((this.baseDir == null)) { String userDir = System.getProperty("user.dir"); this.baseDir = UriUtil.createFolderURI(new File(userDir)); } return this.baseDir; }
Example 2
Source File: BuildRequest.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public URI getBaseDir() { if (baseDir == null) { String userDir = System.getProperty("user.dir"); baseDir = UriUtil.createFolderURI(new File(userDir)); } return baseDir; }
Example 3
Source File: XtendBatchCompiler.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.8 */ public void setBasePath(String basePath) { this.baseURI = UriUtil.createFolderURI(new File(basePath)); }
Example 4
Source File: FileProjectConfig.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public FileProjectConfig(File root, String name, IWorkspaceConfig workspaceConfig) { this(UriUtil.createFolderURI(root), name, workspaceConfig); }
Example 5
Source File: FileProjectConfig.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public FileProjectConfig(File root, IWorkspaceConfig workspaceConfig) { this(UriUtil.createFolderURI(root), root.getName(), workspaceConfig); }