瀏覽代碼

#366 : add possibility to configure default output path, remove xtext
FSA dependency from init FSA within AbstractSGraphModelGenerator

Johannes Dicks 9 年之前
父節點
當前提交
ecc219aeee

+ 11 - 2
plugins/org.yakindu.sct.generator.core/src/org/yakindu/sct/generator/core/filesystem/ISCTFileSystemAccess.java

@@ -45,8 +45,17 @@ public interface ISCTFileSystemAccess {
 	 * @param outletFeatureTargetProject
 	 * @param stringValue
 	 */
-	void setOutputPath(String outputName, String path);
-
+	void setOutputPath(String outputName, String relativePath);
+	
+	/**
+	 * Set the default output path.
+	 * 
+	 * @param relativePath
+	 * @see IFileSystemAccess#DEFAULT_OUTPUT
+	 */
+	void setOutputPath(String relativePath);
+	
+	
 	Map<String, OutputConfiguration> getOutputConfigurations();
 	/**
 	 * For convenience... and compatibility reasons, might be removed in further

+ 2 - 4
plugins/org.yakindu.sct.generator.core/src/org/yakindu/sct/generator/core/impl/AbstractSGraphModelGenerator.java

@@ -164,9 +164,9 @@ public abstract class AbstractSGraphModelGenerator implements ISCTGenerator {
 	}
 
 	/**
-	 * Provides a pre configured IFileSystemAccess instance
+	 * Initialize the current file system access.
 	 */
-	protected IFileSystemAccess initFileSystemAccess(GeneratorEntry entry) {
+	protected void initFileSystemAccess(GeneratorEntry entry) {
 
 		// set target project value
 		sctFsa.setOutputPath(ICoreFeatureConstants.OUTLET_FEATURE_TARGET_PROJECT,
@@ -192,7 +192,5 @@ public abstract class AbstractSGraphModelGenerator implements ISCTGenerator {
 			librarytargetFolderOutputConfiguration.setCanClearOutputDirectory(false);
 			librarytargetFolderOutputConfiguration.setOverrideExistingResources(false);
 		}
-
-		return sctFsa.getIFileSystemAccess();
 	}
 }