mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
convert DefaultUrlOpener to kotlin
This commit is contained in:
@@ -13,19 +13,16 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.ide.browsers.impl;
|
||||
package com.intellij.ide.browsers.impl
|
||||
|
||||
import com.intellij.ide.browsers.BrowserLauncher;
|
||||
import com.intellij.ide.browsers.UrlOpener;
|
||||
import com.intellij.ide.browsers.WebBrowser;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import com.intellij.ide.browsers.BrowserLauncher
|
||||
import com.intellij.ide.browsers.UrlOpener
|
||||
import com.intellij.ide.browsers.WebBrowser
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.util.ArrayUtil
|
||||
|
||||
final class DefaultUrlOpener extends UrlOpener {
|
||||
@Override
|
||||
public boolean openUrl(@NotNull WebBrowser browser, @NotNull String url, @Nullable Project project) {
|
||||
return BrowserLauncher.getInstance().browseUsingPath(url, null, browser, project, ArrayUtil.EMPTY_STRING_ARRAY);
|
||||
internal class DefaultUrlOpener : UrlOpener() {
|
||||
override fun openUrl(browser: WebBrowser, url: String, project: Project?): Boolean {
|
||||
return BrowserLauncher.instance.browseUsingPath(url, null, browser, project, ArrayUtil.EMPTY_STRING_ARRAY)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user