reduce usage of BrowserHyperlinkInfo

This commit is contained in:
Vladimir Krivosheev
2017-04-21 16:16:43 +02:00
parent a2df489848
commit 16e582a112
2 changed files with 5 additions and 5 deletions
@@ -122,8 +122,7 @@ abstract class ProjectStoreBase(override final val project: ProjectImpl) : Compo
fun convertProfiles(profileIterator: MutableIterator<Element>, isInspection: Boolean) {
for (profile in profileIterator) {
val schemeName = profile.getChildren("option").find { it.getAttributeValue("name") == "myName" }?.getAttributeValue(
"value") ?: continue
val schemeName = profile.getChildren("option").find { it.getAttributeValue("name") == "myName" }?.getAttributeValue("value") ?: continue
profileIterator.remove()
val wrapper = Element("component").attribute("name", if (isInspection) "InspectionProjectProfileManager" else "CopyrightManager")
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2006 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import com.intellij.ide.BrowserUtil;
import com.intellij.openapi.project.Project;
/**
* @author Kir
* Consider to use OpenUrlHyperlinkInfo.
*/
public class BrowserHyperlinkInfo implements HyperlinkInfo {
private final String myUrl;
@@ -29,9 +29,10 @@ public class BrowserHyperlinkInfo implements HyperlinkInfo {
}
public void navigate(Project project) {
openUrl(myUrl);
BrowserUtil.browse(myUrl);
}
@Deprecated
public static void openUrl(String url) {
BrowserUtil.browse(url);
}