diff options
99 files changed, 868 insertions, 408 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java b/src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java index d49860e..1b0274c 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java @@ -398,7 +398,8 @@ public class ScServiceDiscoveryManager } /** - * Returns a list of the Items {@link DiscoverItems.Item} defined in the + * Returns a list of the Items + * {@link org.jivesoftware.smackx.packet.DiscoverItems.Item} defined in the * node or in other words <tt>null</tt> since we don't support any. * * @return always <tt>null</tt> since we don't support items. @@ -786,7 +787,7 @@ public class ScServiceDiscoveryManager { entities.put(entityID, caps); entities.notifyAll(); - + if(retrieverThread == null) { start(); diff --git a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingClientSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingClientSipImpl.java index f6f3673..b1c1050 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingClientSipImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingClientSipImpl.java @@ -432,22 +432,6 @@ public class OperationSetDesktopSharingClientSipImpl } /** - * Gets the <tt>Call</tt> of the <tt>CallPeerSipImpl</tt> subscribed to - * the <tt>EventPackageNotifier</tt> and represented by this - * <tt>Subscription</tt>. - * - * @return the <tt>Call</tt> of the <tt>CallPeerSipImpl</tt> subscribed - * to the <tt>EventPackageNotifier</tt> and represented by this - * <tt>Subscription</tt> - */ - public CallSipImpl getCall() - { - CallPeerSipImpl callPeer = getCallPeer(); - - return (callPeer == null) ? null : callPeer.getCall(); - } - - /** * Gets the <tt>CallPeerSipImpl</tt> subscribed to the * <tt>EventPackageNotifier</tt> and represented by this * <tt>Subscription</tt>. diff --git a/src/net/java/sip/communicator/impl/protocol/sip/ServerStoredContactListSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/ServerStoredContactListSipImpl.java index 613b1a0..404307a 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/ServerStoredContactListSipImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/ServerStoredContactListSipImpl.java @@ -409,9 +409,6 @@ public class ServerStoredContactListSipImpl * * @param contact the contact to be renamed. * @param newName the new contact name. - * @throws OperationFailedException with code NETWORK_FAILURE if the - * operation if failed during network - * communication. */ synchronized public void renameContact( ContactSipImpl contact, @@ -1606,7 +1603,7 @@ public class ServerStoredContactListSipImpl try { Element typeElement = null; - + for(Element el : anyElements) { if(el.getNodeName().equals(CONTACT_TYPE_ELEMENT_NAME)) diff --git a/src/net/java/sip/communicator/impl/protocol/zeroconf/ClientThread.java b/src/net/java/sip/communicator/impl/protocol/zeroconf/ClientThread.java index 3bb131f..db41068 100644 --- a/src/net/java/sip/communicator/impl/protocol/zeroconf/ClientThread.java +++ b/src/net/java/sip/communicator/impl/protocol/zeroconf/ClientThread.java @@ -91,7 +91,7 @@ public class ClientThread .getPPS() .getOperationSet(OperationSetTypingNotifications.class); this.setDaemon(true); - + try { out = sock.getOutputStream(); @@ -267,9 +267,8 @@ public class ClientThread opSetBasicIM.fireMessageReceived(msg, contact); - opSetTyping. - fireTypingNotificationsEvent((Contact)contact, - opSetTyping.STATE_STOPPED); + opSetTyping.fireTypingNotificationsEvent((Contact)contact, + OperationSetTypingNotificationsZeroconfImpl.STATE_STOPPED); break; case MessageZeroconfImpl.TYPING: @@ -281,9 +280,8 @@ public class ClientThread if (contact == null) //TODO: Parse contact id to double-check contact = bonjourService.getContact(null, remoteIPAddress); - opSetTyping. - fireTypingNotificationsEvent((Contact)contact, - opSetTyping.STATE_TYPING); + opSetTyping.fireTypingNotificationsEvent((Contact)contact, + OperationSetTypingNotificationsZeroconfImpl.STATE_TYPING); /* TODO: code a private runnable class to be used as timeout * to set the typing state to STATE_PAUSED when a few seconds diff --git a/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetBasicInstantMessagingZeroconfImpl.java b/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetBasicInstantMessagingZeroconfImpl.java index 2b2d06d..b653876 100644 --- a/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetBasicInstantMessagingZeroconfImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/zeroconf/OperationSetBasicInstantMessagingZeroconfImpl.java @@ -75,8 +75,8 @@ public class OperationSetBasicInstantMessagingZeroconfImpl throw new IllegalArgumentException( "The specified contact is not a Zeroconf contact." + to); - - MessageZeroconfImpl msg = + + MessageZeroconfImpl msg = (MessageZeroconfImpl)createMessage(message.getContent()); deliverMessage(msg, (ContactZeroconfImpl)to); @@ -95,9 +95,9 @@ public class OperationSetBasicInstantMessagingZeroconfImpl private void deliverMessage(Message message, ContactZeroconfImpl to) { ClientThread thread = to.getClientThread(); - try + try { - if (thread == null) + if (thread == null) { Socket sock; if (logger.isDebugEnabled()) @@ -109,26 +109,26 @@ public class OperationSetBasicInstantMessagingZeroconfImpl thread.setContact(to); to.setClientThread(thread); thread.sendHello(); - if (to.getClientType() == to.GAIM) + if (to.getClientType() == ContactZeroconfImpl.GAIM) { - try + try { Thread.sleep(300); - } - catch (InterruptedException ex) + } + catch (InterruptedException ex) { logger.error(ex); } } - } - + } + //System.out.println("ZEROCONF: Message content => "+ //message.getContent()); thread.sendMessage((MessageZeroconfImpl) message); - + fireMessageDelivered(message, to); - } - catch (IOException ex) + } + catch (IOException ex) { logger.error(ex); } @@ -137,7 +137,7 @@ public class OperationSetBasicInstantMessagingZeroconfImpl /** * Notifies all registered message listeners that a message has been * received. - * + * * @param message the <tt>Message</tt> that has been received. * @param from the <tt>Contact</tt> that <tt>message</tt> was received from. */ @@ -164,7 +164,7 @@ public class OperationSetBasicInstantMessagingZeroconfImpl { return true; } - + /** * Determines whether the protocol supports the supplied content type * diff --git a/src/net/java/sip/communicator/impl/protocol/zeroconf/ProtocolIconZeroconfImpl.java b/src/net/java/sip/communicator/impl/protocol/zeroconf/ProtocolIconZeroconfImpl.java index 8810512..ccc1b89 100644 --- a/src/net/java/sip/communicator/impl/protocol/zeroconf/ProtocolIconZeroconfImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/zeroconf/ProtocolIconZeroconfImpl.java @@ -18,7 +18,7 @@ import org.osgi.framework.*; /** * Represents the Zeroconf protocol icon. Implements the <tt>ProtocolIcon</tt> * interface in order to provide a Zeroconf logo image in two different sizes. - * + * * @author Christian Vincenot * @author Jonathan Martin */ @@ -26,7 +26,7 @@ public class ProtocolIconZeroconfImpl implements ProtocolIcon { private static Logger logger - = Logger.getLogger(ProtocolIconZeroconfImpl.class); + = Logger.getLogger(ProtocolIconZeroconfImpl.class); private static ResourceManagementService resourcesService; @@ -35,7 +35,7 @@ public class ProtocolIconZeroconfImpl */ private static Hashtable<String, byte[]> iconsTable = new Hashtable<String, byte[]>(); - static + static { iconsTable.put(ProtocolIcon.ICON_SIZE_16x16, getImageInBytes("service.protocol.zeroconf.ZEROCONF_16x16")); @@ -55,7 +55,7 @@ public class ProtocolIconZeroconfImpl */ private static Hashtable<String, String> iconPathsTable = new Hashtable<String, String>(); - static + static { iconPathsTable.put(ProtocolIcon.ICON_SIZE_16x16, getResources().getImagePath( @@ -126,12 +126,12 @@ public class ProtocolIconZeroconfImpl /** * Returns the byte representation of the image corresponding to the given * identifier. - * + * * @param imageID the identifier of the image * @return the byte representation of the image corresponding to the given * identifier. */ - public static byte[] getImageInBytes(String imageID) + public static byte[] getImageInBytes(String imageID) { InputStream in = getResources(). getImageInputStream(imageID); @@ -139,13 +139,13 @@ public class ProtocolIconZeroconfImpl if (in == null) return null; byte[] image = null; - try + try { image = new byte[in.available()]; in.read(image); } - catch (IOException e) + catch (IOException e) { logger.error("Failed to load image:" + imageID, e); } @@ -153,6 +153,11 @@ public class ProtocolIconZeroconfImpl return image; } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt> + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/accountinfo/Resources.java b/src/net/java/sip/communicator/plugin/accountinfo/Resources.java index afbbf1a..7ece21a 100644 --- a/src/net/java/sip/communicator/plugin/accountinfo/Resources.java +++ b/src/net/java/sip/communicator/plugin/accountinfo/Resources.java @@ -13,7 +13,7 @@ import net.java.sip.communicator.service.resources.*; /**
* The <tt>Resources</tt> class manages the access to the internationalization
* properties files and the image resources used in this plugin.
- *
+ *
* @author Yana Stamcheva
*/
public class Resources
@@ -39,7 +39,7 @@ public class Resources {
return getResources().getImage(imageID);
}
-
+
/**
* Loads an image from a given image identifier.
* @param imageID The identifier of the image.
@@ -49,7 +49,12 @@ public class Resources {
return getResources().getImageInBytes(imageID);
}
-
+
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/branding/MacOSXAboutRegistration.java b/src/net/java/sip/communicator/plugin/branding/MacOSXAboutRegistration.java index e029e87..5ccafc8 100644 --- a/src/net/java/sip/communicator/plugin/branding/MacOSXAboutRegistration.java +++ b/src/net/java/sip/communicator/plugin/branding/MacOSXAboutRegistration.java @@ -14,6 +14,11 @@ import com.apple.eawt.*; @SuppressWarnings("deprecation")
public final class MacOSXAboutRegistration
{
+ /**
+ * Show the about dialog on Mac OS X.
+ *
+ * @return true if the Mac OS X application is not null
+ */
public static boolean run()
{
Application application = Application.getApplication();
diff --git a/src/net/java/sip/communicator/plugin/dictaccregwizz/DictAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/dictaccregwizz/DictAccRegWizzActivator.java index 394c3fe..a53936a 100644 --- a/src/net/java/sip/communicator/plugin/dictaccregwizz/DictAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/dictaccregwizz/DictAccRegWizzActivator.java @@ -24,17 +24,20 @@ import org.osgi.framework.*; public class DictAccRegWizzActivator implements BundleActivator { + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static Logger logger = Logger.getLogger( DictAccRegWizzActivator.class); - + private static BrowserLauncherService browserLauncherService; - + private static WizardContainer wizardContainer; - + private static DictAccountRegistrationWizard dictWizard; - + private static UIService uiService; /** @@ -95,7 +98,7 @@ public class DictAccRegWizzActivator String osgiFilter = "(" + ProtocolProviderFactory.PROTOCOL + "="+ProtocolNames.DICT+")"; - + try { serRefs = bundleContext.getServiceReferences( ProtocolProviderFactory.class.getName(), osgiFilter); @@ -106,7 +109,7 @@ public class DictAccRegWizzActivator return (ProtocolProviderFactory) bundleContext.getService(serRefs[0]); } - + /** * Returns the <tt>BrowserLauncherService</tt> obtained from the bundle * context. @@ -127,7 +130,7 @@ public class DictAccRegWizzActivator /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() diff --git a/src/net/java/sip/communicator/plugin/dictaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/dictaccregwizz/FirstWizardPage.java index 20e42e4..3e2b3b9 100644 --- a/src/net/java/sip/communicator/plugin/dictaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/dictaccregwizz/FirstWizardPage.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.dictaccregwizz; @@ -20,7 +20,7 @@ import net.java.sip.communicator.util.swing.*; /** * The <tt>FirstWizardPage</tt> is the page, where user could enter the host, * port and the strategy of the account. - * + * * @author ROTH Damien * @author LITZELMANN Cedric */ @@ -28,6 +28,11 @@ public class FirstWizardPage extends TransparentPanel implements WizardPage, DocumentListener, ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; private JPanel hostPortPanel = new TransparentPanel(new BorderLayout(10, 10)); @@ -51,36 +56,36 @@ public class FirstWizardPage private JTextField portField = new JTextField("2628"); private JPanel strategyPanel = new TransparentPanel(new BorderLayout(10, 10)); - + private JPanel strategyTitleBloc = new TransparentPanel(new BorderLayout()); - + private JLabel strategyTitle = new JLabel(Resources.getString( "plugin.dictaccregwizz.STRATEGY_LIST")); - + private JButton strategyLoader = new JButton(Resources.getString( "plugin.dictaccregwizz.SEARCH_STRATEGIES")); - + private StrategiesList strategiesList; - + private JTextArea strategyDescription = new JTextArea(Resources.getString( "plugin.dictaccregwizz.STRATEGY_DESCRIPTION")); - + private ProgressPanel searchProgressPanel; - + private JPanel mainPanel = new TransparentPanel(new BorderLayout()); - + private Object nextPageIdentifier = WizardPage.SUMMARY_PAGE_IDENTIFIER; - + private DictAccountRegistrationWizard wizard; - + private String initstrategy = ""; - + private ThreadManager searchThread = null; - + private boolean firstAccount = false; - + private boolean isPageCommitted = false; /** @@ -91,7 +96,7 @@ public class FirstWizardPage /** * Creates an instance of <tt>FirstWizardPage</tt>. - * + * * @param wizard the parent wizard */ public FirstWizardPage(DictAccountRegistrationWizard wizard) @@ -103,13 +108,13 @@ public class FirstWizardPage this.setPreferredSize(new Dimension(300, 150)); mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS)); - + this.searchThread = new ThreadManager(this); this.searchProgressPanel = new ProgressPanel(this.searchThread); this.firstAccount = !this.hasAccount(); - - if (this.firstAccount) + + if (this.firstAccount) { this.initFirstAccount(); } @@ -152,13 +157,13 @@ public class FirstWizardPage hostPortPanel.setBorder(BorderFactory.createTitledBorder( Resources.getString("plugin.dictaccregwizz.SERVER_INFO"))); - + this.labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS)); this.valuesPanel.setLayout(new BoxLayout(valuesPanel, BoxLayout.Y_AXIS)); mainPanel.add(hostPortPanel); - - this.portField.addKeyListener(new KeyListener() { + + this.portField.addKeyListener(new KeyListener() { public void keyTyped(KeyEvent evt) { // If evt isn't a digit, we don't add it @@ -167,30 +172,30 @@ public class FirstWizardPage evt.consume(); } } - + // Not used public void keyPressed(KeyEvent evt) {;} public void keyReleased(KeyEvent evt) {;} }); - + // Strategies list this.strategiesList = new StrategiesList(); JScrollPane scrollPane = new JScrollPane(); scrollPane.getViewport().add(this.strategiesList); this.strategyPanel.add(scrollPane); - + // Strategy title + button this.strategyTitleBloc.add(this.strategyTitle, BorderLayout.WEST); this.strategyTitleBloc.add(this.strategyLoader, BorderLayout.EAST); - + // Button action listener this.strategyLoader.setActionCommand("populateList"); this.strategyLoader.addActionListener(this); - + // South Panel JPanel sSouthPanel = new TransparentPanel(new BorderLayout()); - + // Description this.strategyDescription.setLineWrap(true); this.strategyDescription.setLineWrap(true); @@ -198,12 +203,12 @@ public class FirstWizardPage this.strategyDescription.setWrapStyleWord(true); this.strategyDescription.setAutoscrolls(false); sSouthPanel.add(this.strategyDescription); - + // Message sSouthPanel.add(this.searchProgressPanel, BorderLayout.SOUTH); - + this.strategyPanel.add(sSouthPanel, BorderLayout.SOUTH); - + this.strategyPanel.add(this.strategyTitleBloc, BorderLayout.NORTH); this.strategyPanel.setBorder(BorderFactory.createTitledBorder( Resources.getString("plugin.dictaccregwizz.STRATEGY_SELECTION"))); @@ -211,7 +216,7 @@ public class FirstWizardPage this.add(mainPanel, BorderLayout.NORTH); } - + /** * Initialize the UI for the first account */ @@ -220,10 +225,10 @@ public class FirstWizardPage // Data init this.hostField = new JTextField("dict.org"); this.portField = new JTextField("2628"); - + // Init strategies list this.strategiesList = new StrategiesList(); - + this.mainPanel = new TransparentPanel(new BorderLayout()); JPanel infoTitlePanel @@ -303,7 +308,7 @@ public class FirstWizardPage { this.setNextButtonEnabled(); } - + /** * Saves the user input when the "Next" wizard buttons is clicked. */ @@ -333,7 +338,7 @@ public class FirstWizardPage if (this.strategiesList.getModel().getSize() == 0) { // No Strategy, we get them this.populateStrategies(); - + if (!this.searchThread.waitThread()) { // TODO error dialog : thread interrupted ? no thread ? @@ -372,7 +377,7 @@ public class FirstWizardPage boolean hostOK = DictConnection.isUrl(hostField.getText()); boolean portOK = (this.portField.getText().length() != 0) && Integer.parseInt(this.portField.getText()) > 10; - + if (this.firstAccount) { wizard.getWizardContainer().setNextFinishButtonEnabled(true); @@ -386,7 +391,7 @@ public class FirstWizardPage { // Disable the finish button wizard.getWizardContainer().setNextFinishButtonEnabled(false); - + // Clear the list and disable the button this.strategiesList.clear(); this.strategyLoader.setEnabled(false); @@ -461,7 +466,7 @@ public class FirstWizardPage /** * Fills the Host, Port and Strategy fields in this panel with the data comming * from the given protocolProvider. - * + * * @param protocolProvider The <tt>ProtocolProviderService</tt> to load * the data from. */ @@ -477,12 +482,12 @@ public class FirstWizardPage String strategy = accountID .getAccountPropertyString(ProtocolProviderFactory.STRATEGY); - + this.initAccountID = accountID; // Host field this.hostField.setText(host); - + // Port Field this.portField.setText(port); @@ -543,7 +548,7 @@ public class FirstWizardPage } /** - * + * * @param strategies */ public void setStrategies(List<Strategy> strategies) @@ -590,10 +595,10 @@ public class FirstWizardPage public void setStrategyButtonEnable(boolean e) { // During all the process the buttons and the fieldsset are in the same state - + this.hostField.setEnabled(e); this.portField.setEnabled(e); - + this.strategyLoader.setEnabled(e); wizard.getWizardContainer().setNextFinishButtonEnabled(e); } @@ -605,7 +610,7 @@ public class FirstWizardPage /** * Indicates if this is the first dict account - * + * * @return TRUE if this is the first dict account - FALSE otherwise */ public boolean isFirstAccount() diff --git a/src/net/java/sip/communicator/plugin/dictaccregwizz/ProgressPanel.java b/src/net/java/sip/communicator/plugin/dictaccregwizz/ProgressPanel.java index 304a7fa..d8f265e 100755 --- a/src/net/java/sip/communicator/plugin/dictaccregwizz/ProgressPanel.java +++ b/src/net/java/sip/communicator/plugin/dictaccregwizz/ProgressPanel.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.dictaccregwizz; @@ -14,26 +14,31 @@ import net.java.sip.communicator.util.swing.*; /** * Panel showing the current status of the search of the strategies - * + * * @author ROTH Damien */ public class ProgressPanel extends TransparentPanel implements ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private JPanel rightPanel; - - private JLabel messageLabel; + + private JLabel messageLabel; private JLabel progressLabel; private JButton cancelButton; - + private int currentStep; private int totalSteps; - + private boolean isBuild; - + private ThreadManager searchThread; - + /** * Create an instance of <tt>ProgressPanel</tt> * @param searchThread The thread manager @@ -41,25 +46,25 @@ public class ProgressPanel public ProgressPanel(ThreadManager searchThread) { super(new BorderLayout()); - + // Element creation this.messageLabel = new JLabel(" "); this.progressLabel = new JLabel(" "); this.cancelButton = new JButton(Resources.getString("service.gui.CANCEL")); this.cancelButton.addActionListener(this); - + // Right panel init this.rightPanel = new TransparentPanel(new FlowLayout(FlowLayout.RIGHT)); this.rightPanel.add(this.progressLabel); this.rightPanel.add(this.cancelButton); - + this.searchThread = searchThread; - + init(); this.totalSteps = ThreadManager.NB_STEPS; } - + /** * Init the values */ @@ -67,10 +72,10 @@ public class ProgressPanel { this.isBuild = false; this.currentStep = 1; - + this.add(this.messageLabel, BorderLayout.CENTER); } - + /** * Build the UI */ @@ -80,13 +85,13 @@ public class ProgressPanel { return; } - + this.add(this.messageLabel, BorderLayout.CENTER); this.add(this.rightPanel, BorderLayout.EAST); - + this.isBuild = true; } - + /** * Move to the next step without updating the message */ @@ -94,7 +99,7 @@ public class ProgressPanel { nextStep(this.messageLabel.getText()); } - + /** * Mode to the next step with a new message * @param message Message @@ -105,14 +110,14 @@ public class ProgressPanel { finish(); } - - build(); + + build(); this.messageLabel.setText(message); this.progressLabel.setText(currentStep + "/" + totalSteps); - + this.currentStep++; } - + /** * Informs the end of the progress. Remove all the components and * reset the values @@ -121,12 +126,12 @@ public class ProgressPanel { // Remove all elements this.removeAll(); - + // Re-init the panel this.messageLabel.setText(" "); this.progressLabel.setText(" "); init(); - + this.repaint(); this.validate(); } diff --git a/src/net/java/sip/communicator/plugin/dictaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/dictaccregwizz/Resources.java index 373c37b..aae29db 100644 --- a/src/net/java/sip/communicator/plugin/dictaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/dictaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author ROTH Damien * @author LITZELMAN Cedric */ @@ -27,7 +27,7 @@ public class Resources /** * 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. */ @@ -45,7 +45,12 @@ public class Resources { return getResources().getImageInBytes(imageID.getId()); } - + + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java b/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java index e74adc0..b873954 100755 --- a/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java +++ b/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java @@ -15,31 +15,36 @@ import net.java.dict4j.*; /** * Class managing the list of strategies - * + * * @author ROTH Damien */ public class StrategiesList extends JList { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private ListModel model; private CellRenderer renderer; - + /** * Create an instance of the <tt>StrategiesList</tt> */ public StrategiesList() { super(); - + this.model = new ListModel(); this.renderer = new CellRenderer(); - + this.setCellRenderer(this.renderer); this.setModel(model); this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); this.setVisibleRowCount(6); } - + /** * Stores a new set of strategies * @param strategies List of strategies @@ -48,7 +53,7 @@ public class StrategiesList { this.model.setStrategies(strategies); } - + /** * Remove all the strategies of the list */ @@ -56,7 +61,7 @@ public class StrategiesList { this.model.clear(); } - + /** * Automatic selection of strategies * @param initStrategy @@ -64,7 +69,7 @@ public class StrategiesList public void autoSelectStrategy(String initStrategy) { int index = -1; - + if (initStrategy.length() > 0) { // saved strategy index = this.model.indexOf(initStrategy); @@ -84,7 +89,7 @@ public class StrategiesList // Last case : prefix index = this.model.indexOf("prefix"); } - + // If the index is still < 0, we select the first index if (index < 0) { @@ -101,17 +106,22 @@ public class StrategiesList this.setSelectedValue(this.model.getElementAt(index), true); } } - + /** * Class managing the list datas - * + * * @author ROTH Damien */ static class ListModel extends AbstractListModel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + List<Strategy> data; - + /** * Create an instance of <tt>ListModel</tt> */ @@ -119,7 +129,7 @@ public class StrategiesList { this.data = new ArrayList<Strategy>(); } - + /** * Stores the strategies into this model * @param strategies the strategies list @@ -129,7 +139,7 @@ public class StrategiesList this.data = strategies; fireContentsChanged(this, 0, this.data.size()); } - + /** * Remove all the strategies of the list */ @@ -137,7 +147,7 @@ public class StrategiesList { this.data.clear(); } - + /** * Implements <tt>ListModel.getElementAt</tt> */ @@ -153,7 +163,7 @@ public class StrategiesList { return this.data.size(); } - + /** * Find the index of a strategie * @param strategyCode the code of the strategy @@ -171,10 +181,10 @@ public class StrategiesList return -1; } } - + /** * Class managing the cell rendering - * + * * @author ROTH Damien */ static class CellRenderer @@ -182,6 +192,11 @@ public class StrategiesList implements ListCellRenderer { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * implements <tt>ListCellRenderer.getListCellRendererComponent</tt> */ public Component getListCellRendererComponent(JList list, Object value, @@ -189,7 +204,7 @@ public class StrategiesList { Strategy strategy = (Strategy) value; this.setText(strategy.getName()); - + if (isSelected) { setBackground(list.getSelectionBackground()); @@ -203,7 +218,7 @@ public class StrategiesList setEnabled(list.isEnabled()); setFont(list.getFont()); setOpaque(true); - + return this; } } diff --git a/src/net/java/sip/communicator/plugin/dnsconfig/DnsContainerPanel.java b/src/net/java/sip/communicator/plugin/dnsconfig/DnsContainerPanel.java index ca60bd8..487bcf1 100644 --- a/src/net/java/sip/communicator/plugin/dnsconfig/DnsContainerPanel.java +++ b/src/net/java/sip/communicator/plugin/dnsconfig/DnsContainerPanel.java @@ -14,12 +14,17 @@ import net.java.sip.communicator.util.swing.*; /**
* Container for all DNS configuration panels.
- *
+ *
* @author Ingo Bauersachs
*/
public class DnsContainerPanel
extends SIPCommTabbedPane
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
//service references
private ResourceManagementService R;
diff --git a/src/net/java/sip/communicator/plugin/dnsconfig/DnssecPanel.java b/src/net/java/sip/communicator/plugin/dnsconfig/DnssecPanel.java index 582a9eb..c663eb3 100644 --- a/src/net/java/sip/communicator/plugin/dnsconfig/DnssecPanel.java +++ b/src/net/java/sip/communicator/plugin/dnsconfig/DnssecPanel.java @@ -25,12 +25,17 @@ import net.java.sip.communicator.util.swing.*; /**
* Configuration of the DNSSEC validating resolver.
- *
+ *
* @author Ingo Bauersachs
*/
public class DnssecPanel
extends TransparentPanel implements ActionListener, FocusListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private final static Logger logger = Logger.getLogger(DnssecPanel.class);
//UI Controls
@@ -156,6 +161,11 @@ public class DnssecPanel tblDomains.getColumnModel().getColumn(1).setCellRenderer(
new DefaultTableCellRenderer()
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
@Override
protected void setValue(Object value)
{
@@ -289,13 +299,18 @@ public class DnssecPanel * Creates a ComboBox renderer for the resolve mode column. The non-edit
* text is based on the selected value of the row for which the renderer is
* created.
- *
+ *
* @return ComboBox render for the SecureResolveMode enum.
*/
private BasicComboBoxRenderer getResolveModeRenderer()
{
return new BasicComboBoxRenderer()
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
@Override
public Component getListCellRendererComponent(JList list,
Object value, int index, boolean isSelected,
diff --git a/src/net/java/sip/communicator/plugin/dnsconfig/DnssecTableModel.java b/src/net/java/sip/communicator/plugin/dnsconfig/DnssecTableModel.java index 174847a..accdfbb 100644 --- a/src/net/java/sip/communicator/plugin/dnsconfig/DnssecTableModel.java +++ b/src/net/java/sip/communicator/plugin/dnsconfig/DnssecTableModel.java @@ -22,12 +22,17 @@ import org.osgi.framework.*; /**
* TableModel for selectively managing DNSSEC behavior for zones ever requested
* by Jitsi.
- *
+ *
* @author Ingo Bauersachs
*/
public class DnssecTableModel
extends DefaultTableModel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private List<String> data = new LinkedList<String>();
private ResourceManagementService R;
private ConfigurationService config;
@@ -48,7 +53,7 @@ public class DnssecTableModel data = new ArrayList<String>(0);
}
- /**
+ /**
* {@inheritDoc}
*/
public int getRowCount()
@@ -58,7 +63,7 @@ public class DnssecTableModel return data.size();
}
- /**
+ /**
* {@inheritDoc}
*/
public int getColumnCount()
@@ -66,7 +71,7 @@ public class DnssecTableModel return 2;
}
- /**
+ /**
* {@inheritDoc}
*/
public String getColumnName(int columnIndex)
@@ -81,7 +86,7 @@ public class DnssecTableModel return null;
}
- /**
+ /**
* {@inheritDoc}
*/
public Class<?> getColumnClass(int columnIndex)
@@ -91,7 +96,7 @@ public class DnssecTableModel return Component.class;
}
- /**
+ /**
* {@inheritDoc}
*/
public boolean isCellEditable(int rowIndex, int columnIndex)
@@ -99,7 +104,7 @@ public class DnssecTableModel return columnIndex == 1;
}
- /**
+ /**
* {@inheritDoc}
*/
public Object getValueAt(int rowIndex, int columnIndex)
@@ -117,7 +122,7 @@ public class DnssecTableModel return null;
}
- /**
+ /**
* {@inheritDoc}
*/
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
diff --git a/src/net/java/sip/communicator/plugin/exampleplugin/PluginDialog.java b/src/net/java/sip/communicator/plugin/exampleplugin/PluginDialog.java index 180d4e0..bf2946e 100644 --- a/src/net/java/sip/communicator/plugin/exampleplugin/PluginDialog.java +++ b/src/net/java/sip/communicator/plugin/exampleplugin/PluginDialog.java @@ -22,6 +22,11 @@ import net.java.sip.communicator.util.swing.*; public class PluginDialog extends SIPCommDialog { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private JTextArea infoTextArea = new JTextArea(); private JPanel mainPanel = new TransparentPanel(); diff --git a/src/net/java/sip/communicator/plugin/facebookaccregwizz/FacebookAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/facebookaccregwizz/FacebookAccRegWizzActivator.java index 49817ad..1b7fdce 100644 --- a/src/net/java/sip/communicator/plugin/facebookaccregwizz/FacebookAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/facebookaccregwizz/FacebookAccRegWizzActivator.java @@ -142,7 +142,7 @@ public class FacebookAccRegWizzActivator /**
* Returns the <tt>UIService</tt>.
- *
+ *
* @return the <tt>UIService</tt>
*/
public static UIService getUIService()
@@ -170,6 +170,11 @@ public class FacebookAccRegWizzActivator return browserLauncherService;
}
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigPluginActivator.java b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigPluginActivator.java index 254f92d..3db99fe 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigPluginActivator.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigPluginActivator.java @@ -213,7 +213,7 @@ public class GeneralConfigPluginActivator /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ static UIService getUIService() @@ -321,7 +321,7 @@ public class GeneralConfigPluginActivator /** * Gets the service giving access to all application resources. - * + * * @return the service giving access to all application resources. */ public static ResourceManagementService getResources() @@ -357,6 +357,11 @@ public class GeneralConfigPluginActivator JPanel pnlSection = new TransparentPanel() { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + @Override public Component add(Component comp) { diff --git a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java index 35ba8d7..3c1445d 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java @@ -31,6 +31,11 @@ public class GeneralConfigurationPanel extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The <tt>Logger</tt> used by this <tt>GeneralConfigurationPanel</tt> for * logging output. */ @@ -85,7 +90,7 @@ public class GeneralConfigurationPanel SwingUtilities.invokeLater(new Runnable() { public void run() - { + { scroller.getVerticalScrollBar().setValue(0); scroller.revalidate(); scroller.repaint(); @@ -462,7 +467,7 @@ public class GeneralConfigurationPanel notifConfigComboBox.addItem(handler); - if (configuredHandler != null && + if (configuredHandler != null && configuredHandler.equals(handler.getClass().getName())) { notifConfigComboBox.setSelectedItem(handler); @@ -471,7 +476,7 @@ public class GeneralConfigurationPanel // We need an entry in combo box that represents automatic // popup handler selection in systray service. It is selected - // only if there is no user preference regarding which popup + // only if there is no user preference regarding which popup // handler to use. String auto = "Auto"; notifConfigComboBox.addItem(auto); @@ -491,7 +496,7 @@ public class GeneralConfigurationPanel ConfigurationManager.setPopupHandlerConfig(null); GeneralConfigPluginActivator.getSystrayService() .selectBestPopupMessageHandler(); - + } else { PopupMessageHandler handler = @@ -693,5 +698,5 @@ public class GeneralConfigurationPanel WindowsStartup.setAutostart( getApplicationName(), workingDir, isAutoStart); - } + } } diff --git a/src/net/java/sip/communicator/plugin/generalconfig/Resources.java b/src/net/java/sip/communicator/plugin/generalconfig/Resources.java index b6b12b8..8c8d75b 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/Resources.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -27,10 +27,11 @@ public class Resources { return getResources().getI18NString(key); } - + /** * Returns an internationalized string corresponding to the given key. * @param key The key of the string. + * @param params parameters for I18. * @return An internationalized string corresponding to the given key. */ public static String getString(String key, String[] params) @@ -58,6 +59,11 @@ public class Resources return getResources().getImageInBytes(imageId); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/generalconfig/SIPConfigForm.java b/src/net/java/sip/communicator/plugin/generalconfig/SIPConfigForm.java index 08d7e62..186d554 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/SIPConfigForm.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/SIPConfigForm.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.generalconfig; @@ -24,6 +24,11 @@ public class SIPConfigForm extends TransparentPanel implements ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private Box pnlSslProtocols; /** @@ -131,7 +136,7 @@ public class SIPConfigForm getPopupDialog().showMessagePopupDialog( error, error, - PopupDialog.ERROR_MESSAGE); + PopupDialog.ERROR_MESSAGE); clientSecurePortField.setText(oldValue); } } @@ -143,7 +148,7 @@ public class SIPConfigForm }); String configuredProtocols = Arrays.toString( - ConfigurationManager.getEnabledSslProtocols()); + ConfigurationManager.getEnabledSslProtocols()); pnlSslProtocols = Box.createVerticalBox(); pnlSslProtocols.setBorder(BorderFactory.createTitledBorder(Resources diff --git a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java index bb75a79..b662bf5 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java @@ -19,13 +19,18 @@ import net.java.sip.communicator.util.swing.*; /** * The <tt>ConfigurationForm</tt> that would be added in the user interface * configuration window. - * + * * @author Damien Roth */ public class AutoAwayConfigurationPanel extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The default value to be displayed in {@link #timer} and to be considered * for {@link Preferences#TIMER}. */ @@ -101,7 +106,7 @@ public class AutoAwayConfigurationPanel */ private void initValues() { - ConfigurationService configService + ConfigurationService configService = GeneralConfigPluginActivator.getConfigurationService(); boolean e = configService.getBoolean(Preferences.ENABLE, false); @@ -117,10 +122,10 @@ public class AutoAwayConfigurationPanel */ private void saveData() { - ConfigurationService configService + ConfigurationService configService = GeneralConfigPluginActivator.getConfigurationService(); - configService.setProperty(Preferences.ENABLE, + configService.setProperty(Preferences.ENABLE, Boolean.toString(enable.isSelected())); configService.setProperty(Preferences.TIMER, timer.getValue().toString()); diff --git a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/FirstWizardPage.java index e563f4a..2cfff20 100644 --- a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/FirstWizardPage.java @@ -24,6 +24,10 @@ public class FirstWizardPage extends TransparentPanel implements WizardPage, DocumentListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; diff --git a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/Resources.java index 0794ff8..bf5e634 100644 --- a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Emil Ivov */ public class Resources @@ -32,7 +32,7 @@ public class Resources /** * 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. */ @@ -43,7 +43,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -51,7 +51,12 @@ public class Resources { return getResources().getImageInBytes(imageID.getId()); } - + + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/globalproxyconfig/GlobalProxyConfigForm.java b/src/net/java/sip/communicator/plugin/globalproxyconfig/GlobalProxyConfigForm.java index 6658ac7..cb2cb58 100644 --- a/src/net/java/sip/communicator/plugin/globalproxyconfig/GlobalProxyConfigForm.java +++ b/src/net/java/sip/communicator/plugin/globalproxyconfig/GlobalProxyConfigForm.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.globalproxyconfig; @@ -25,6 +25,11 @@ public class GlobalProxyConfigForm KeyListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Hold the available proxy types. */ private JComboBox typeCombo; @@ -55,11 +60,11 @@ public class GlobalProxyConfigForm public GlobalProxyConfigForm() { super(new BorderLayout()); - + init(); loadValues(); } - + /** * Creating the configuration form */ @@ -166,7 +171,7 @@ public class GlobalProxyConfigForm /** * Loading the values stored onto configuration form - */ + */ private void loadValues() { ConfigurationService configService = @@ -214,7 +219,7 @@ public class GlobalProxyConfigForm passwordField.setEnabled(false); } } - + /** * Function which save values onto configuration file after save button is * clicked diff --git a/src/net/java/sip/communicator/plugin/globalproxyconfig/Resources.java b/src/net/java/sip/communicator/plugin/globalproxyconfig/Resources.java index 10f5dfd..ae66608 100644 --- a/src/net/java/sip/communicator/plugin/globalproxyconfig/Resources.java +++ b/src/net/java/sip/communicator/plugin/globalproxyconfig/Resources.java @@ -8,25 +8,19 @@ package net.java.sip.communicator.plugin.globalproxyconfig; import net.java.sip.communicator.service.resources.*; -import net.java.sip.communicator.util.*; import org.osgi.framework.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Atul Aggarwal * @author Damian Minkov */ public class Resources { /** - * Our logger. - */ - private static Logger log = Logger.getLogger(Resources.class); - - /** * The resource management service. */ private static ResourceManagementService resourcesService; @@ -40,7 +34,7 @@ public class Resources { return getResources().getI18NString(key); } - + /** * Returns an application property string corresponding to the given key. * @param key The key of the string. @@ -64,8 +58,8 @@ public class Resources if(serviceReference == null) return null; - - resourcesService = + + resourcesService = (ResourceManagementService)GlobalProxyPluginActivator.bundleContext .getService(serviceReference); } diff --git a/src/net/java/sip/communicator/plugin/googletalkaccregwizz/GoogleTalkAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/googletalkaccregwizz/GoogleTalkAccRegWizzActivator.java index cb84590..ed93d89 100644 --- a/src/net/java/sip/communicator/plugin/googletalkaccregwizz/GoogleTalkAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/googletalkaccregwizz/GoogleTalkAccRegWizzActivator.java @@ -24,6 +24,9 @@ import net.java.sip.communicator.util.*; public class GoogleTalkAccRegWizzActivator
implements BundleActivator
{
+ /**
+ * OSGi bundle context.
+ */
public static BundleContext bundleContext;
private static ResourceManagementService resourcesService;
@@ -77,7 +80,7 @@ public class GoogleTalkAccRegWizzActivator /**
* Returns the <tt>ProtocolProviderFactory</tt> for the Google Talk
* protocol.
- *
+ *
* @return the <tt>ProtocolProviderFactory</tt> for the Google Talk
* protocol
*/
@@ -104,7 +107,7 @@ public class GoogleTalkAccRegWizzActivator /**
* Returns the <tt>UIService</tt>.
- *
+ *
* @return the <tt>UIService</tt>
*/
public static UIService getUIService()
@@ -132,6 +135,11 @@ public class GoogleTalkAccRegWizzActivator return browserLauncherService;
}
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java index d0f442f..23518be 100644 --- a/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java @@ -25,6 +25,10 @@ public class FirstWizardPage extends TransparentPanel implements WizardPage, DocumentListener, ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; diff --git a/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccRegWizzActivator.java index 89886b3..e98eeca 100644 --- a/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/icqaccregwizz/IcqAccRegWizzActivator.java @@ -20,19 +20,22 @@ import org.osgi.framework.*; * * @author Yana Stamcheva */ -public class IcqAccRegWizzActivator implements BundleActivator { - +public class IcqAccRegWizzActivator implements BundleActivator +{ + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static Logger logger = Logger.getLogger( IcqAccRegWizzActivator.class); - + private static BrowserLauncherService browserLauncherService; - + private static WizardContainer wizardContainer; - + private static IcqAccountRegistrationWizard icqWizard; - + private static UIService uiService; /** @@ -90,7 +93,7 @@ public class IcqAccRegWizzActivator implements BundleActivator { return (ProtocolProviderFactory) bundleContext.getService(serRefs[0]); } - + /** * Returns the <tt>BrowserLauncherService</tt> obtained from the bundle * context. @@ -111,7 +114,7 @@ public class IcqAccRegWizzActivator implements BundleActivator { /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() diff --git a/src/net/java/sip/communicator/plugin/icqaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/icqaccregwizz/Resources.java index b8cae18..28a3c93 100644 --- a/src/net/java/sip/communicator/plugin/icqaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/icqaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -26,7 +26,7 @@ public class Resources /** * 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. */ @@ -45,6 +45,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/ippiaccregwizz/CreateIppiAccountForm.java b/src/net/java/sip/communicator/plugin/ippiaccregwizz/CreateIppiAccountForm.java index 6eb5a0d..601314d 100644 --- a/src/net/java/sip/communicator/plugin/ippiaccregwizz/CreateIppiAccountForm.java +++ b/src/net/java/sip/communicator/plugin/ippiaccregwizz/CreateIppiAccountForm.java @@ -30,6 +30,11 @@ public class CreateIppiAccountForm implements SIPAccountCreationFormService { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The logger. */ private static final Logger logger @@ -159,7 +164,7 @@ public class CreateIppiAccountForm */ private void initErrorArea() { - SimpleAttributeSet attribs = new SimpleAttributeSet(); + SimpleAttributeSet attribs = new SimpleAttributeSet(); StyleConstants.setAlignment(attribs, StyleConstants.ALIGN_RIGHT); StyleConstants.setFontFamily(attribs, errorPane.getFont().getFamily()); StyleConstants.setForeground(attribs, Color.RED); @@ -177,7 +182,7 @@ public class CreateIppiAccountForm { // Check if the two passwords match. String pass1 = new String( passField.getPassword()); - String pass2 = new String( retypePassField.getPassword()); + String pass2 = new String( retypePassField.getPassword()); if (!pass1.equals(pass2)) { showErrorMessage( diff --git a/src/net/java/sip/communicator/plugin/iptelaccregwizz/IptelAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/iptelaccregwizz/IptelAccRegWizzActivator.java index 3591dd8..eaa4117 100644 --- a/src/net/java/sip/communicator/plugin/iptelaccregwizz/IptelAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/iptelaccregwizz/IptelAccRegWizzActivator.java @@ -24,6 +24,9 @@ import net.java.sip.communicator.util.*; public class IptelAccRegWizzActivator
implements BundleActivator
{
+ /**
+ * OSGi bundle context.
+ */
public static BundleContext bundleContext;
/**
@@ -73,7 +76,7 @@ public class IptelAccRegWizzActivator /**
* Returns the <tt>ProtocolProviderFactory</tt> for the IP Tel protocol.
- *
+ *
* @return the <tt>ProtocolProviderFactory</tt> for the IP Tel protocol
*/
public static ProtocolProviderFactory getIptelProtocolProviderFactory()
@@ -99,7 +102,7 @@ public class IptelAccRegWizzActivator /**
* Returns the <tt>UIService</tt>.
- *
+ *
* @return the <tt>UIService</tt>
*/
public static UIService getUIService()
diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java index de5582c..99353f4 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/FirstWizardPage.java @@ -31,6 +31,11 @@ public class FirstWizardPage ActionListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The identifier of this wizard page. */ public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccRegWizzActivator.java index 48f4e5e..ee846a7 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccRegWizzActivator.java @@ -30,6 +30,9 @@ public class IrcAccRegWizzActivator */ public static BundleContext bundleContext; + /** + * The <tt>UIService</tt>. + */ public static UIService uiService; /** @@ -118,7 +121,7 @@ public class IrcAccRegWizzActivator /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/Resources.java index 62143bc..110f157 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/Resources.java @@ -17,7 +17,7 @@ import net.java.sip.communicator.service.resources.*; public class Resources { private static ResourceManagementService resourcesService; - + /** * A constant pointing to the IRC protocol logo image. */ @@ -50,6 +50,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java index f1763ef..264e875 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java @@ -22,6 +22,11 @@ public class AccountPanel implements DocumentListener, ValidatingPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final Logger logger = Logger.getLogger(AccountPanel.class); private final JPanel userIDPassPanel diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java index c574e38..6eaf942 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java @@ -19,7 +19,7 @@ import org.jivesoftware.smack.*; /** * Dialog for adding a new Jabber account. - * + * * @author Nicolas Grandclaude * @author Yana Stamcheva */ @@ -27,6 +27,11 @@ public class JabberAccountCreationForm extends TransparentPanel implements JabberAccountCreationFormService { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final Logger logger = Logger .getLogger(JabberAccountCreationForm.class); @@ -183,7 +188,7 @@ public class JabberAccountCreationForm /** * Creates an account. - * + * * @return the created account */ public NewAccount createAccount() @@ -197,9 +202,9 @@ public class JabberAccountCreationForm if (new String(password).equals(new String(password2))) { // the two password fields are the same - boolean result = createJabberAccount(server, - 5222, - userID, + boolean result = createJabberAccount(server, + 5222, + userID, new String(password)); if (result == true) @@ -247,7 +252,7 @@ public class JabberAccountCreationForm */ private void initErrorArea() { - SimpleAttributeSet attribs = new SimpleAttributeSet(); + SimpleAttributeSet attribs = new SimpleAttributeSet(); StyleConstants.setAlignment(attribs, StyleConstants.ALIGN_RIGHT); StyleConstants.setFontFamily(attribs, errorPane.getFont().getFamily()); StyleConstants.setForeground(attribs, Color.RED); diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistration.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistration.java index f58b0b5..cfa4216 100755 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistration.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistration.java @@ -747,7 +747,7 @@ public class JabberAccountRegistration /** * Sets the account display name. * - * @param the account display name + * @param accountDisplayName the account display name */ public void setAccountDisplayName(String accountDisplayName) { @@ -766,8 +766,8 @@ public class JabberAccountRegistration /** * Sets the default sms server. - * - * @param smsServerAddress the sms server to set as default + * + * @param serverAddress the sms server to set as default */ public void setSmsServerAddress(String serverAddress) { diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberServerChooserDialog.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberServerChooserDialog.java index 4e79e11..c893223 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberServerChooserDialog.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberServerChooserDialog.java @@ -36,6 +36,11 @@ public class JabberServerChooserDialog extends SIPCommDialog implements ListSelectionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final Logger logger = Logger .getLogger(JabberServerChooserDialog.class); @@ -77,8 +82,14 @@ public class JabberServerChooserDialog { Resources.getString("plugin.jabberaccregwizz.SERVER_COLUMN"), Resources.getString("plugin.jabberaccregwizz.COMMENT_COLUMN")}; + /** + * If the OK button is pressed. + */ public boolean isOK = false; + /** + * The selected server. + */ public String serverSelected; /** @@ -302,6 +313,11 @@ public class JabberServerChooserDialog */ private class ServerChooserTableModel extends AbstractTableModel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private Document serverComments; private NodeList commentsList; diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/NewAccount.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/NewAccount.java index 2c87381..fde1553 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/NewAccount.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/NewAccount.java @@ -35,7 +35,7 @@ public class NewAccount * @param userName the account user name * @param password the account password * @param serverAddress the server address to set - * @param serverPort the port to connect to + * @param port the port to connect to */ public NewAccount( String userName, char[] password, diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/Resources.java index 42a4cb7..7ede295 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/Resources.java @@ -13,13 +13,13 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources { private static ResourceManagementService resourcesService; - + /** * A constant pointing to the Jabber protocol logo image. */ @@ -34,7 +34,7 @@ public class Resources /** * 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. */ @@ -45,7 +45,7 @@ public class Resources /** * 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. */ @@ -56,7 +56,7 @@ public class Resources /** * 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. */ @@ -67,7 +67,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -79,7 +79,7 @@ public class Resources /** * Returns the resource for the given key. This could be any resource stored * in the resources.properties file of this bundle. - * + * * @param key the key of the resource to search for * @return the resource for the given key */ @@ -89,6 +89,11 @@ public class Resources JabberAccRegWizzActivator.class); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/keybindingchooser/chooser/BindingPanel.java b/src/net/java/sip/communicator/plugin/keybindingchooser/chooser/BindingPanel.java index ab9e7ca..1bd27a9 100644 --- a/src/net/java/sip/communicator/plugin/keybindingchooser/chooser/BindingPanel.java +++ b/src/net/java/sip/communicator/plugin/keybindingchooser/chooser/BindingPanel.java @@ -35,6 +35,11 @@ import net.java.sip.communicator.util.swing.*; public abstract class BindingPanel extends TransparentPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private ArrayList<BindingEntry> contents = new ArrayList<BindingEntry>(); /** @@ -60,6 +65,9 @@ public abstract class BindingPanel protected abstract void onClick(MouseEvent event, BindingEntry entry, BindingEntry.Field field); + /** + * Constructor. + */ public BindingPanel() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); diff --git a/src/net/java/sip/communicator/plugin/loggingutils/LoggingConfigForm.java b/src/net/java/sip/communicator/plugin/loggingutils/LoggingConfigForm.java index b9230f5..0bb0839 100644 --- a/src/net/java/sip/communicator/plugin/loggingutils/LoggingConfigForm.java +++ b/src/net/java/sip/communicator/plugin/loggingutils/LoggingConfigForm.java @@ -29,6 +29,11 @@ public class LoggingConfigForm DocumentListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Our Logger. */ private static final Logger logger @@ -501,6 +506,10 @@ public class LoggingConfigForm final SIPCommDialog dialog = new SIPCommDialog(false) { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * Dialog is closed. Do nothing. diff --git a/src/net/java/sip/communicator/plugin/loggingutils/LoggingUtilsActivator.java b/src/net/java/sip/communicator/plugin/loggingutils/LoggingUtilsActivator.java index b1eac40..7fd65d5 100644 --- a/src/net/java/sip/communicator/plugin/loggingutils/LoggingUtilsActivator.java +++ b/src/net/java/sip/communicator/plugin/loggingutils/LoggingUtilsActivator.java @@ -25,12 +25,6 @@ public class LoggingUtilsActivator implements BundleActivator { /** - * Our logging. - */ - private static Logger logger = - Logger.getLogger(LoggingUtilsActivator.class); - - /** * The OSGI bundle context. */ static BundleContext bundleContext = null; diff --git a/src/net/java/sip/communicator/plugin/loggingutils/LogsCollector.java b/src/net/java/sip/communicator/plugin/loggingutils/LogsCollector.java index bdfb505..cb0b3d8 100644 --- a/src/net/java/sip/communicator/plugin/loggingutils/LogsCollector.java +++ b/src/net/java/sip/communicator/plugin/loggingutils/LogsCollector.java @@ -56,6 +56,7 @@ public class LogsCollector * does it end with zip extension, is missing we add it. * @param destination the possible destination archived file * @param optional an optional file to be added to the archive. + * @return the resulting file in zip format */ public static File collectLogs(File destination, File optional) { @@ -235,7 +236,6 @@ public class LogsCollector if(files == null) return; - byte[] buf = new byte[1024]; // First check in working dir for(File f: files) { diff --git a/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java index 174bc27..071d40b 100644 --- a/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java @@ -25,6 +25,10 @@ public class FirstWizardPage extends TransparentPanel implements WizardPage, DocumentListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; diff --git a/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java index c74cdb8..ba2be30 100644 --- a/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java @@ -23,6 +23,9 @@ import net.java.sip.communicator.util.*; public class MsnAccRegWizzActivator implements BundleActivator { + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static final Logger logger = @@ -97,7 +100,7 @@ public class MsnAccRegWizzActivator /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() diff --git a/src/net/java/sip/communicator/plugin/msnaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/msnaccregwizz/Resources.java index e293c00..250af24 100644 --- a/src/net/java/sip/communicator/plugin/msnaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/msnaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -32,7 +32,7 @@ public class Resources /** * 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. */ @@ -43,7 +43,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -52,6 +52,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationConfigurationActivator.java b/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationConfigurationActivator.java index 5fa5208..38e8765 100644 --- a/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationConfigurationActivator.java +++ b/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationConfigurationActivator.java @@ -27,6 +27,9 @@ public class NotificationConfigurationActivator private final Logger logger = Logger.getLogger(NotificationConfigurationActivator.class); + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static AudioNotifierService audioService; @@ -46,8 +49,8 @@ public class NotificationConfigurationActivator = "net.java.sip.communicator.plugin.notificationconfiguration.DISABLED"; /** - * Starts this bundle and adds the <tt>AudioConfigurationConfigForm</tt> - * contained in it to the configuration window obtained from the + * Starts this bundle and adds the <tt>AudioConfigurationConfigForm</tt> + * contained in it to the configuration window obtained from the * <tt>UIService</tt>. */ public void start(BundleContext bc) @@ -82,9 +85,9 @@ public class NotificationConfigurationActivator */ public void stop(BundleContext bc) throws Exception - { + { } - + /** * Returns the <tt>AudioService</tt> obtained from the bundle * context. @@ -111,7 +114,7 @@ public class NotificationConfigurationActivator * interested in bringing down the penalties imposed by acquiring the value * in question should provide it by themselves. * </p> - * + * * @return the <tt>NotificationService</tt> obtained from the bundle context */ public static NotificationService getNotificationService() diff --git a/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationsTable.java b/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationsTable.java index a6486eb..dca9014 100644 --- a/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationsTable.java +++ b/src/net/java/sip/communicator/plugin/notificationconfiguration/NotificationsTable.java @@ -25,6 +25,11 @@ public class NotificationsTable implements NotificationChangeListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The enabled state of the notification action. */ public static final String ENABLED = "Enabled"; @@ -98,7 +103,7 @@ public class NotificationsTable configPanel.setNotificationEntry( getNotificationEntry(row)); } - }); + }); initTableData(); @@ -341,6 +346,11 @@ public class NotificationsTable */ static class NotificationTable extends JTable { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private String[] columnToolTips; /** @@ -361,6 +371,11 @@ public class NotificationsTable { return new JTableHeader(columnModel) { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public String getToolTipText(MouseEvent e) { java.awt.Point p = e.getPoint(); @@ -380,6 +395,11 @@ public class NotificationsTable extends DefaultTableModel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Creates an instance of <tt>NotificationsTableModel</tt>. * @param columns the array of column names * @param rowCount the number of rows @@ -432,9 +452,9 @@ public class NotificationsTable notifTable.setValueAt(ENABLED, row, col); NotificationEntry entry = getNotificationEntry(row); - + switch(col) - { + { case 0: boolean isActive = notifTable.getValueAt(row, 0).equals(Boolean.TRUE); @@ -681,7 +701,7 @@ public class NotificationsTable */ public void clear() { - int numrows = model.getRowCount(); + int numrows = model.getRowCount(); for(int i = numrows - 1; i >=0; i--) { model.removeRow(i); diff --git a/src/net/java/sip/communicator/plugin/notificationconfiguration/StringTableRenderer.java b/src/net/java/sip/communicator/plugin/notificationconfiguration/StringTableRenderer.java index 50622c2..f6b886a 100644 --- a/src/net/java/sip/communicator/plugin/notificationconfiguration/StringTableRenderer.java +++ b/src/net/java/sip/communicator/plugin/notificationconfiguration/StringTableRenderer.java @@ -19,6 +19,11 @@ class StringTableRenderer extends DefaultTableCellRenderer { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Creates an instance of <tt>StringTableRenderer</tt>. */ StringTableRenderer() diff --git a/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsPanel.java b/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsPanel.java index af7c4b8..3a964c0 100644 --- a/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsPanel.java +++ b/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsPanel.java @@ -23,12 +23,20 @@ import net.java.sip.communicator.util.swing.*; public class KnownFingerprintsPanel extends TransparentPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private JButton btnVerifyFingerprint; private JButton btnForgetFingerprint; private JTable contactsTable; + /** + * Constructor. + */ public KnownFingerprintsPanel() { this.initComponents(); @@ -112,7 +120,7 @@ public class KnownFingerprintsPanel /** * Gets the selected {@link Contact} for this * {@link KnownFingerprintsTableModel}. - * + * * @return the selected {@link Contact} */ private Contact getSelectedContact() @@ -129,7 +137,7 @@ public class KnownFingerprintsPanel /** * Sets up the {@link KnownFingerprintsTableModel} components so that they * reflect the {@link Contact} param. - * + * * @param contact the {@link Contact} to setup the components for. */ private void openContact(Contact contact) diff --git a/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsTableModel.java b/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsTableModel.java index c0cd551..5689511 100644 --- a/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsTableModel.java +++ b/src/net/java/sip/communicator/plugin/otr/KnownFingerprintsTableModel.java @@ -18,13 +18,18 @@ import org.osgi.framework.*; /** * A special {@link Panel} for fingerprints display. - * + * * @author George Politis * @author Yana Stamcheva */ public class KnownFingerprintsTableModel extends AbstractTableModel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public static final int CONTACTNAME_INDEX = 0; public static final int VERIFIED_INDEX = 1; diff --git a/src/net/java/sip/communicator/plugin/otr/OtrContactMenu.java b/src/net/java/sip/communicator/plugin/otr/OtrContactMenu.java index 3f6ae83..1ec47d6 100644 --- a/src/net/java/sip/communicator/plugin/otr/OtrContactMenu.java +++ b/src/net/java/sip/communicator/plugin/otr/OtrContactMenu.java @@ -6,7 +6,6 @@ */ package net.java.sip.communicator.plugin.otr; -import java.awt.*; import java.awt.event.*; import javax.swing.*; @@ -19,7 +18,7 @@ import net.java.sip.communicator.util.swing.*; /** * A special {@link JMenu} that holds the menu items for controlling the * Off-the-Record functionality for a specific contact. - * + * * @author George Politis * @author Lubomir Marinov */ @@ -56,7 +55,7 @@ class OtrContactMenu private final boolean inMacOSXScreenMenuBar; /** - * We keep this variable so we can determine if the policy has changed + * We keep this variable so we can determine if the policy has changed * or not in {@link OtrContactMenu#setOtrPolicy(OtrPolicy)}. */ private OtrPolicy otrPolicy; @@ -71,7 +70,7 @@ class OtrContactMenu /** * The OtrContactMenu constructor. - * + * * @param contact the Contact this menu refers to. * @param inMacOSXScreenMenuBar <tt>true</tt> if the new menu is to be * displayed in the Mac OS X screen menu bar; <tt>false</tt>, otherwise @@ -336,7 +335,7 @@ class OtrContactMenu * Sets the {@link OtrContactMenu#sessionStatus} value, updates the menu * icon and, if necessary, rebuilds the menuitems to match the passed in * sessionStatus. - * + * * @param sessionStatus the {@link SessionStatus}. */ private void setSessionStatus(SessionStatus sessionStatus) @@ -358,7 +357,7 @@ class OtrContactMenu /** * Sets the {@link OtrContactMenu#otrPolicy} and, if necessary, rebuilds the * menuitems to match the passed in otrPolicy. - * + * * @param otrPolicy */ private void setOtrPolicy(OtrPolicy otrPolicy) diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/ManageButtonsPanel.java b/src/net/java/sip/communicator/plugin/pluginmanager/ManageButtonsPanel.java index 5180609..fb1a2ec 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/ManageButtonsPanel.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/ManageButtonsPanel.java @@ -26,6 +26,11 @@ public class ManageButtonsPanel extends TransparentPanel implements ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private Logger logger = Logger.getLogger(ManageButtonsPanel.class); /** diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/PluginListCellRenderer.java b/src/net/java/sip/communicator/plugin/pluginmanager/PluginListCellRenderer.java index 614debf..3bb5de3 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/PluginListCellRenderer.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/PluginListCellRenderer.java @@ -29,6 +29,11 @@ public class PluginListCellRenderer implements TableCellRenderer { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The end color used to paint a gradient selected background. */ private static final Color SELECTED_START_COLOR @@ -140,7 +145,6 @@ public class PluginListCellRenderer * @param vColIndex the column index of the rendered cell * @return the rendering component */ - @SuppressWarnings("unchecked") public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) { diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/PluginManagerPanel.java b/src/net/java/sip/communicator/plugin/pluginmanager/PluginManagerPanel.java index c845837..fdc89a7 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/PluginManagerPanel.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/PluginManagerPanel.java @@ -22,6 +22,11 @@ import org.osgi.framework.*; public class PluginManagerPanel extends TransparentPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final JTable pluginTable = new JTable(); private final PluginTableModel tableModel = new PluginTableModel(); @@ -175,7 +180,7 @@ public class PluginManagerPanel } } } - + /** * Adds all system bundles to the bundles list when the check box is diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/PluginTableModel.java b/src/net/java/sip/communicator/plugin/pluginmanager/PluginTableModel.java index 1becb2b..9c57393 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/PluginTableModel.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/PluginTableModel.java @@ -20,6 +20,11 @@ import org.osgi.framework.*; public class PluginTableModel extends AbstractTableModel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private BundleContext bundleContext = PluginManagerActivator.bundleContext; private boolean showSystemBundles; diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/Resources.java b/src/net/java/sip/communicator/plugin/pluginmanager/Resources.java index 614f008..d146986 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/Resources.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/Resources.java @@ -11,16 +11,16 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources { private static ResourceManagementService resourcesService; - + /** * 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. */ @@ -28,7 +28,7 @@ public class Resources { return getResources().getI18NString(key); } - + /** * Returns an int RGB color corresponding to the given key. * @@ -41,6 +41,11 @@ public class Resources return getResources().getColor(key); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/TitlePanel.java b/src/net/java/sip/communicator/plugin/pluginmanager/TitlePanel.java index 7dcb927..dc24249 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/TitlePanel.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/TitlePanel.java @@ -15,12 +15,17 @@ import javax.swing.*; * The <tt>TitlePanel</tt> is a decorated panel, that could be used for a * header or a title area. This panel is used for example in the * <tt>ConfigurationFrame</tt>. - * + * * @author Yana Stamcheva */ public class TitlePanel extends JPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * A color between blue and gray used to paint some borders. */ public static final Color BORDER_COLOR @@ -60,7 +65,7 @@ public class TitlePanel extends JPanel /** * Creates an instance of <tt>TitlePanel</tt> by specifying the title * String. - * + * * @param title A String title. */ public TitlePanel(String title) { diff --git a/src/net/java/sip/communicator/plugin/profiler4j/ProfilerActivator.java b/src/net/java/sip/communicator/plugin/profiler4j/ProfilerActivator.java index 8b501aa..3d4fdf2 100644 --- a/src/net/java/sip/communicator/plugin/profiler4j/ProfilerActivator.java +++ b/src/net/java/sip/communicator/plugin/profiler4j/ProfilerActivator.java @@ -18,6 +18,9 @@ import org.osgi.framework.*; */ public class ProfilerActivator implements BundleActivator { + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; Logger logger = Logger.getLogger(ProfilerActivator.class); diff --git a/src/net/java/sip/communicator/plugin/profiler4j/Resources.java b/src/net/java/sip/communicator/plugin/profiler4j/Resources.java index 36fa27e..82e9d80 100644 --- a/src/net/java/sip/communicator/plugin/profiler4j/Resources.java +++ b/src/net/java/sip/communicator/plugin/profiler4j/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The Messages class manages the access to the internationalization properties * files. - * + * * @author Vladimir Skarupelov; */ public class Resources @@ -20,7 +20,7 @@ public class Resources /** * 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. */ @@ -29,6 +29,11 @@ public class Resources return getResources().getI18NString(key); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java index b800ebb..a4ee972 100644 --- a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java +++ b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java @@ -6,7 +6,6 @@ */ package net.java.sip.communicator.plugin.reconnectplugin; -import java.net.*; import java.util.*; import net.java.sip.communicator.service.configuration.*; @@ -23,7 +22,7 @@ import org.osgi.framework.*; /** * Activates the reconnect plug-in. - * + * * @author Damian Minkov */ public class ReconnectPluginActivator @@ -69,7 +68,7 @@ public class ReconnectPluginActivator * network configuration. */ private NetworkAddressManagerService networkAddressManagerService = null; - + /** * Holds every protocol provider which is can be reconnected and * a list of the available and up interfaces when the provider was @@ -104,7 +103,7 @@ public class ReconnectPluginActivator * A list of currently connected interfaces. If empty network is down. */ private Set<String> connectedInterfaces = new HashSet<String>(); - + /** * Timer for scheduling all reconnect operations. */ @@ -208,7 +207,7 @@ public class ReconnectPluginActivator * * @param bundleContext the <tt>BundleContext</tt> in which this bundle is * to be stopped - * @throws Exception if anything goes wrong while stopping this bundle + * @throws Exception if anything goes wrong while stopping this bundle */ public void stop(BundleContext bundleContext) throws Exception @@ -502,7 +501,7 @@ public class ReconnectPluginActivator notify("", "plugin.reconnectplugin.NETWORK_DOWN", new String[0]); } } - + if(logger.isTraceEnabled()) { logger.trace("Event received " + event @@ -636,7 +635,7 @@ public class ReconnectPluginActivator { // ignore providers which haven't registered successfully // till now, they maybe misconfigured - String notifyMsg; + //String notifyMsg; if(evt.getReasonCode() == RegistrationStateChangeEvent.REASON_NON_EXISTING_USER_ID) @@ -744,7 +743,7 @@ public class ReconnectPluginActivator private void reconnect(final ProtocolProviderService pp) { long delay; - + if(currentlyReconnecting.containsKey(pp)) { delay = currentlyReconnecting.get(pp).delay; @@ -894,9 +893,9 @@ public class ReconnectPluginActivator private boolean hasAtLeastOneSuccessfulConnection(ProtocolProviderService pp) { String value = (String)getConfigurationService().getProperty( - ATLEAST_ONE_CONNECTION_PROP + "." + ATLEAST_ONE_CONNECTION_PROP + "." + pp.getAccountID().getAccountUniqueID()); - + if(value == null || !value.equals(Boolean.TRUE.toString())) return false; else diff --git a/src/net/java/sip/communicator/plugin/rssaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/rssaccregwizz/Resources.java index 802a30b..371faac 100644 --- a/src/net/java/sip/communicator/plugin/rssaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/rssaccregwizz/Resources.java @@ -11,13 +11,13 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Emil Ivov */ public class Resources { private static ResourceManagementService resourcesService; - + /** * A constant pointing to the RSS protocol logo image. */ @@ -32,7 +32,7 @@ public class Resources /** * 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. */ @@ -43,7 +43,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -52,6 +52,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt> + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/securityconfig/SecurityConfigurationPanel.java b/src/net/java/sip/communicator/plugin/securityconfig/SecurityConfigurationPanel.java index bbb99ef..50a1bd2 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/SecurityConfigurationPanel.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/SecurityConfigurationPanel.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.securityconfig; @@ -22,6 +22,11 @@ public class SecurityConfigurationPanel implements ServiceListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Creates the <tt>SecurityConfigurationPanel</tt>. */ public SecurityConfigurationPanel() diff --git a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/ConfigurationPanel.java b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/ConfigurationPanel.java index 1e7a164..698eab5 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/ConfigurationPanel.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/ConfigurationPanel.java @@ -21,6 +21,11 @@ public class ConfigurationPanel extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Initializes a new <tt>ConfigurationPanel</tt> instance. */ public ConfigurationPanel() diff --git a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordChangeDialog.java b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordChangeDialog.java index f81ed89..333eb2b 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordChangeDialog.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordChangeDialog.java @@ -29,6 +29,11 @@ public class MasterPasswordChangeDialog KeyListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Callback interface. Implementing classes know how to change the master * password from the old to the new one. */ @@ -229,7 +234,7 @@ public class MasterPasswordChangeDialog /** * OK and Cancel button event handler. - * + * * @param e action event */ public void actionPerformed(ActionEvent e) @@ -328,7 +333,7 @@ public class MasterPasswordChangeDialog * password input fields and enable OK button if they are equal. The second * is to measure the password quality of the password from the first input * field. - * + * * @param event key event */ public void keyReleased(KeyEvent event) @@ -353,7 +358,7 @@ public class MasterPasswordChangeDialog /** * Not overriding. - * + * * @param arg0 key event */ public void keyPressed(KeyEvent arg0) @@ -362,7 +367,7 @@ public class MasterPasswordChangeDialog /** * Not overriding. - * + * * @param arg0 key event */ public void keyTyped(KeyEvent arg0) diff --git a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordPanel.java b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordPanel.java index 97b77c2..598888e 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordPanel.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/MasterPasswordPanel.java @@ -28,6 +28,11 @@ public class MasterPasswordPanel implements ActionListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The logger for this class. */ private static final Logger logger @@ -91,8 +96,8 @@ public class MasterPasswordPanel /** * <tt>ActionListener</tt>'s logic for the master password check box. - * - * @param e action event + * + * @param e action event */ public void actionPerformed(ActionEvent e) { diff --git a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsDialog.java b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsDialog.java index d016501..495f9b4 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsDialog.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsDialog.java @@ -22,7 +22,6 @@ import net.java.sip.communicator.service.credentialsstorage.*; import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.service.resources.*; -import net.java.sip.communicator.util.*; import net.java.sip.communicator.util.swing.*; /** @@ -34,10 +33,9 @@ public class SavedPasswordsDialog extends SIPCommDialog { /** - * The logger for this class. + * Serial version UID. */ - private static final Logger logger - = Logger.getLogger(SavedPasswordsDialog.class); + private static final long serialVersionUID = 0L; /** * UI components. @@ -149,12 +147,22 @@ public class SavedPasswordsDialog extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The table model for the accounts table. */ private class PasswordsTableModel extends AbstractTableModel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Index of the first column. */ public static final int TYPE_INDEX = 0; @@ -175,8 +183,8 @@ public class SavedPasswordsDialog /** * Returns the name for the given column. - * - * @param column the column index + * + * @param column the column index * @return the column name for the given index */ public String getColumnName(int column) @@ -202,8 +210,8 @@ public class SavedPasswordsDialog /** * Returns the value for the given row and column. - * - * @param row table's row + * + * @param row table's row * @param column table's column * @return object inside the table at the given row and column */ @@ -236,8 +244,8 @@ public class SavedPasswordsDialog /** * Number of rows in the table. - * - * @return number of rows + * + * @return number of rows */ public int getRowCount() { @@ -247,7 +255,7 @@ public class SavedPasswordsDialog /** * Number of columns depends on whether we are showing passwords or * not. - * + * * @return number of columns */ public int getColumnCount() diff --git a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsPanel.java b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsPanel.java index af93ec1..712f771 100644 --- a/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsPanel.java +++ b/src/net/java/sip/communicator/plugin/securityconfig/masterpassword/SavedPasswordsPanel.java @@ -24,6 +24,11 @@ public class SavedPasswordsPanel extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The {@link CredentialsStorageService}. */ private static final CredentialsStorageService credentialsStorageService @@ -35,7 +40,7 @@ public class SavedPasswordsPanel public SavedPasswordsPanel() { this.setLayout(new BorderLayout(10, 10)); this.setAlignmentX(0.0f); - + initComponents(); } @@ -57,7 +62,7 @@ public class SavedPasswordsPanel if (credentialsStorageService.isUsingMasterPassword()) { showSavedPasswordsDialog(); - } else + } else { SavedPasswordsDialog.getInstance().setVisible(true); } diff --git a/src/net/java/sip/communicator/plugin/simpleaccreg/InitialAccountRegistrationFrame.java b/src/net/java/sip/communicator/plugin/simpleaccreg/InitialAccountRegistrationFrame.java index 3be0bff..9893737 100644 --- a/src/net/java/sip/communicator/plugin/simpleaccreg/InitialAccountRegistrationFrame.java +++ b/src/net/java/sip/communicator/plugin/simpleaccreg/InitialAccountRegistrationFrame.java @@ -1,6 +1,6 @@ /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.simpleaccreg;
@@ -28,7 +28,7 @@ import org.osgi.framework.*; * The <tt>NoAccountFoundPage</tt> is the page shown in the account
* registration wizard shown in the beginning of the program, when no registered
* accounts are found.
- *
+ *
* @author Yana Stamcheva
* @author Lubomir Marinov
*/
@@ -36,6 +36,11 @@ public class InitialAccountRegistrationFrame extends SIPCommFrame
implements ServiceListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private ConfigurationService configurationService;
/**
@@ -247,6 +252,11 @@ public class InitialAccountRegistrationFrame private class AccountRegistrationPanel
extends JPanel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private JLabel usernameLabel
= new JLabel(Resources.getString(
"plugin.simpleaccregwizz.LOGIN_USERNAME"));
@@ -481,7 +491,7 @@ public class InitialAccountRegistrationFrame /**
* Adds a simple account registration form corresponding to the given
* <tt>AccountRegistrationWizard</tt>.
- *
+ *
* @param wizard the <tt>AccountRegistrationWizard</tt>, which gives us
* information to fill our simple form.
*/
@@ -601,7 +611,7 @@ public class InitialAccountRegistrationFrame /**
* Saves the (protocol provider, wizard) pair in through the
* <tt>ConfigurationService</tt>.
- *
+ *
* @param protocolProvider the protocol provider to save
* @param wizard the wizard to save
*/
@@ -645,6 +655,11 @@ public class InitialAccountRegistrationFrame }
}
+ /**
+ * Returns the <tt>ConfigurationService</tt>.
+ *
+ * @return the <tt>ConfigurationService</tt>
+ */
public ConfigurationService getConfigurationService()
{
if (configurationService == null)
diff --git a/src/net/java/sip/communicator/plugin/simpleaccreg/Resources.java b/src/net/java/sip/communicator/plugin/simpleaccreg/Resources.java index cc97ae8..663aab3 100644 --- a/src/net/java/sip/communicator/plugin/simpleaccreg/Resources.java +++ b/src/net/java/sip/communicator/plugin/simpleaccreg/Resources.java @@ -12,16 +12,16 @@ import net.java.sip.communicator.service.resources.*; /**
* The <tt>Resources</tt> class manages the access to the internationalization
* properties files and the image resources used in this plugin.
- *
+ *
* @author Yana Stamcheva
*/
public class Resources
{
private static ResourceManagementService resourcesService;
-
+
/**
* 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.
*/
@@ -53,7 +53,7 @@ public class Resources {
return getResources().getSettingsString(key);
}
-
+
/**
* Returns the application property corresponding to the given key.
*
@@ -76,6 +76,11 @@ public class Resources return getResources().getImage(imageID);
}
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/simpleaccreg/SimpleAccountRegistrationActivator.java b/src/net/java/sip/communicator/plugin/simpleaccreg/SimpleAccountRegistrationActivator.java index 5064517..c73da84 100644 --- a/src/net/java/sip/communicator/plugin/simpleaccreg/SimpleAccountRegistrationActivator.java +++ b/src/net/java/sip/communicator/plugin/simpleaccreg/SimpleAccountRegistrationActivator.java @@ -18,7 +18,7 @@ import net.java.sip.communicator.util.*; import org.osgi.framework.*; /** - * + * * @author Yana Stamcheva */ public class SimpleAccountRegistrationActivator @@ -40,6 +40,9 @@ public class SimpleAccountRegistrationActivator private static final String provisioningFormClassName = "net.java.sip.communicator.plugin.provisioning.ProvisioningForm"; + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static ResourceManagementService resourcesService; @@ -68,7 +71,7 @@ public class SimpleAccountRegistrationActivator accountRegFrame.setVisible(true); } - + if (logger.isInfoEnabled()) logger.info("SIMPLE ACCOUNT REGISTRATION ...[STARTED]"); } @@ -157,7 +160,7 @@ public class SimpleAccountRegistrationActivator * return value. Make sure you call it as little as possible if execution * speed is under consideration. * </p> - * + * * @return the <tt>MetaContactListService</tt> obtained from the bundle * context */ @@ -170,7 +173,7 @@ public class SimpleAccountRegistrationActivator return (MetaContactListService) bundleContext .getService(serviceReference); } - + /** * Returns the <tt>UIService</tt> obtained from the bundle * context. @@ -180,7 +183,7 @@ public class SimpleAccountRegistrationActivator * return value. Make sure you call it as little as possible if execution * speed is under consideration. * </p> - * + * * @return the <tt>MetaContactListService</tt> obtained from the bundle * context */ diff --git a/src/net/java/sip/communicator/plugin/sip2sipaccregwizz/CreateSip2SipAccountForm.java b/src/net/java/sip/communicator/plugin/sip2sipaccregwizz/CreateSip2SipAccountForm.java index dcc947a..591f3c8 100644 --- a/src/net/java/sip/communicator/plugin/sip2sipaccregwizz/CreateSip2SipAccountForm.java +++ b/src/net/java/sip/communicator/plugin/sip2sipaccregwizz/CreateSip2SipAccountForm.java @@ -29,6 +29,11 @@ public class CreateSip2SipAccountForm implements SIPAccountCreationFormService { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * The logger. */ private static final Logger logger @@ -168,7 +173,7 @@ public class CreateSip2SipAccountForm */ private void initErrorArea() { - SimpleAttributeSet attribs = new SimpleAttributeSet(); + SimpleAttributeSet attribs = new SimpleAttributeSet(); StyleConstants.setAlignment(attribs, StyleConstants.ALIGN_RIGHT); StyleConstants.setFontFamily(attribs, errorPane.getFont().getFamily()); StyleConstants.setForeground(attribs, Color.RED); @@ -186,7 +191,7 @@ public class CreateSip2SipAccountForm { // Check if the two passwords match. String pass1 = new String( passField.getPassword()); - String pass2 = new String( retypePassField.getPassword()); + String pass2 = new String( retypePassField.getPassword()); if (!pass1.equals(pass2)) { showErrorMessage( @@ -216,7 +221,7 @@ public class CreateSip2SipAccountForm .append("&").append(URLEncoder.encode("user_agent", "UTF-8")) .append("=").append( URLEncoder.encode("sip-communicator.org", "UTF-8")); - + URL url = new URL(registerLinkBuilder.toString()); URLConnection conn = url.openConnection(); diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/AccountPanel.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/AccountPanel.java index 1d7188e..6e10ace 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/AccountPanel.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/AccountPanel.java @@ -25,6 +25,11 @@ public class AccountPanel implements DocumentListener, ValidatingPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final Logger logger = Logger.getLogger(AccountPanel.class); private final JPanel labelsPanel diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java index df0a116..27219ab 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java @@ -25,6 +25,11 @@ public class ConnectionPanel DocumentListener, ValidatingPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final JTextField serverField = new JTextField(); private final JTextField proxyField = new JTextField(); @@ -471,7 +476,7 @@ public class ConnectionPanel /** * Gets the ID of the selected client TLS certificate or <tt>null</tt> if no * certificate is selected. - * + * * @return the ID of the selected client TLS certificate or <tt>null</tt> if * no certificate is selected. */ diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/PresencePanel.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/PresencePanel.java index 6d73312..7a9e216 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/PresencePanel.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/PresencePanel.java @@ -23,6 +23,11 @@ public class PresencePanel extends TransparentPanel implements ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private JPanel presenceOpPanel = new TransparentPanel(new BorderLayout(10, 10)); diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/Resources.java index e18e33d..4e410f6 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -36,7 +36,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -45,6 +45,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccRegWizzActivator.java index 6dc24e3..4631878 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccRegWizzActivator.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.sipaccregwizz; @@ -18,13 +18,16 @@ import net.java.sip.communicator.util.*; /** * Registers the <tt>SIPAccountRegistrationWizard</tt> in the UI Service. - * + * * @author Yana Stamcheva */ public class SIPAccRegWizzActivator implements BundleActivator { + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static final Logger logger = @@ -47,7 +50,7 @@ public class SIPAccRegWizzActivator /** * Starts this bundle. - * + * * @param bc BundleContext * @throws Exception */ @@ -84,7 +87,7 @@ public class SIPAccRegWizzActivator /** * Returns the <tt>ProtocolProviderFactory</tt> for the SIP protocol. - * + * * @return the <tt>ProtocolProviderFactory</tt> for the SIP protocol */ public static ProtocolProviderFactory getSIPProtocolProviderFactory() @@ -113,7 +116,7 @@ public class SIPAccRegWizzActivator /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java index 43091c2..c9b492e 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java @@ -18,6 +18,11 @@ import net.java.sip.communicator.util.swing.*; public class SIPAccountRegistrationForm extends TransparentPanel { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private final AccountPanel accountPanel; private final ConnectionPanel connectionPanel; private final SecurityPanel securityPanel; @@ -135,7 +140,7 @@ public class SIPAccountRegistrationForm } /** - * Adds panel to the list of panels with values which need validation. + * Adds panel to the list of panels with values which need validation. * @param panel ValidatingPanel. */ public void addValidatingPanel(ValidatingPanel panel) @@ -163,7 +168,7 @@ public class SIPAccountRegistrationForm /** * Indicates if this wizard is modifying an existing account or is creating * a new one. - * + * * @return <code>true</code> to indicate that this wizard is currently in * modification mode, <code>false</code> - otherwise. */ @@ -298,7 +303,7 @@ public class SIPAccountRegistrationForm registration.setClistOptionServerUri( presencePanel.getClistOptionServerUri()); } - + registration.setClistOptionUseSipCredentials( presencePanel.isClistOptionUseSipCredentials()); registration.setClistOptionUser(presencePanel.getClistOptionUser()); diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SecurityPanel.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SecurityPanel.java index 713b673..2f7c904 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SecurityPanel.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SecurityPanel.java @@ -17,13 +17,18 @@ import net.java.sip.communicator.util.swing.*; /**
* Contains the security settings for SIP media encryption.
- *
+ *
* @author Ingo Bauersachs
*/
public class SecurityPanel
extends TransparentPanel
implements ActionListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private SIPAccountRegistrationForm regform;
private JPanel pnlAdvancedSettings;
@@ -66,6 +71,11 @@ public class SecurityPanel private static class CipherTableModel extends AbstractTableModel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private List<Entry> data = new ArrayList<Entry>();
private final String defaultCiphers = Resources.getResources()
.getSettingsString(SDesControl.SDES_CIPHER_SUITES);
diff --git a/src/net/java/sip/communicator/plugin/skinmanager/SkinManagerPanel.java b/src/net/java/sip/communicator/plugin/skinmanager/SkinManagerPanel.java index 36f92bf..2b2dd8d 100644 --- a/src/net/java/sip/communicator/plugin/skinmanager/SkinManagerPanel.java +++ b/src/net/java/sip/communicator/plugin/skinmanager/SkinManagerPanel.java @@ -21,6 +21,11 @@ public class SkinManagerPanel extends TransparentPanel { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Remove button. */ private final JButton rmButton = new JButton("Remove selected skin"); diff --git a/src/net/java/sip/communicator/plugin/skinmanager/SkinSelector.java b/src/net/java/sip/communicator/plugin/skinmanager/SkinSelector.java index 7d6a21c..6cc408f 100644 --- a/src/net/java/sip/communicator/plugin/skinmanager/SkinSelector.java +++ b/src/net/java/sip/communicator/plugin/skinmanager/SkinSelector.java @@ -19,11 +19,16 @@ import org.osgi.framework.*; * @author Adam Netocny * @author Yana Stamcheva */ -public class SkinSelector +public class SkinSelector extends JComboBox implements BundleListener { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Text for the default skin menu item. */ public static final String DEFAULT_TEXT diff --git a/src/net/java/sip/communicator/plugin/skinmanager/SkinSelectorRenderer.java b/src/net/java/sip/communicator/plugin/skinmanager/SkinSelectorRenderer.java index 8a2881e..d01fb89 100644 --- a/src/net/java/sip/communicator/plugin/skinmanager/SkinSelectorRenderer.java +++ b/src/net/java/sip/communicator/plugin/skinmanager/SkinSelectorRenderer.java @@ -23,11 +23,16 @@ import org.osgi.framework.*; * @author Adam Netocny * @author Yana Stamcheva */ -public class SkinSelectorRenderer +public class SkinSelectorRenderer extends TransparentPanel implements ListCellRenderer { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Separator string. Will be replaced with a <tt>JSeparator</tt>. */ public static final String SEPARATOR = "separator"; @@ -70,7 +75,7 @@ public class SkinSelectorRenderer * @param cellHasFocus True if the specified cell has the focus. * @return A component whose paint() method will render the specified value. */ - public Component getListCellRendererComponent(JList list, Object value, + public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { this.removeAll(); diff --git a/src/net/java/sip/communicator/plugin/spellcheck/LanguageMenuBar.java b/src/net/java/sip/communicator/plugin/spellcheck/LanguageMenuBar.java index e9618bc..3a6e5e1 100644 --- a/src/net/java/sip/communicator/plugin/spellcheck/LanguageMenuBar.java +++ b/src/net/java/sip/communicator/plugin/spellcheck/LanguageMenuBar.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.spellcheck; @@ -30,7 +30,7 @@ import net.java.sip.communicator.util.swing.SwingWorker; * country flags. Selecting a new field causes that locale's dictionary to be * downloaded, if not available. The spell checker then use the selected * language for further checking. - * + * * @author Damian Johnson * @author Yana Stamcheva */ @@ -38,6 +38,11 @@ public class LanguageMenuBar extends SIPCommMenuBar implements PluginComponent { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private static final HashMap<SpellChecker, LanguageMenuBar> CLASS_INSTANCES = new HashMap<SpellChecker, LanguageMenuBar>(); @@ -66,14 +71,14 @@ public class LanguageMenuBar private final ArrayList<Parameters.Locale> localeList = new ArrayList<Parameters.Locale>(); - + private final SIPCommTextButton removeItem = new SIPCommTextButton( Resources.getString("plugin.spellcheck.UNINSTALL_DICTIONARY")); /** * Provides instance of this class associated with a spell checker. If ones * already been created then this instance is used. - * + * * @param checker spell checker field is to be associated with * @return spell checker locale selection field */ @@ -131,9 +136,9 @@ public class LanguageMenuBar localeList.add(locale); } - + setModelElements(model); - + JScrollPane scroll = new JScrollPane(list); scroll.setBorder(null); @@ -144,7 +149,7 @@ public class LanguageMenuBar list.setSelectedIndex(localeList.indexOf(loc) + 1); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - + removeItem.setPreferredSize(new Dimension(30, 28)); list.addListSelectionListener(new LanguageListSelectionListener()); @@ -157,9 +162,9 @@ public class LanguageMenuBar SelectedObject selectedObject = new SelectedObject(flagIcon, checker.getLocale()); menu.setSelected(selectedObject); - + this.menu.addSeparator(); - + menu.add(removeItem); list.addKeyListener(new KeyListener() @@ -174,7 +179,7 @@ public class LanguageMenuBar if (!Character.isLetter(ch)) return; - + if (time + 1000 < System.currentTimeMillis()) key = ""; @@ -194,7 +199,7 @@ public class LanguageMenuBar break; } } - + list.requestFocusInWindow(); } @@ -209,10 +214,10 @@ public class LanguageMenuBar } }); - + removeItem.setEnabled(!spellChecker.getLocale().getIsoCode() .equals(Parameters.getDefault(Parameters.Default.LOCALE))); - + removeItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -341,7 +346,7 @@ public class LanguageMenuBar /** * Creates a deep copy of an image. - * + * * @param image picture to be processed * @return copy of the image */ @@ -379,7 +384,7 @@ public class LanguageMenuBar /** * Removes all color from an image and makes it partly translucent. Original * grayscale method written by Marty Stepp. - * + * * @param image picture to be processed */ private static void setFaded(BufferedImage image) @@ -413,6 +418,11 @@ public class LanguageMenuBar private class SelectorMenu extends SIPCommMenu { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + Image image = Resources.getImage("service.gui.icons.DOWN_ARROW_ICON") .getImage(); @@ -449,10 +459,10 @@ public class LanguageMenuBar return checkBox; } - + /** * Set the elements for list model - * + * * @param model the model whose elements are to be set */ private void setModelElements(DefaultListModel model) @@ -539,7 +549,7 @@ public class LanguageMenuBar // Indicate to the user that the language is currently // loading. locale.setLoading(false); - + sourceList.removeListSelectionListener(sourceList .getListSelectionListeners()[0]); setModelElements((DefaultListModel) sourceList.getModel()); @@ -608,6 +618,11 @@ public class LanguageMenuBar private class LanguageListRenderer extends DefaultListCellRenderer { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) @@ -630,13 +645,13 @@ public class LanguageMenuBar + " <font color='gray'><i>loading...</i></font><html>"); else setText(localeLabel); - + setIcon(flagIcon); - + return this; } } - + private class LanguageListSelectionListener implements ListSelectionListener { diff --git a/src/net/java/sip/communicator/plugin/spellcheck/SpellCheckerConfigDialog.java b/src/net/java/sip/communicator/plugin/spellcheck/SpellCheckerConfigDialog.java index 9ceba2d..5793186 100644 --- a/src/net/java/sip/communicator/plugin/spellcheck/SpellCheckerConfigDialog.java +++ b/src/net/java/sip/communicator/plugin/spellcheck/SpellCheckerConfigDialog.java @@ -1,6 +1,6 @@ /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.spellcheck;
@@ -23,13 +23,18 @@ import net.java.sip.communicator.util.swing.*; /**
* The spell check dialog that would be opened from the right click menu in the
* chat window.
- *
+ *
* @author Purvesh Sahoo
*/
public class SpellCheckerConfigDialog
extends SIPCommDialog
implements ActionListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private static final Logger logger = Logger
.getLogger(SpellCheckerConfigDialog.class);
@@ -243,13 +248,13 @@ public class SpellCheckerConfigDialog int breakIndex = nextWord.getStart();
if(breakIndex == 0)
breakIndex = nextWord.getEnd() + 1;
-
+
if(nextWord.getText().length() == 0)
{
breakIndex++;
nextWord = getNextWord();
}
-
+
while (dict.isCorrect(nextWord.getText())
&& nextWord.getEnd() + 1 != breakIndex)
{
@@ -376,7 +381,7 @@ public class SpellCheckerConfigDialog /**
* Sets the model for the suggestion list
- *
+ *
* @param clickedWord
*/
private void setSuggestionModel(String clickedWord)
@@ -394,7 +399,7 @@ public class SpellCheckerConfigDialog /**
* Returns the selected correction value
- *
+ *
* @return selected value from suggestion list
*/
public Object getCorrection()
diff --git a/src/net/java/sip/communicator/plugin/sshaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/sshaccregwizz/Resources.java index 2f14906..97a5ff3 100644 --- a/src/net/java/sip/communicator/plugin/sshaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/sshaccregwizz/Resources.java @@ -18,7 +18,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Shobhit Jindal */ public class Resources @@ -43,7 +43,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -52,6 +52,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/whiteboard/Resources.java b/src/net/java/sip/communicator/plugin/whiteboard/Resources.java index cf817a8..05d273d 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/Resources.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/Resources.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.whiteboard; @@ -12,7 +12,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -21,7 +21,7 @@ public class Resources /** * 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. */ @@ -35,7 +35,7 @@ public class Resources * by replacing all occurences of '?' with the given string param. * @param key The key of the string. * @param params the params, that should replace {1}, {2}, etc. in the - * string given by the key parameter + * string given by the key parameter * @return An internationalized string corresponding to the given key, * by replacing all occurences of '?' with the given string param. */ @@ -46,7 +46,7 @@ public class Resources /** * 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. */ @@ -57,7 +57,7 @@ public class Resources /** * Loads an image from a given image identifier. - * + * * @param imageID The identifier of the image. * @return The image for the given identifier. */ @@ -66,6 +66,11 @@ public class Resources return getResources().getImage(imageID); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardActivator.java b/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardActivator.java index 26f5cd8..a4f711d 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardActivator.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardActivator.java @@ -23,6 +23,9 @@ public class WhiteboardActivator implements BundleActivator { private static Logger logger = Logger.getLogger(WhiteboardActivator.class); + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private WhiteboardSessionManager session; diff --git a/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardSessionManager.java b/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardSessionManager.java index 90aded4..31e6218 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardSessionManager.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/WhiteboardSessionManager.java @@ -37,6 +37,9 @@ public class WhiteboardSessionManager private OperationSetWhiteboarding opSetWb; + /** + * Constructor. + */ public WhiteboardSessionManager() { List<OperationSetWhiteboarding> whiteboardOpSets @@ -63,14 +66,14 @@ public class WhiteboardSessionManager = contact .getProtocolProvider() .getOperationSet(OperationSetWhiteboarding.class); - + if (opSetWb == null) { if (logger.isInfoEnabled()) logger.info("Contact does not support whiteboarding"); return; } - + WhiteboardFrame wbf = getWhiteboardFrame (contact); if(wbf != null) { @@ -268,7 +271,7 @@ public class WhiteboardSessionManager /** * Moves a <tt>WhiteboardShape</tt> from from one point to another on the * board. - * + * * @param wbSession the white-board session, to which the moved object * belongs * @param ws the shape to move @@ -288,7 +291,7 @@ public class WhiteboardSessionManager /** * Deletes a <tt>WhiteboardShape</tt> from the white-board. - * + * * @param wbSession the white-board session, to which the object belongs * @param ws the shape to delete */ @@ -527,7 +530,7 @@ public class WhiteboardSessionManager /** * Called to accept an incoming invitation. Adds the invitation chat room * to the list of chat rooms and joins it. - * + * * @param invitation the invitation to accept. */ public void acceptInvitation(WhiteboardInvitation invitation) @@ -559,7 +562,7 @@ public class WhiteboardSessionManager /** * Rejects the given invitation with the specified reason. - * + * * @param whiteboardOpSet the operation set to use for rejecting the * invitation * @param invitation the invitation to reject @@ -633,19 +636,19 @@ public class WhiteboardSessionManager else if (evt.getEventType().equals( WhiteboardSessionPresenceChangeEvent.LOCAL_USER_KICKED)) { - + } else if (evt.getEventType().equals( WhiteboardSessionPresenceChangeEvent.LOCAL_USER_DROPPED)) { - + } } } /** * Removes a white board frame. - * + * * @param frame the frame to remove */ public void removeWhiteboardWindow(WhiteboardFrame frame) diff --git a/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java b/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java index 90b2d19..335accf 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java @@ -17,13 +17,18 @@ import net.java.sip.communicator.util.swing.*; /** * The dialog that pops up when a chat room invitation is received. - * + * * @author Yana Stamcheva */ public class InvitationReceivedDialog extends SIPCommDialog implements ActionListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + private JTextArea infoTextArea = new JTextArea(); private JTextArea invitationReasonTextArea = new JTextArea(); @@ -74,10 +79,10 @@ public class InvitationReceivedDialog * reject the invitation. */ private OperationSetWhiteboarding whiteboardOpSet; - + /** * Constructs the <tt>ChatInviteDialog</tt>. - * + * * @param whiteboardManager the <tt>WhiteboardSessionManager</tt> is the one * that deals with invitation events * @param whiteboardOpSet the operation set that would handle the @@ -164,7 +169,7 @@ public class InvitationReceivedDialog public void actionPerformed(ActionEvent e) { JButton button = (JButton)e.getSource(); - + if (button.equals(acceptButton)) { whiteboardManager.acceptInvitation(invitation); @@ -174,7 +179,7 @@ public class InvitationReceivedDialog whiteboardManager.rejectInvitation(whiteboardOpSet, invitation, reasonField.getText()); } - + this.dispose(); } diff --git a/src/net/java/sip/communicator/plugin/whiteboard/gui/WhiteboardPanel.java b/src/net/java/sip/communicator/plugin/whiteboard/gui/WhiteboardPanel.java index 9be14de..6966129 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/gui/WhiteboardPanel.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/gui/WhiteboardPanel.java @@ -1,6 +1,6 @@ /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * + * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.plugin.whiteboard.gui; @@ -19,7 +19,7 @@ import net.java.sip.communicator.util.swing.*; /** * Panel for drawing shapes - * + * * @author Julien Waechter */ public class WhiteboardPanel @@ -27,6 +27,11 @@ public class WhiteboardPanel implements Printable { /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + + /** * Shapes to display */ private final List<WhiteboardShape> displayList; @@ -50,7 +55,7 @@ public class WhiteboardPanel /** * WhiteboardPanel constructor. - * + * * @param displayList Shapes to display * @param wf WhiteboardFrame */ @@ -66,7 +71,7 @@ public class WhiteboardPanel /** * Method to draw/hide grid - * + * * @param grid if true, draw grid */ public void drawGrid(boolean grid) @@ -83,7 +88,7 @@ public class WhiteboardPanel * The passed in <code>Graphics</code> object might have a transform other * than the identify transform installed on it. In this case, you might get * unexpected results if you cumulatively apply another transform. - * + * * @param g the <code>Graphics</code> object to protect * @see #paint * @see ComponentUI @@ -131,7 +136,7 @@ public class WhiteboardPanel * {@link PrinterGraphics} interface to provide additional information. If * the <code>Printable</code> object aborts the print job then it throws a * {@link PrinterException}. - * + * * @param graphics the context into which the page is drawn * @param pageFormat the size and orientation of the page being drawn * @param pageIndex the zero based index of the page to be drawn @@ -211,7 +216,7 @@ public class WhiteboardPanel /** * Invoked when an action occurs on the delete popup menu. - * + * * @param evt */ private void deletePopupMenuItemActionPerformed( @@ -222,7 +227,7 @@ public class WhiteboardPanel /** * Invoked when an action occurs on the color popup menu. - * + * * @param evt */ private void colorPopupMenuItemActionPerformed( @@ -233,7 +238,7 @@ public class WhiteboardPanel /** * Invoked when a mouse button has been released on the WhiteboardPanel. - * + * * @param evt */ private void formMouseReleased(java.awt.event.MouseEvent evt) @@ -243,7 +248,7 @@ public class WhiteboardPanel /** * Invoked when a mouse button has been pressed on the WhiteboardPanel. - * + * * @param evt */ private void formMousePressed(java.awt.event.MouseEvent evt) @@ -268,7 +273,7 @@ public class WhiteboardPanel /** * Manage popup event - * + * * @param e MouseEvent */ private void checkPopupEvent(MouseEvent e) diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java index 0b427e6..c1e5c0d 100644 --- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/FirstWizardPage.java @@ -26,6 +26,10 @@ public class FirstWizardPage implements WizardPage, DocumentListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/Resources.java index 0674a5e..5f7c6eb 100644 --- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The <tt>Resources</tt> class manages the access to the internationalization * properties files and the image resources used in this plugin. - * + * * @author Yana Stamcheva */ public class Resources @@ -44,6 +44,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccRegWizzActivator.java index fdc986e..75df8a5 100644 --- a/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/yahooaccregwizz/YahooAccRegWizzActivator.java @@ -20,8 +20,11 @@ import org.osgi.framework.*; * * @author Yana Stamcheva */ -public class YahooAccRegWizzActivator implements BundleActivator { - +public class YahooAccRegWizzActivator implements BundleActivator +{ + /** + * OSGi bundle context. + */ public static BundleContext bundleContext; private static final Logger logger = @@ -95,14 +98,14 @@ public class YahooAccRegWizzActivator implements BundleActivator { /** * Returns the <tt>UIService</tt>. - * + * * @return the <tt>UIService</tt> */ public static UIService getUIService() { return uiService; } - + /** * Returns the <tt>BrowserLauncherService</tt> obtained from the bundle * context. diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/FirstWizardPage.java index 4881fc6..d46a2e4 100644 --- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/FirstWizardPage.java @@ -27,6 +27,11 @@ public class FirstWizardPage implements WizardPage, DocumentListener { + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; + public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier"; private JPanel userPassPanel = new TransparentPanel(new BorderLayout(10, 10)); diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java index 51e485d..bfa379f 100644 --- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java +++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java @@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*; /** * The Resources class manages the access to the internationalization * properties files and the images properties file. - * + * * @author Christian Vincenot * @author Maxime Catelin */ @@ -45,6 +45,11 @@ public class Resources return getResources().getImageInBytes(imageID.getId()); } + /** + * Returns the <tt>ResourceManagementService</tt>. + * + * @return the <tt>ResourceManagementService</tt>. + */ public static ResourceManagementService getResources() { if (resourcesService == null) diff --git a/src/net/java/sip/communicator/service/geolocation/event/LocalPositionChangeEvent.java b/src/net/java/sip/communicator/service/geolocation/event/LocalPositionChangeEvent.java index 240687e..76deab3 100644 --- a/src/net/java/sip/communicator/service/geolocation/event/LocalPositionChangeEvent.java +++ b/src/net/java/sip/communicator/service/geolocation/event/LocalPositionChangeEvent.java @@ -17,7 +17,12 @@ import net.java.sip.communicator.service.protocol.*; * * @author Guillaume Schreiner */ -public class LocalPositionChangeEvent extends PropertyChangeEvent { +public class LocalPositionChangeEvent extends PropertyChangeEvent +{ + /** + * Serial version UID. + */ + private static final long serialVersionUID = 0L; /** * Creates an event instance indicating a change of the property specified |