net.sf.latexdraw.util
Class VersionChecker

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.latexdraw.util.VersionChecker
All Implemented Interfaces:
java.lang.Runnable

public class VersionChecker
extends java.lang.Thread

This class allows to check if a new version of LaTeXDraw is out. This class is a child of Thread to avoid a freeze when the application starts.

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

05/20/2010

Since:
1.8
Version:
3.0
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String ID_BUILD
          The identifier of the build
protected  javax.swing.JLabel notificationTextField
          The field where messages will be displayed.
static java.lang.String PATH_MSG
          The path of the file containing the news
static java.lang.String VERSION
          The version of the application
static java.lang.String VERSION_STABILITY
           
static boolean WITH_UPDATE
          To change if update is needed or not.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
VersionChecker(javax.swing.JLabel notificationTextField)
          Creates the version checker.
 
Method Summary
protected  void checkNewVersion()
          Checks if a new version of latexdraw is out.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The version of the application

See Also:
Constant Field Values

VERSION_STABILITY

public static final java.lang.String VERSION_STABILITY
See Also:
Constant Field Values

ID_BUILD

public static final java.lang.String ID_BUILD
The identifier of the build

See Also:
Constant Field Values

WITH_UPDATE

public static final boolean WITH_UPDATE
To change if update is needed or not.

See Also:
Constant Field Values

PATH_MSG

public static final java.lang.String PATH_MSG
The path of the file containing the news

See Also:
Constant Field Values

notificationTextField

protected javax.swing.JLabel notificationTextField
The field where messages will be displayed.

Constructor Detail

VersionChecker

public VersionChecker(javax.swing.JLabel notificationTextField)
Creates the version checker.

Parameters:
notificationTextField - The field where messages will be displayed.
Throws:
java.lang.IllegalArgumentException - If notificationTextField is null.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

checkNewVersion

protected void checkNewVersion()
Checks if a new version of latexdraw is out.