Skip to content

Commit

Permalink
call getJavaProject when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed May 21, 2024
1 parent 2c80763 commit 99ab547
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public XtextResource getResourceFor(InputStream stream) {
XtextResourceSet resourceSet = resourceSetProvider.get();
initializeTypeProvider(resourceSet);
try {
String projectFullPath = javaProject.getProject().getFullPath().toString();
String projectFullPath = getJavaProject(resourceSet).getProject().getFullPath().toString();
URI resourceUri = URI.createPlatformResourceURI(projectFullPath + "/" + getProjectRelativePath() + "/" + "Test." + fileExtensionProvider.getPrimaryFileExtension(), true);

/*
Expand Down

0 comments on commit 99ab547

Please sign in to comment.