com.intellij.ide.browsers.WebBrowserReferenceConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml Show documentation
Show all versions of xml Show documentation
A packaging of the IntelliJ Community Edition xml library.
This is release number 1 of trunk branch 142.
The newest version!
package com.intellij.ide.browsers;
import com.intellij.util.xmlb.Converter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class WebBrowserReferenceConverter extends Converter {
@Nullable
@Override
public WebBrowser fromString(@NotNull String value) {
return WebBrowserManager.getInstance().findBrowserById(value);
}
@NotNull
@Override
public String toString(@NotNull WebBrowser browser) {
return browser.getId().toString();
}
}