PT #164971098: Fix Inro URL constants. Properly create Location instance
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 = "(";
|
||||
|
||||
Reference in New Issue
Block a user