public class SquashMacroFileLocationProjectServiceImpl extends Object implements SquashMacroFileLocationProjectService
Constructor and Description |
---|
SquashMacroFileLocationProjectServiceImpl(com.intellij.openapi.project.Project project) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowSubfolders()
Some project elements may be organized in subfolders, other may not.
|
protected String |
expectedFolder() |
List<org.squashtest.ta.intellij.plugin.macro.psi.SquashMacroMacroTitle> |
getMacroTitlesInProjectShortcutsFolder()
This method is to get all non-empty-macro-titles in the project 'shortcuts' folder
|
String |
getProjectBasePath() |
List<File> |
getProjectSquashFiles() |
protected boolean |
isInExpectedFolder(String currentFilePath) |
boolean |
isInShortCutsFolder(String currentFilePath)
This method is to check if the working TA macro definition file is in the project 'src/squashTA/shortcuts' folder
|
public SquashMacroFileLocationProjectServiceImpl(com.intellij.openapi.project.Project project)
public List<org.squashtest.ta.intellij.plugin.macro.psi.SquashMacroMacroTitle> getMacroTitlesInProjectShortcutsFolder()
getMacroTitlesInProjectShortcutsFolder
in interface SquashMacroFileLocationProjectService
public boolean isInShortCutsFolder(String currentFilePath)
isInShortCutsFolder
in interface SquashMacroFileLocationProjectService
currentFilePath
- the current TA test file path@NotNull protected String expectedFolder()
protected boolean allowSubfolders()
public String getProjectBasePath()
public List<File> getProjectSquashFiles()
protected boolean isInExpectedFolder(String currentFilePath)
Copyright © 2018-2019 Henix. All Rights Reserved.