mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reduce usage of BrowserHyperlinkInfo
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user