diff --git a/.classpath b/.classpath index 41c12bade..6de35ee22 100755 --- a/.classpath +++ b/.classpath @@ -60,7 +60,6 @@ - diff --git a/build.xml b/build.xml index 93df63d7f..6aa28ed99 100644 --- a/build.xml +++ b/build.xml @@ -206,10 +206,6 @@ - - - - @@ -811,20 +807,14 @@ - - - - - + @@ -918,93 +908,22 @@ - - - - - - - - - - - - - - - - - - - This target can only run inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2185,21 +2104,6 @@ javax.swing.event, javax.swing.border"/> - - - - - - - - - - - - toolsMenuFilter = - new Hashtable(); - toolsMenuFilter.put(Container.CONTAINER_ID, - Container.CONTAINER_TOOLS_MENU.getID()); - - menuRegistration = bc.registerService( - PluginComponentFactory.class.getName(), - new PluginComponentFactory(Container.CONTAINER_TOOLS_MENU) - { - @Override - protected PluginComponent getPluginInstance() - { - return new SettingsWindowMenuEntry( - Container.CONTAINER_TOOLS_MENU, this); - } - }, - toolsMenuFilter); - - if (logger.isInfoEnabled()) - logger.info("PROFILER4J [REGISTERED]"); - - } - - public void stop(BundleContext bc) throws Exception { - if (menuRegistration != null) - { - menuRegistration.unregister(); - if (logger.isInfoEnabled()) - logger.info("PROFILER4J [UNREGISTERED]"); - } - } - -} diff --git a/src/net/java/sip/communicator/plugin/profiler4j/Resources.java b/src/net/java/sip/communicator/plugin/profiler4j/Resources.java deleted file mode 100644 index c69a8a54a..000000000 --- a/src/net/java/sip/communicator/plugin/profiler4j/Resources.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * - * Copyright @ 2015 Atlassian Pty Ltd - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.java.sip.communicator.plugin.profiler4j; - -import net.java.sip.communicator.service.resources.*; - -import org.jitsi.service.resources.*; - -/** - * The Messages class manages the access to the internationalization properties - * files. - * - * @author Vladimir Skarupelov; - */ -public class Resources -{ - private static ResourceManagementService resourcesService = null; - - /** - * Returns an internationalized string corresponding to the given key. - * - * @param key The key of the string. - * @return An internationalized string corresponding to the given key. - */ - public static String getString(String key) - { - return getResources().getI18NString(key); - } - - /** - * Returns the ResourceManagementService. - * - * @return the ResourceManagementService. - */ - public static ResourceManagementService getResources() - { - if (resourcesService == null) - resourcesService = - ResourceManagementServiceUtils - .getService(ProfilerActivator.bundleContext); - return resourcesService; - } -} diff --git a/src/net/java/sip/communicator/plugin/profiler4j/SettingsWindowMenuEntry.java b/src/net/java/sip/communicator/plugin/profiler4j/SettingsWindowMenuEntry.java deleted file mode 100644 index 1e597868f..000000000 --- a/src/net/java/sip/communicator/plugin/profiler4j/SettingsWindowMenuEntry.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * - * Copyright @ 2015 Atlassian Pty Ltd - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.java.sip.communicator.plugin.profiler4j; - -import java.awt.event.*; - -import javax.swing.*; - -import net.java.sip.communicator.service.gui.*; -import net.sf.profiler4j.console.*; - -/** - * Menu entry for the profiler plug-in - * - * @author Vladimir Skarupelov - */ -public class SettingsWindowMenuEntry - extends AbstractPluginComponent -{ - private static final String PROFILER_NAME = "plugin.profiler.PLUGIN_NAME"; - private JMenuItem settingsMenuEntry; - - public SettingsWindowMenuEntry(Container container, - PluginComponentFactory parentFactory) - { - super(container, parentFactory); - - settingsMenuEntry = new JMenuItem(Resources.getString( PROFILER_NAME )); - settingsMenuEntry.addActionListener(new ActionListener() - { - public void actionPerformed(ActionEvent e) - { - Prefs prefs = new Prefs(); - - System.setProperty("swing.aatext", - String.valueOf(prefs.isAntialiasing())); - - final Console app = new Console(prefs); - app.connect(); - MainFrame f = new MainFrame(app); - app.setMainFrame(f); - f.pack(); - f.setVisible(true); - } - }); - } - - public Object getComponent() - { - return settingsMenuEntry; - } - - public String getName() - { - return Resources.getString( PROFILER_NAME ); - } -} diff --git a/src/net/java/sip/communicator/plugin/profiler4j/profiler4j.manifest.mf b/src/net/java/sip/communicator/plugin/profiler4j/profiler4j.manifest.mf deleted file mode 100644 index 9e3ebf44d..000000000 --- a/src/net/java/sip/communicator/plugin/profiler4j/profiler4j.manifest.mf +++ /dev/null @@ -1,24 +0,0 @@ -Bundle-Activator: net.java.sip.communicator.plugin.profiler4j.ProfilerActivator -Bundle-Name: Integrated profiler plugin -Bundle-Description: A bundle that provides profile cpu and memory of the running app. -Bundle-Vendor: jitsi.org -Bundle-Version: 0.0.1 -Bundle-SymbolicName: net.java.sip.communicator.plugin.profiler4j -Import-Package: org.apache.commons.logging, - org.osgi.framework, - org.xml.sax, - org.xml.sax.ext, - org.xml.sax.helpers, - net.java.sip.communicator.service.contactlist, - net.java.sip.communicator.service.gui, - org.jitsi.service.resources, net.java.sip.communicator.service.resources, - net.java.sip.communicator.service.protocol, - net.java.sip.communicator.util, - javax.swing, - javax.swing.border, - javax.swing.event, - javax.swing.filechooser, - javax.swing.table, - javax.swing.text, - javax.swing.tree, - javax.xml.parsers