PT #164971098: Fix Inro URL constants. Properly create Location instance

This commit is contained in:
BoykoAlex
2019-03-28 17:27:17 -04:00
parent 46a936b324
commit 6b514c0831
4 changed files with 13 additions and 5 deletions

View File

@@ -430,7 +430,9 @@ public class STS4LanguageClientImpl extends LanguageClientImpl implements STS4La
if (element != null ) {
IJavaProject project = element.getJavaProject() == null ? ResourceUtils.getJavaProject(projectUri) : element.getJavaProject();
if (project != null) {
return new Location(Utils.eclipseIntroUri(project.getElementName(), params.getBindingKey()).toString(), null);
Location location = new Location();
location.setUri(Utils.eclipseIntroUri(project.getElementName(), params.getBindingKey()).toString());
return location;
}
}
} catch (Exception e) {

View File

@@ -31,7 +31,7 @@ import org.eclipse.ui.PlatformUI;
@SuppressWarnings("restriction")
public class Utils {
private static final String URL_PREFIX = "https://org.eclipse.ui.intro/execute?command=";
private static final String URL_PREFIX = "http://org.eclipse.ui.intro/execute?command=";
private static final String EQUALS = "=";
private static final String PARAMETERS_SEPARATOR = ",";
private static final String PARAMETERS_START = "(";