diff options
Diffstat (limited to 'org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java')
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java b/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java index 16b73af72..654152ca9 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroURLFactory.java @@ -31,44 +31,44 @@ import org.eclipse.ui.internal.intro.impl.model.url.IntroURLParser; */ public final class IntroURLFactory { - /** - * Non-instantiable. - */ - private IntroURLFactory() { - // do nothing - } + /** + * Non-instantiable. + */ + private IntroURLFactory() { + // do nothing + } - /** - * Parses the given string, and returns an IntroURL if the string is a valid - * Intro URL. Returns null in all other cases. Example usage: - * - * <pre> - * StringBuilder url = new StringBuilder(); - * url.append("http://org.eclipse.ui.intro/showStandby?"); - * url.append("pluginId=org.eclipse.pde.ui"); - * url.append("&"); - * url.append("partId=org.eclipse.pde.ui.sampleStandbyPart"); - * url.append("&"); - * url.append("input="); - * url.append(sampleId); - * IIntroURL introURL = IntroURLFactory.createIntroURL(url.toString()); - * if (introURL != null) { - * introURL.execute(); - * } - * </pre> - * - * @param url - * the url to construct an IntroURL from - * @return an IntroURL, or <code>null</code> if the url is invalid - */ - public static IIntroURL createIntroURL(String url) { - IntroURLParser parser = new IntroURLParser(url); - if (parser.hasIntroUrl()) { - IntroURL introURL = parser.getIntroURL(); - return introURL; - } - return null; - } + /** + * Parses the given string, and returns an IntroURL if the string is a valid + * Intro URL. Returns null in all other cases. Example usage: + * + * <pre> + * StringBuilder url = new StringBuilder(); + * url.append("http://org.eclipse.ui.intro/showStandby?"); + * url.append("pluginId=org.eclipse.pde.ui"); + * url.append("&"); + * url.append("partId=org.eclipse.pde.ui.sampleStandbyPart"); + * url.append("&"); + * url.append("input="); + * url.append(sampleId); + * IIntroURL introURL = IntroURLFactory.createIntroURL(url.toString()); + * if (introURL != null) { + * introURL.execute(); + * } + * </pre> + * + * @param url + * the url to construct an IntroURL from + * @return an IntroURL, or <code>null</code> if the url is invalid + */ + public static IIntroURL createIntroURL(String url) { + IntroURLParser parser = new IntroURLParser(url); + if (parser.hasIntroUrl()) { + IntroURL introURL = parser.getIntroURL(); + return introURL; + } + return null; + } } |