mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[generator] Created code generator for XtextProjectConfig
Signed-off-by: Miro Spönemann <miro.spoenemann@itemis.de>
This commit is contained in:
parent
167c9f97d4
commit
12670508e9
8 changed files with 946 additions and 1 deletions
|
@ -10,6 +10,6 @@ package org.eclipse.xtext.xtext.generator
|
|||
/**
|
||||
* A fragment that contributes to the {@link XtextGenerator}.
|
||||
*/
|
||||
interface IGeneratorFragment {
|
||||
interface IGeneratorFragment2 {
|
||||
|
||||
}
|
|
@ -0,0 +1,172 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.internal
|
||||
|
||||
import java.io.Closeable
|
||||
import java.util.ArrayList
|
||||
import java.io.FileWriter
|
||||
import java.io.File
|
||||
|
||||
class ProjectConfigGenerator {
|
||||
|
||||
static val INTERFACE_NAME = 'org.eclipse.xtext.xtext.generator.model.IXtextProjectConfig'
|
||||
static val IMPL_NAME = 'org.eclipse.xtext.xtext.generator.model.XtextProjectConfig'
|
||||
|
||||
static val PROJECTS = #[
|
||||
'runtime', 'runtimeTest', 'genericIde', 'genericIdeTest', 'eclipsePlugin', 'eclipsePluginTest',
|
||||
'ideaPlugin', 'ideaPluginTest', 'web', 'webTest'
|
||||
]
|
||||
|
||||
static def void main(String[] args) {
|
||||
val closeables = new ArrayList<Closeable>
|
||||
try {
|
||||
val interfaceWriter = new FileWriter('src' + File.separator + INTERFACE_NAME.replace('.', File.separator) + '.java')
|
||||
closeables += interfaceWriter
|
||||
val implWriter = new FileWriter('src' + File.separator + IMPL_NAME.replace('.', File.separator) + '.java')
|
||||
closeables += implWriter
|
||||
|
||||
val generator = new ProjectConfigGenerator
|
||||
interfaceWriter.write(generator.generateInterface().toString)
|
||||
implWriter.write(generator.generateImpl().toString)
|
||||
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace()
|
||||
} finally {
|
||||
closeables.forEach[close()]
|
||||
}
|
||||
}
|
||||
|
||||
def generateInterface() '''
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package «INTERFACE_NAME.substring(0, INTERFACE_NAME.lastIndexOf('.'))»;
|
||||
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2;
|
||||
import org.eclipse.xtext.xtext.generator.model.ManifestAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ModuleAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.PluginXmlAccess;
|
||||
|
||||
public interface «INTERFACE_NAME.substring(INTERFACE_NAME.lastIndexOf('.') + 1)» {
|
||||
|
||||
«FOR p : PROJECTS»
|
||||
IFileSystemAccess2 get«p.toFirstUpper»Src();
|
||||
IFileSystemAccess2 get«p.toFirstUpper»SrcGen();
|
||||
ManifestAccess get«p.toFirstUpper»Manifest();
|
||||
PluginXmlAccess get«p.toFirstUpper»PluginXml();
|
||||
ModuleAccess get«p.toFirstUpper»Module();
|
||||
|
||||
«ENDFOR»
|
||||
IFileSystemAccess2 getOrionJsGen();
|
||||
IFileSystemAccess2 getAceJsGen();
|
||||
|
||||
}
|
||||
'''
|
||||
|
||||
def generateImpl() '''
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package «IMPL_NAME.substring(0, IMPL_NAME.lastIndexOf('.'))»;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2;
|
||||
import org.eclipse.xtext.parser.IEncodingProvider;
|
||||
import org.eclipse.xtext.xtext.generator.model.FileSystemAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ManifestAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ModuleAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.PluginXmlAccess;
|
||||
|
||||
public class «IMPL_NAME.substring(IMPL_NAME.lastIndexOf('.') + 1)» implements «INTERFACE_NAME.substring(INTERFACE_NAME.lastIndexOf('.') + 1)» {
|
||||
|
||||
@Inject private IEncodingProvider encodingProvider;
|
||||
|
||||
«FOR p : PROJECTS»
|
||||
private FileSystemAccess «p»SrcAccess;
|
||||
private FileSystemAccess «p»SrcGenAccess;
|
||||
private ManifestAccess «p»ManifestAccess;
|
||||
private PluginXmlAccess «p»PluginXmlAccess;
|
||||
private ModuleAccess «p»ModuleAccess;
|
||||
«ENDFOR»
|
||||
private FileSystemAccess orionJsGenAccess;
|
||||
private FileSystemAccess aceJsGenAccess;
|
||||
|
||||
«FOR p : PROJECTS»
|
||||
@Override
|
||||
public IFileSystemAccess2 get«p.toFirstUpper»Src() {
|
||||
return «p»SrcAccess;
|
||||
}
|
||||
|
||||
public void set«p.toFirstUpper»Src(String path) {
|
||||
«p»SrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 get«p.toFirstUpper»SrcGen() {
|
||||
return «p»SrcGenAccess;
|
||||
}
|
||||
|
||||
public void set«p.toFirstUpper»SrcGen(String path) {
|
||||
«p»SrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
«p»ModuleAccess = new ModuleAccess(«p»SrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess get«p.toFirstUpper»Manifest() {
|
||||
return «p»ManifestAccess;
|
||||
}
|
||||
|
||||
public void set«p.toFirstUpper»Manifest(String path) {
|
||||
«p»ManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess get«p.toFirstUpper»PluginXml() {
|
||||
return «p»PluginXmlAccess;
|
||||
}
|
||||
|
||||
public void set«p.toFirstUpper»PluginXml(String path) {
|
||||
«p»PluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess get«p.toFirstUpper»Module() {
|
||||
return «p»ModuleAccess;
|
||||
}
|
||||
|
||||
«ENDFOR»
|
||||
@Override
|
||||
public IFileSystemAccess2 getOrionJsGen() {
|
||||
return orionJsGenAccess;
|
||||
}
|
||||
|
||||
public void setOrionJsGen(String path) {
|
||||
orionJsGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getAceJsGen() {
|
||||
return aceJsGenAccess;
|
||||
}
|
||||
|
||||
public void setAceJsGen(String path) {
|
||||
aceJsGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
}
|
||||
'''
|
||||
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model
|
||||
|
||||
import com.google.common.io.Files
|
||||
import java.io.File
|
||||
import java.io.FileInputStream
|
||||
import java.io.InputStream
|
||||
import java.nio.charset.Charset
|
||||
import org.eclipse.emf.common.util.URI
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2
|
||||
import org.eclipse.xtext.parser.IEncodingProvider
|
||||
import org.eclipse.xtext.util.RuntimeIOException
|
||||
|
||||
class FileSystemAccess implements IFileSystemAccess2 {
|
||||
|
||||
val URI baseUri
|
||||
val IEncodingProvider encodingProvider
|
||||
|
||||
new(String basePath, IEncodingProvider encodingProvider) {
|
||||
this.baseUri = URI.createPlatformResourceURI(basePath, true)
|
||||
this.encodingProvider = encodingProvider
|
||||
}
|
||||
|
||||
protected def getCharset(URI uri) {
|
||||
Charset.forName(encodingProvider.getEncoding(uri))
|
||||
}
|
||||
|
||||
override getURI(String path) {
|
||||
getURI(path, DEFAULT_OUTPUT)
|
||||
}
|
||||
|
||||
override getURI(String path, String outputConfiguration) {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
return baseUri.appendSegments(path.split('/'))
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override isFile(String path) throws RuntimeIOException {
|
||||
isFile(path, DEFAULT_OUTPUT)
|
||||
}
|
||||
|
||||
override isFile(String path, String outputConfiguration) throws RuntimeIOException {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
val file = new File(path.URI.toFileString)
|
||||
return file.exists && !file.isDirectory
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override deleteFile(String fileName) {
|
||||
deleteFile(fileName, DEFAULT_OUTPUT)
|
||||
}
|
||||
|
||||
override deleteFile(String fileName, String outputConfiguration) {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
val file = new File(fileName.URI.toFileString)
|
||||
file.delete()
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override generateFile(String fileName, CharSequence contents) {
|
||||
generateFile(fileName, DEFAULT_OUTPUT, contents)
|
||||
}
|
||||
|
||||
override generateFile(String fileName, String outputConfiguration, CharSequence contents) {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
val uri = fileName.URI
|
||||
Files.write(contents, new File(uri.toFileString), uri.charset)
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override generateFile(String fileName, InputStream content) throws RuntimeIOException {
|
||||
generateFile(fileName, DEFAULT_OUTPUT, content)
|
||||
}
|
||||
|
||||
override generateFile(String fileName, String outputConfiguration, InputStream content) throws RuntimeIOException {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
val uri = fileName.URI
|
||||
val fileWriter = Files.newWriter(new File(uri.toFileString), uri.charset)
|
||||
try {
|
||||
var c = content.read()
|
||||
while (c >= 0) {
|
||||
fileWriter.write(c)
|
||||
c = content.read()
|
||||
}
|
||||
} finally {
|
||||
fileWriter.close()
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override readBinaryFile(String fileName) throws RuntimeIOException {
|
||||
readBinaryFile(fileName, DEFAULT_OUTPUT)
|
||||
}
|
||||
|
||||
override readBinaryFile(String fileName, String outputConfiguration) throws RuntimeIOException {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
return new FileInputStream(fileName.URI.toFileString)
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
override readTextFile(String fileName) throws RuntimeIOException {
|
||||
readTextFile(fileName, DEFAULT_OUTPUT)
|
||||
}
|
||||
|
||||
override readTextFile(String fileName, String outputConfiguration) throws RuntimeIOException {
|
||||
if (outputConfiguration == DEFAULT_OUTPUT) {
|
||||
val uri = fileName.URI
|
||||
return Files.toString(new File(uri.toFileString), uri.charset)
|
||||
} else {
|
||||
throw new IllegalArgumentException('Unsupported configuration: ' + outputConfiguration)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model;
|
||||
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2;
|
||||
import org.eclipse.xtext.xtext.generator.model.ManifestAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ModuleAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.PluginXmlAccess;
|
||||
|
||||
public interface IXtextProjectConfig {
|
||||
|
||||
IFileSystemAccess2 getRuntimeSrc();
|
||||
IFileSystemAccess2 getRuntimeSrcGen();
|
||||
ManifestAccess getRuntimeManifest();
|
||||
PluginXmlAccess getRuntimePluginXml();
|
||||
ModuleAccess getRuntimeModule();
|
||||
|
||||
IFileSystemAccess2 getRuntimeTestSrc();
|
||||
IFileSystemAccess2 getRuntimeTestSrcGen();
|
||||
ManifestAccess getRuntimeTestManifest();
|
||||
PluginXmlAccess getRuntimeTestPluginXml();
|
||||
ModuleAccess getRuntimeTestModule();
|
||||
|
||||
IFileSystemAccess2 getGenericIdeSrc();
|
||||
IFileSystemAccess2 getGenericIdeSrcGen();
|
||||
ManifestAccess getGenericIdeManifest();
|
||||
PluginXmlAccess getGenericIdePluginXml();
|
||||
ModuleAccess getGenericIdeModule();
|
||||
|
||||
IFileSystemAccess2 getGenericIdeTestSrc();
|
||||
IFileSystemAccess2 getGenericIdeTestSrcGen();
|
||||
ManifestAccess getGenericIdeTestManifest();
|
||||
PluginXmlAccess getGenericIdeTestPluginXml();
|
||||
ModuleAccess getGenericIdeTestModule();
|
||||
|
||||
IFileSystemAccess2 getEclipsePluginSrc();
|
||||
IFileSystemAccess2 getEclipsePluginSrcGen();
|
||||
ManifestAccess getEclipsePluginManifest();
|
||||
PluginXmlAccess getEclipsePluginPluginXml();
|
||||
ModuleAccess getEclipsePluginModule();
|
||||
|
||||
IFileSystemAccess2 getEclipsePluginTestSrc();
|
||||
IFileSystemAccess2 getEclipsePluginTestSrcGen();
|
||||
ManifestAccess getEclipsePluginTestManifest();
|
||||
PluginXmlAccess getEclipsePluginTestPluginXml();
|
||||
ModuleAccess getEclipsePluginTestModule();
|
||||
|
||||
IFileSystemAccess2 getIdeaPluginSrc();
|
||||
IFileSystemAccess2 getIdeaPluginSrcGen();
|
||||
ManifestAccess getIdeaPluginManifest();
|
||||
PluginXmlAccess getIdeaPluginPluginXml();
|
||||
ModuleAccess getIdeaPluginModule();
|
||||
|
||||
IFileSystemAccess2 getIdeaPluginTestSrc();
|
||||
IFileSystemAccess2 getIdeaPluginTestSrcGen();
|
||||
ManifestAccess getIdeaPluginTestManifest();
|
||||
PluginXmlAccess getIdeaPluginTestPluginXml();
|
||||
ModuleAccess getIdeaPluginTestModule();
|
||||
|
||||
IFileSystemAccess2 getWebSrc();
|
||||
IFileSystemAccess2 getWebSrcGen();
|
||||
ManifestAccess getWebManifest();
|
||||
PluginXmlAccess getWebPluginXml();
|
||||
ModuleAccess getWebModule();
|
||||
|
||||
IFileSystemAccess2 getWebTestSrc();
|
||||
IFileSystemAccess2 getWebTestSrcGen();
|
||||
ManifestAccess getWebTestManifest();
|
||||
PluginXmlAccess getWebTestPluginXml();
|
||||
ModuleAccess getWebTestModule();
|
||||
|
||||
IFileSystemAccess2 getOrionJsGen();
|
||||
IFileSystemAccess2 getAceJsGen();
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model
|
||||
|
||||
class ManifestAccess {
|
||||
|
||||
new(String path) {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model
|
||||
|
||||
class ModuleAccess {
|
||||
|
||||
new(FileSystemAccess outlet) {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model
|
||||
|
||||
class PluginXmlAccess {
|
||||
|
||||
new(String path) {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,513 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext.xtext.generator.model;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2;
|
||||
import org.eclipse.xtext.parser.IEncodingProvider;
|
||||
import org.eclipse.xtext.xtext.generator.model.FileSystemAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ManifestAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.ModuleAccess;
|
||||
import org.eclipse.xtext.xtext.generator.model.PluginXmlAccess;
|
||||
|
||||
public class XtextProjectConfig implements IXtextProjectConfig {
|
||||
|
||||
@Inject private IEncodingProvider encodingProvider;
|
||||
|
||||
private FileSystemAccess runtimeSrcAccess;
|
||||
private FileSystemAccess runtimeSrcGenAccess;
|
||||
private ManifestAccess runtimeManifestAccess;
|
||||
private PluginXmlAccess runtimePluginXmlAccess;
|
||||
private ModuleAccess runtimeModuleAccess;
|
||||
private FileSystemAccess runtimeTestSrcAccess;
|
||||
private FileSystemAccess runtimeTestSrcGenAccess;
|
||||
private ManifestAccess runtimeTestManifestAccess;
|
||||
private PluginXmlAccess runtimeTestPluginXmlAccess;
|
||||
private ModuleAccess runtimeTestModuleAccess;
|
||||
private FileSystemAccess genericIdeSrcAccess;
|
||||
private FileSystemAccess genericIdeSrcGenAccess;
|
||||
private ManifestAccess genericIdeManifestAccess;
|
||||
private PluginXmlAccess genericIdePluginXmlAccess;
|
||||
private ModuleAccess genericIdeModuleAccess;
|
||||
private FileSystemAccess genericIdeTestSrcAccess;
|
||||
private FileSystemAccess genericIdeTestSrcGenAccess;
|
||||
private ManifestAccess genericIdeTestManifestAccess;
|
||||
private PluginXmlAccess genericIdeTestPluginXmlAccess;
|
||||
private ModuleAccess genericIdeTestModuleAccess;
|
||||
private FileSystemAccess eclipsePluginSrcAccess;
|
||||
private FileSystemAccess eclipsePluginSrcGenAccess;
|
||||
private ManifestAccess eclipsePluginManifestAccess;
|
||||
private PluginXmlAccess eclipsePluginPluginXmlAccess;
|
||||
private ModuleAccess eclipsePluginModuleAccess;
|
||||
private FileSystemAccess eclipsePluginTestSrcAccess;
|
||||
private FileSystemAccess eclipsePluginTestSrcGenAccess;
|
||||
private ManifestAccess eclipsePluginTestManifestAccess;
|
||||
private PluginXmlAccess eclipsePluginTestPluginXmlAccess;
|
||||
private ModuleAccess eclipsePluginTestModuleAccess;
|
||||
private FileSystemAccess ideaPluginSrcAccess;
|
||||
private FileSystemAccess ideaPluginSrcGenAccess;
|
||||
private ManifestAccess ideaPluginManifestAccess;
|
||||
private PluginXmlAccess ideaPluginPluginXmlAccess;
|
||||
private ModuleAccess ideaPluginModuleAccess;
|
||||
private FileSystemAccess ideaPluginTestSrcAccess;
|
||||
private FileSystemAccess ideaPluginTestSrcGenAccess;
|
||||
private ManifestAccess ideaPluginTestManifestAccess;
|
||||
private PluginXmlAccess ideaPluginTestPluginXmlAccess;
|
||||
private ModuleAccess ideaPluginTestModuleAccess;
|
||||
private FileSystemAccess webSrcAccess;
|
||||
private FileSystemAccess webSrcGenAccess;
|
||||
private ManifestAccess webManifestAccess;
|
||||
private PluginXmlAccess webPluginXmlAccess;
|
||||
private ModuleAccess webModuleAccess;
|
||||
private FileSystemAccess webTestSrcAccess;
|
||||
private FileSystemAccess webTestSrcGenAccess;
|
||||
private ManifestAccess webTestManifestAccess;
|
||||
private PluginXmlAccess webTestPluginXmlAccess;
|
||||
private ModuleAccess webTestModuleAccess;
|
||||
private FileSystemAccess orionJsGenAccess;
|
||||
private FileSystemAccess aceJsGenAccess;
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getRuntimeSrc() {
|
||||
return runtimeSrcAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeSrc(String path) {
|
||||
runtimeSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getRuntimeSrcGen() {
|
||||
return runtimeSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeSrcGen(String path) {
|
||||
runtimeSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
runtimeModuleAccess = new ModuleAccess(runtimeSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getRuntimeManifest() {
|
||||
return runtimeManifestAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeManifest(String path) {
|
||||
runtimeManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getRuntimePluginXml() {
|
||||
return runtimePluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setRuntimePluginXml(String path) {
|
||||
runtimePluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getRuntimeModule() {
|
||||
return runtimeModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getRuntimeTestSrc() {
|
||||
return runtimeTestSrcAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeTestSrc(String path) {
|
||||
runtimeTestSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getRuntimeTestSrcGen() {
|
||||
return runtimeTestSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeTestSrcGen(String path) {
|
||||
runtimeTestSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
runtimeTestModuleAccess = new ModuleAccess(runtimeTestSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getRuntimeTestManifest() {
|
||||
return runtimeTestManifestAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeTestManifest(String path) {
|
||||
runtimeTestManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getRuntimeTestPluginXml() {
|
||||
return runtimeTestPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setRuntimeTestPluginXml(String path) {
|
||||
runtimeTestPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getRuntimeTestModule() {
|
||||
return runtimeTestModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getGenericIdeSrc() {
|
||||
return genericIdeSrcAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeSrc(String path) {
|
||||
genericIdeSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getGenericIdeSrcGen() {
|
||||
return genericIdeSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeSrcGen(String path) {
|
||||
genericIdeSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
genericIdeModuleAccess = new ModuleAccess(genericIdeSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getGenericIdeManifest() {
|
||||
return genericIdeManifestAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeManifest(String path) {
|
||||
genericIdeManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getGenericIdePluginXml() {
|
||||
return genericIdePluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdePluginXml(String path) {
|
||||
genericIdePluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getGenericIdeModule() {
|
||||
return genericIdeModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getGenericIdeTestSrc() {
|
||||
return genericIdeTestSrcAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeTestSrc(String path) {
|
||||
genericIdeTestSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getGenericIdeTestSrcGen() {
|
||||
return genericIdeTestSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeTestSrcGen(String path) {
|
||||
genericIdeTestSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
genericIdeTestModuleAccess = new ModuleAccess(genericIdeTestSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getGenericIdeTestManifest() {
|
||||
return genericIdeTestManifestAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeTestManifest(String path) {
|
||||
genericIdeTestManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getGenericIdeTestPluginXml() {
|
||||
return genericIdeTestPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setGenericIdeTestPluginXml(String path) {
|
||||
genericIdeTestPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getGenericIdeTestModule() {
|
||||
return genericIdeTestModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getEclipsePluginSrc() {
|
||||
return eclipsePluginSrcAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginSrc(String path) {
|
||||
eclipsePluginSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getEclipsePluginSrcGen() {
|
||||
return eclipsePluginSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginSrcGen(String path) {
|
||||
eclipsePluginSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
eclipsePluginModuleAccess = new ModuleAccess(eclipsePluginSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getEclipsePluginManifest() {
|
||||
return eclipsePluginManifestAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginManifest(String path) {
|
||||
eclipsePluginManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getEclipsePluginPluginXml() {
|
||||
return eclipsePluginPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginPluginXml(String path) {
|
||||
eclipsePluginPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getEclipsePluginModule() {
|
||||
return eclipsePluginModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getEclipsePluginTestSrc() {
|
||||
return eclipsePluginTestSrcAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginTestSrc(String path) {
|
||||
eclipsePluginTestSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getEclipsePluginTestSrcGen() {
|
||||
return eclipsePluginTestSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginTestSrcGen(String path) {
|
||||
eclipsePluginTestSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
eclipsePluginTestModuleAccess = new ModuleAccess(eclipsePluginTestSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getEclipsePluginTestManifest() {
|
||||
return eclipsePluginTestManifestAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginTestManifest(String path) {
|
||||
eclipsePluginTestManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getEclipsePluginTestPluginXml() {
|
||||
return eclipsePluginTestPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setEclipsePluginTestPluginXml(String path) {
|
||||
eclipsePluginTestPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getEclipsePluginTestModule() {
|
||||
return eclipsePluginTestModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getIdeaPluginSrc() {
|
||||
return ideaPluginSrcAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginSrc(String path) {
|
||||
ideaPluginSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getIdeaPluginSrcGen() {
|
||||
return ideaPluginSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginSrcGen(String path) {
|
||||
ideaPluginSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
ideaPluginModuleAccess = new ModuleAccess(ideaPluginSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getIdeaPluginManifest() {
|
||||
return ideaPluginManifestAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginManifest(String path) {
|
||||
ideaPluginManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getIdeaPluginPluginXml() {
|
||||
return ideaPluginPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginPluginXml(String path) {
|
||||
ideaPluginPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getIdeaPluginModule() {
|
||||
return ideaPluginModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getIdeaPluginTestSrc() {
|
||||
return ideaPluginTestSrcAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginTestSrc(String path) {
|
||||
ideaPluginTestSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getIdeaPluginTestSrcGen() {
|
||||
return ideaPluginTestSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginTestSrcGen(String path) {
|
||||
ideaPluginTestSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
ideaPluginTestModuleAccess = new ModuleAccess(ideaPluginTestSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getIdeaPluginTestManifest() {
|
||||
return ideaPluginTestManifestAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginTestManifest(String path) {
|
||||
ideaPluginTestManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getIdeaPluginTestPluginXml() {
|
||||
return ideaPluginTestPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setIdeaPluginTestPluginXml(String path) {
|
||||
ideaPluginTestPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getIdeaPluginTestModule() {
|
||||
return ideaPluginTestModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getWebSrc() {
|
||||
return webSrcAccess;
|
||||
}
|
||||
|
||||
public void setWebSrc(String path) {
|
||||
webSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getWebSrcGen() {
|
||||
return webSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setWebSrcGen(String path) {
|
||||
webSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
webModuleAccess = new ModuleAccess(webSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getWebManifest() {
|
||||
return webManifestAccess;
|
||||
}
|
||||
|
||||
public void setWebManifest(String path) {
|
||||
webManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getWebPluginXml() {
|
||||
return webPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setWebPluginXml(String path) {
|
||||
webPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getWebModule() {
|
||||
return webModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getWebTestSrc() {
|
||||
return webTestSrcAccess;
|
||||
}
|
||||
|
||||
public void setWebTestSrc(String path) {
|
||||
webTestSrcAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getWebTestSrcGen() {
|
||||
return webTestSrcGenAccess;
|
||||
}
|
||||
|
||||
public void setWebTestSrcGen(String path) {
|
||||
webTestSrcGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
webTestModuleAccess = new ModuleAccess(webTestSrcGenAccess);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManifestAccess getWebTestManifest() {
|
||||
return webTestManifestAccess;
|
||||
}
|
||||
|
||||
public void setWebTestManifest(String path) {
|
||||
webTestManifestAccess = new ManifestAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PluginXmlAccess getWebTestPluginXml() {
|
||||
return webTestPluginXmlAccess;
|
||||
}
|
||||
|
||||
public void setWebTestPluginXml(String path) {
|
||||
webTestPluginXmlAccess = new PluginXmlAccess(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModuleAccess getWebTestModule() {
|
||||
return webTestModuleAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getOrionJsGen() {
|
||||
return orionJsGenAccess;
|
||||
}
|
||||
|
||||
public void setOrionJsGen(String path) {
|
||||
orionJsGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFileSystemAccess2 getAceJsGen() {
|
||||
return aceJsGenAccess;
|
||||
}
|
||||
|
||||
public void setAceJsGen(String path) {
|
||||
aceJsGenAccess = new FileSystemAccess(path, encodingProvider);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue