Skip to content
Snippets Groups Projects
Commit 3a06fbcf authored by Andreas Wandinger's avatar Andreas Wandinger
Browse files

Bugfix of location provider.

refs 560
parent abc029dc
No related branches found
No related tags found
No related merge requests found
......@@ -36,13 +36,13 @@ import org.fortiss.tooling.kernel.service.IEclipseResourceStorageService;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B005A67C7F154C82209F24DB2DDAD99E
* @ConQAT.Rating GREEN Hash: 3AA02B7A5B29D6E1803E2BD90EE165DD
*/
public interface IEclipseResourceStorageLocationProvider {
/**
* Returns whether the given {@link IFile} should be considered as a model
* file.
* file (only files with an extension are given to this location provider).
*/
boolean isStorageLocation(IFile file);
}
......@@ -130,6 +130,9 @@ public class EclipseResourceStorageProvider implements
* location provider validates the given file as model storage file.
*/
private boolean checkLocationProvider(IFile file) {
if (file.getFileExtension() == null) {
return false;
}
for (IEclipseResourceStorageLocationProvider provider : storageProviderList) {
if (provider.isStorageLocation(file)) {
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment