PlatformManager platform = PlatformManagerFactory.getPlatformManager();
int platformType = platform.getPlatformType();
if (platformType == PlatformManager.PT_WINDOWS) {
PlatformManagerUpdateChecker plugin = new PlatformManagerUpdateChecker();
plugin.initialize(pluginInterface);
} else if (platformType == PlatformManager.PT_UNIX) {
PlatformManagerUnixPlugin plugin = new PlatformManagerUnixPlugin();
plugin.initialize(pluginInterface);
} else {
Properties pluginProperties = pluginInterface.getPluginProperties();
pluginProperties.setProperty("plugin.name", "Platform-Specific Support");
pluginProperties.setProperty("plugin.version", "1.0");
pluginProperties.setProperty("plugin.version.info",
"Not required for this platform");
}