/** @see toolbox.util.ui.plaf.ActivateLookAndFeelAction#activate() */ public void activate() throws Exception { LAFInfo info = getLookAndFeelInfo(); String name = info.getProperty("theme.name"); String path = info.getProperty("theme.path"); logger_.debug("Activating " + info.getName() + " " + name + " " + path); Skin skin = SkinLookAndFeel.loadThemePack(ResourceUtil.getResource(path)); SkinLookAndFeel.setSkin(skin); super.activate(); }
/** * Launches the RepositoryAuditor. The only argument supported is the name of the properties file * containing configuration information. If no file name is specified, then clearcase.properties * is used as the default. * * @param args Name of the properties file to use for configuration. Should exist on the * classpath. */ public static void main(String[] args) { // Hardcode config defaults Properties props = new Properties(); props.setProperty(PROP_VIEW_PATH, "m:\\x1700_sandbox\\staffplanning"); props.setProperty(PROP_HISTORY_DAYS, "15"); String propsFile = args.length == 0 ? FILENAME_CLEARCASE_PROPS : args[0]; try { // Override with settings from props file if available InputStream is = ResourceUtil.getResource(propsFile); if (is != null) { props.load(is); IOUtils.closeQuietly(is); } RepositoryAuditor auditor = new RepositoryAuditor(props); auditor.run(); } catch (IOException e) { logger_.error("main", e); } }