Class IntroURLFactory
java.lang.Object
org.eclipse.ui.intro.config.IntroURLFactory
Factory class used to create instances of an Intro URL. Instances of intro
URLs need to be created if you need to programatically construct and execute
a valid Intro URL.
This class provides all its functionality via static members. It is not intended to be instantiated.
- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IIntroURLcreateIntroURL(String url) Parses the given string, and returns an IntroURL if the string is a valid Intro URL.
-
Method Details
-
createIntroURL
Parses the given string, and returns an IntroURL if the string is a valid Intro URL. Returns null in all other cases. Example usage: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(); }- Parameters:
url- the url to construct an IntroURL from- Returns:
- an IntroURL, or
nullif the url is invalid
-