Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Kolosowski2003-10-06 15:23:58 +0000
committerKonrad Kolosowski2003-10-06 15:23:58 +0000
commitbc36735033200b5bb600d6e6c723045316f4bf33 (patch)
treee9cc0cd8a66e2734d077938a64d833677e7a559e /org.eclipse.help
parent0160fc496c802b15694fadcfd66381a36a12c457 (diff)
downloadeclipse.platform.ua-bc36735033200b5bb600d6e6c723045316f4bf33.tar.gz
eclipse.platform.ua-bc36735033200b5bb600d6e6c723045316f4bf33.tar.xz
eclipse.platform.ua-bc36735033200b5bb600d6e6c723045316f4bf33.zip
compiler warning for finallyv20031006
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/standalone/EclipseController.java48
1 files changed, 27 insertions, 21 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/standalone/EclipseController.java b/org.eclipse.help/src/org/eclipse/help/internal/standalone/EclipseController.java
index 8c284f92e..1973a344e 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/standalone/EclipseController.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/standalone/EclipseController.java
@@ -15,9 +15,8 @@ import java.net.*;
import java.nio.channels.*;
/**
- * This program is used to start or stop Eclipse
- * Infocenter application.
- * It should be launched from command line.
+ * This program is used to start or stop Eclipse Infocenter application. It
+ * should be launched from command line.
*/
public class EclipseController implements EclipseLifeCycleListener {
@@ -37,13 +36,15 @@ public class EclipseController implements EclipseLifeCycleListener {
private boolean eclipseEnded = false;
/**
* Constructs help system
- * @param applicationID ID of Eclipse help application
- * @param args array of String options and their values
- * Option <code>-eclipseHome dir</code> specifies Eclipse
- * installation directory.
- * It must be provided, when current directory is not the same
- * as Eclipse installation directory.
- * Additionally, most options accepted by Eclipse execuable are supported.
+ *
+ * @param applicationID
+ * ID of Eclipse help application
+ * @param args
+ * array of String options and their values Option <code>-eclipseHome dir</code>
+ * specifies Eclipse installation directory. It must be provided,
+ * when current directory is not the same as Eclipse installation
+ * directory. Additionally, most options accepted by Eclipse
+ * execuable are supported.
*/
public EclipseController(String applicationId, String[] args) {
@@ -81,10 +82,9 @@ public class EclipseController implements EclipseLifeCycleListener {
}
/**
- * Ensures the application is running, and sends command
- * to the control servlet.
- * If connection fails, retries several times,
- * in case webapp is starting up.
+ * Ensures the application is running, and sends command to the control
+ * servlet. If connection fails, retries several times, in case webapp is
+ * starting up.
*/
protected final synchronized void sendHelpCommand(
String command,
@@ -178,10 +178,14 @@ public class EclipseController implements EclipseLifeCycleListener {
}
/**
- * Builds a URL that communicates the specified command
- * to help control servlet.
- * @param command standalone help system command e.g. "displayHelp"
- * @param parameters array of parameters of the command e.g. {"http://www.eclipse.org"}
+ * Builds a URL that communicates the specified command to help control
+ * servlet.
+ *
+ * @param command
+ * standalone help system command e.g. "displayHelp"
+ * @param parameters
+ * array of parameters of the command e.g.
+ * {"http://www.eclipse.org"}
*/
private URL createCommandURL(String command, String[] parameters)
throws MalformedURLException {
@@ -233,8 +237,9 @@ public class EclipseController implements EclipseLifeCycleListener {
}
}
}
- /** Tests whether HelpApplication is running
- * by testing if .applicationlock is locked
+ /**
+ * Tests whether HelpApplication is running by testing if .applicationlock
+ * is locked
*/
private boolean isApplicationRunning() {
File applicationLockFile =
@@ -244,6 +249,7 @@ public class EclipseController implements EclipseLifeCycleListener {
try {
randomAccessFile = new RandomAccessFile(applicationLockFile, "rw");
applicationLock = randomAccessFile.getChannel().tryLock();
+ } catch (IOException ioe) {
} finally {
if (applicationLock != null) {
try {
@@ -261,8 +267,8 @@ public class EclipseController implements EclipseLifeCycleListener {
System.out.println(
"isApplicationRunning? " + (applicationLock == null));
}
- return applicationLock == null;
}
+ return applicationLock == null;
}
public class EclipseCleaner extends Thread {
public void run() {

Back to the top