From 9ce3b9dcced937dcb34d8e8a0ec8ab6962b42a5c Mon Sep 17 00:00:00 2001 From: mkuster Date: Fri, 8 Jan 2016 16:20:14 +0100 Subject: [PATCH] Refactor --- .../idea/ts/spec/generator/{actions => }/EditorFileAdapter.java | 2 +- .../ts/spec/generator/{actions => }/EditorFileNavigator.java | 2 +- .../idea/ts/spec/generator/{actions => }/FilePathValidator.java | 2 +- .../ts/spec/generator/{actions => }/ProjectPathsProvider.java | 2 +- .../ydp/idea/ts/spec/generator/{actions => }/SpecGenerator.java | 2 +- .../ts/spec/generator/{actions => }/TSFileDataExtractor.java | 2 +- .../ydp/idea/ts/spec/generator/actions/GenerateSpecAction.java | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/EditorFileAdapter.java (89%) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/EditorFileNavigator.java (94%) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/FilePathValidator.java (89%) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/ProjectPathsProvider.java (91%) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/SpecGenerator.java (97%) rename src/eu/ydp/idea/ts/spec/generator/{actions => }/TSFileDataExtractor.java (95%) diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/EditorFileAdapter.java b/src/eu/ydp/idea/ts/spec/generator/EditorFileAdapter.java similarity index 89% rename from src/eu/ydp/idea/ts/spec/generator/actions/EditorFileAdapter.java rename to src/eu/ydp/idea/ts/spec/generator/EditorFileAdapter.java index 04b7750..0d6bc27 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/EditorFileAdapter.java +++ b/src/eu/ydp/idea/ts/spec/generator/EditorFileAdapter.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiFile; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/EditorFileNavigator.java b/src/eu/ydp/idea/ts/spec/generator/EditorFileNavigator.java similarity index 94% rename from src/eu/ydp/idea/ts/spec/generator/actions/EditorFileNavigator.java rename to src/eu/ydp/idea/ts/spec/generator/EditorFileNavigator.java index 71052f8..cd0e83b 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/EditorFileNavigator.java +++ b/src/eu/ydp/idea/ts/spec/generator/EditorFileNavigator.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.LocalFileSystem; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/FilePathValidator.java b/src/eu/ydp/idea/ts/spec/generator/FilePathValidator.java similarity index 89% rename from src/eu/ydp/idea/ts/spec/generator/actions/FilePathValidator.java rename to src/eu/ydp/idea/ts/spec/generator/FilePathValidator.java index 4119e4b..e32ad8f 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/FilePathValidator.java +++ b/src/eu/ydp/idea/ts/spec/generator/FilePathValidator.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; public class FilePathValidator { private String sourcePath; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/ProjectPathsProvider.java b/src/eu/ydp/idea/ts/spec/generator/ProjectPathsProvider.java similarity index 91% rename from src/eu/ydp/idea/ts/spec/generator/actions/ProjectPathsProvider.java rename to src/eu/ydp/idea/ts/spec/generator/ProjectPathsProvider.java index 58abb7a..2a18cf2 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/ProjectPathsProvider.java +++ b/src/eu/ydp/idea/ts/spec/generator/ProjectPathsProvider.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; import com.intellij.openapi.project.Project; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/SpecGenerator.java b/src/eu/ydp/idea/ts/spec/generator/SpecGenerator.java similarity index 97% rename from src/eu/ydp/idea/ts/spec/generator/actions/SpecGenerator.java rename to src/eu/ydp/idea/ts/spec/generator/SpecGenerator.java index f57bf52..f2b1007 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/SpecGenerator.java +++ b/src/eu/ydp/idea/ts/spec/generator/SpecGenerator.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; import java.io.File; import java.io.FileWriter; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/TSFileDataExtractor.java b/src/eu/ydp/idea/ts/spec/generator/TSFileDataExtractor.java similarity index 95% rename from src/eu/ydp/idea/ts/spec/generator/actions/TSFileDataExtractor.java rename to src/eu/ydp/idea/ts/spec/generator/TSFileDataExtractor.java index 0cbce7b..6daf2bb 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/TSFileDataExtractor.java +++ b/src/eu/ydp/idea/ts/spec/generator/TSFileDataExtractor.java @@ -1,4 +1,4 @@ -package eu.ydp.idea.ts.spec.generator.actions; +package eu.ydp.idea.ts.spec.generator; import org.apache.commons.lang.StringUtils; diff --git a/src/eu/ydp/idea/ts/spec/generator/actions/GenerateSpecAction.java b/src/eu/ydp/idea/ts/spec/generator/actions/GenerateSpecAction.java index 22df8ac..c88a287 100644 --- a/src/eu/ydp/idea/ts/spec/generator/actions/GenerateSpecAction.java +++ b/src/eu/ydp/idea/ts/spec/generator/actions/GenerateSpecAction.java @@ -8,6 +8,7 @@ import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFileManager; import com.intellij.psi.PsiFile; +import eu.ydp.idea.ts.spec.generator.*; import java.io.File;