Commit f8b61a8a authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub

fix(RestAPIExtension) convert to rest api extension project action (#1471)

When pulling changes in a git repo (same applies with svn), if a new rest api extension has been created it is not imported as an eclipse project
A new action is given in the package explorer for that specific use case
parent cc162afb
......@@ -15,6 +15,7 @@
package org.bonitasoft.studio.application.views.provider;
import java.io.IOException;
import java.util.Objects;
import java.util.Optional;
import org.bonitasoft.studio.common.log.BonitaStudioLog;
......@@ -100,6 +101,7 @@ public class BonitaExplorerLabelProvider extends JavaNavigatorLabelProvider {
return super.getImage(element);
}
@Override
public StyledString getStyledText(Object element) {
RepositoryManager repositoryManager = RepositoryManager.getInstance();
......@@ -116,7 +118,7 @@ public class BonitaExplorerLabelProvider extends JavaNavigatorLabelProvider {
}
IRepositoryFileStore fStore = asFileStore(element, repositoryManager);
if (fStore != null) {
if (fStore != null && Objects.equals(fStore.getResource(), element)) {
return fStore.getStyledString();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment