private void displayPlatform() { Bundle b = context.getBundle(); Version v = PluginUtilities.getBundleVersion(b); logger.info("Starting Protege 4 OWL Editor (Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + ", Build = " + PluginUtilities.getBuildNumber(b) + ")"); logger.info("Platform:"); logger.info(" Java: JVM " + System.getProperty("java.runtime.version") + " Memory: " + (Runtime.getRuntime().maxMemory() / 1000000) + "M"); logger.info(" Language: " + Locale.getDefault().getLanguage() + ", Country: " + Locale.getDefault().getCountry()); logger.info(" Framework: " + context.getProperty(Constants.FRAMEWORK_VENDOR) + " (" + context.getProperty(Constants.FRAMEWORK_VERSION) + ")"); logger.info(" OS: " + context.getProperty(Constants.FRAMEWORK_OS_NAME) + " (" + context.getProperty(Constants.FRAMEWORK_OS_VERSION) + ")"); logger.info(" Processor: " + context.getProperty(Constants.FRAMEWORK_PROCESSOR)); }
private void displayPlatform() { Bundle thisBundle = context.getBundle(); Version v = PluginUtilities.getBundleVersion(thisBundle); logger.info("Starting Protege 4 OWL Editor (Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + ", Build = " + PluginUtilities.getBuildNumber(thisBundle) + ")"); logger.info("Platform:"); logger.info(" Java: JVM " + System.getProperty("java.runtime.version") + " Memory: " + (Runtime.getRuntime().maxMemory() / 1000000) + "M"); logger.info(" Language: " + Locale.getDefault().getLanguage() + ", Country: " + Locale.getDefault().getCountry()); logger.info(" Framework: " + context.getProperty(Constants.FRAMEWORK_VENDOR) + " (" + context.getProperty(Constants.FRAMEWORK_VERSION) + ")"); logger.info(" OS: " + context.getProperty(Constants.FRAMEWORK_OS_NAME) + " (" + context.getProperty(Constants.FRAMEWORK_OS_VERSION) + ")"); logger.info(" Processor: " + context.getProperty(Constants.FRAMEWORK_PROCESSOR)); for (Bundle plugin : context.getBundles()) { if (isPlugin(plugin)) { logger.info("Plugin: " + getNiceBundleName(plugin) + " (" + plugin.getVersion() + ")"); } } for (Bundle plugin : context.getBundles()) { if (isPlugin(plugin)) { pluginSanityCheck(plugin); } } }
public AboutPanel() { setLayout(new BorderLayout()); JPanel pluginPanel = new JPanel(new BorderLayout()); pluginPanel.add(new JScrollPane(new PluginInfoTable())); pluginPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Plugin information"), BorderFactory.createEmptyBorder(10, 10, 10, 10))); add(pluginPanel); JPanel logoPanel = new JPanel(new BorderLayout(3, 3)); JLabel logoLabel = new JLabel(Icons.getIcon("logo.banner.gif")); logoPanel.add(logoLabel, BorderLayout.NORTH); BundleContext applicationContext = PluginUtilities.getInstance().getApplicationContext(); Bundle application = applicationContext.getBundle(); Version v = PluginUtilities.getBundleVersion(application); String build = PluginUtilities.getBuildNumber(application); String versionString = "Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + " (Build " + build + ")"; JLabel label = new JLabel(versionString, JLabel.CENTER); logoPanel.add(label, BorderLayout.SOUTH); logoPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 20, 5)); add(logoPanel, BorderLayout.NORTH); JLabel copy = new JLabel( "<html><body>Protege is a collaborative development effort between Stanford University and University of Manchester.<br><br>" + "Protege-OWL 4 and Protege-Core Framework Copyright (c) The University of Manchester 2006"); copy.setFont(copy.getFont().deriveFont(10.0f)); copy.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10)); add(copy, BorderLayout.SOUTH); }
public AboutPanel() { setLayout(new BorderLayout()); JPanel pluginPanel = new JPanel(new BorderLayout()); pluginPanel.add(new JScrollPane(new PluginInfoTable())); pluginPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Plugin information"), BorderFactory.createEmptyBorder(10, 10, 10, 10))); add(pluginPanel); JPanel logoPanel = new JPanel(new BorderLayout(3, 3)); JLabel logoLabel = new JLabel(Icons.getIcon("logo.banner.gif")); logoPanel.add(logoLabel, BorderLayout.NORTH); BundleContext applicationContext = PluginUtilities.getInstance().getApplicationContext(); Bundle application = applicationContext.getBundle(); Version v = PluginUtilities.getBundleVersion(application); String build = PluginUtilities.getBuildNumber(application); String versionString = "Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + " (Build " + build + ")"; JLabel label = new JLabel(versionString, JLabel.CENTER); logoPanel.add(label, BorderLayout.SOUTH); logoPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 20, 5)); add(logoPanel, BorderLayout.NORTH); JLabel copy = new JLabel( "<html><body>Protege is a collaborative development effort between Stanford University and University of Manchester.<br><br>" + "Protege-OWL 4 and Protege-Core Framework Copyright (c) The University of Manchester 2006"); copy.setFont(copy.getFont().deriveFont(10.0f)); copy.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10)); add(copy, BorderLayout.SOUTH); }