From d9bef7b03a7c81e26a25ec876cea7477bc3d9689 Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Fri, 9 Mar 2012 14:54:07 +0000 Subject: Fixes style formating, javadoc and eclipse related warnings. --- .../communicator/plugin/branding/AboutWindow.java | 14 ++++++++++ .../branding/AboutWindowPluginComponent.java | 5 ++++ .../plugin/branding/BrandingActivator.java | 10 ++++++- .../plugin/branding/JitsiWarningWindow.java | 10 +++++++ .../plugin/branding/WelcomeWindow.java | 32 +++++++++++++++++----- 5 files changed, 63 insertions(+), 8 deletions(-) (limited to 'src/net/java/sip/communicator/plugin/branding') diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java index c9fc8f7..f183f22 100644 --- a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java +++ b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java @@ -39,6 +39,10 @@ public class AboutWindow ExportedWindow, Skinnable { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * The global/shared AboutWindow currently showing. @@ -252,6 +256,11 @@ public class AboutWindow extends JPanel implements Skinnable { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final Logger logger = Logger.getLogger(WindowBackground.class); @@ -403,6 +412,11 @@ public class AboutWindow */ private class CloseAction extends UIAction { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public void actionPerformed(ActionEvent e) { setVisible(false); diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java index 30e2955..e784b90 100644 --- a/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java +++ b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java @@ -33,6 +33,11 @@ public class AboutWindowPluginComponent private JMenuItem aboutMenuItem; + /** + * Constructor. + * + * @param container parent container + */ public AboutWindowPluginComponent(Container container) { super(container); diff --git a/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java b/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java index c2c1b5f..3274785 100644 --- a/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java +++ b/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java @@ -16,6 +16,9 @@ import net.java.sip.communicator.util.*; import org.osgi.framework.*; +/** + * Branding bundle activator. + */ public class BrandingActivator implements BundleActivator { @@ -30,7 +33,7 @@ public class BrandingActivator = "net.java.sip.communicator.plugin.branding.SHOW_SPLASH_SCREEN"; private static BundleContext bundleContext; - + private static ResourceManagementService resourcesService; public void start(BundleContext bc) throws Exception @@ -254,6 +257,11 @@ public class BrandingActivator : (ConfigurationService) bundleContext.getService(serRef); } + /** + * Returns the ResourceManagementService. + * + * @return the ResourceManagementService. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java b/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java index f27c401..e037729 100644 --- a/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java +++ b/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java @@ -27,6 +27,11 @@ public class JitsiWarningWindow extends SIPCommDialog { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Creates an JitsiWarningWindow by specifying the parent frame * owner. * @param owner the parent owner @@ -133,6 +138,11 @@ public class JitsiWarningWindow */ private class CloseAction extends UIAction { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public void actionPerformed(ActionEvent e) { setVisible(false); diff --git a/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java b/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java index b933bc7..61e7a9e 100644 --- a/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java +++ b/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java @@ -21,11 +21,16 @@ import net.java.sip.communicator.util.swing.*; * The WelcomeWindow is actually the splash screen shown while the * application is loading. It displays the status of the loading process and * some general information about the version, licenses and contact details. - * + * * @author Yana Stamcheva */ public class WelcomeWindow extends JDialog { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final String APPLICATION_NAME = BrandingActivator.getResources() .getSettingsString("service.gui.APPLICATION_NAME"); @@ -40,6 +45,9 @@ public class WelcomeWindow extends JDialog private final JLabel bundleLabel = new JLabel(); + /** + * Constructor. + */ public WelcomeWindow() { JLabel titleLabel = new JLabel(APPLICATION_NAME); @@ -109,7 +117,7 @@ public class WelcomeWindow extends JDialog /** * Initializes the title label. - * + * * @param titleLabel the title label */ private void initTitleLabel(JLabel titleLabel) @@ -122,7 +130,7 @@ public class WelcomeWindow extends JDialog /** * Initializes the version label. - * + * * @param versionLabel the version label */ private void initVersionLabel(JLabel versionLabel) @@ -135,7 +143,7 @@ public class WelcomeWindow extends JDialog /** * Initializes the logo area. - * + * * @param logoArea the logo area */ private void initLogoArea(JTextArea logoArea) @@ -158,7 +166,7 @@ public class WelcomeWindow extends JDialog /** * Initializes the copyright area. - * + * * @param rightsArea the copyright area. */ private void initRightsArea(StyledHTMLEditorPane rightsArea) @@ -185,7 +193,7 @@ public class WelcomeWindow extends JDialog /** * Initializes the license area. - * + * * @param licenseArea the license area. */ private void initLicenseArea(StyledHTMLEditorPane licenseArea) @@ -277,7 +285,7 @@ public class WelcomeWindow extends JDialog /** * Sets the name of the currently loading bundle. - * + * * @param bundleName the name of the bundle to display */ public void setBundle(String bundleName) @@ -293,6 +301,11 @@ public class WelcomeWindow extends JDialog */ private class CloseAction extends UIAction { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public void actionPerformed(ActionEvent e) { WelcomeWindow.this.close(); @@ -305,6 +318,11 @@ public class WelcomeWindow extends JDialog private static class WindowBackground extends JPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private BufferedImage cache; private int cacheHeight; -- cgit v1.1