summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-21 09:07:31 +0200
committerNoel Grandin <noel@peralex.com>2014-10-07 13:20:04 +0200
commite189c61376a867c30adf385d435f2ff391d26187 (patch)
tree16ad39f65889fe1acea18bc7f7e0b8511109046b /scripting
parent821386a80f8b31f1ec32aa258c113183ef4c4881 (diff)
LocalOffice should be an abstract class
Change-Id: I9531b64dc8cb2545dfc41ae4d69007eced8f2d26
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/org/openoffice/idesupport/LocalOffice.java18
1 files changed, 7 insertions, 11 deletions
diff --git a/scripting/java/org/openoffice/idesupport/LocalOffice.java b/scripting/java/org/openoffice/idesupport/LocalOffice.java
index f6d0814e0199..0c05cd097295 100644
--- a/scripting/java/org/openoffice/idesupport/LocalOffice.java
+++ b/scripting/java/org/openoffice/idesupport/LocalOffice.java
@@ -24,13 +24,12 @@ import java.net.ConnectException;
* LocalOffice represents a connection to the local office.
*
* This class allows to get access to some scripting framework
- * releated functionality of the locally running office. The
+ * related functionality of the locally running office. The
* office has to be started with options appropriate for establishing
* local connection.
*/
-public class LocalOffice {
-
-
+public abstract class LocalOffice
+{
/**
* Connects to the running office.
*
@@ -38,21 +37,18 @@ public class LocalOffice {
* to the office distribution.
* @param port is a communication port.
*/
- protected void connect(String officePath, int port)
- throws ConnectException {
- }
+ protected abstract void connect(String officePath, int port)
+ throws ConnectException;
/**
* Closes the connection to the running office.
*/
- public void disconnect() {
- }
+ public abstract void disconnect();
/**
* Refresh the script storage.
*
* @param uri is an identifier of storage has to be refreshed.
*/
- public void refreshStorage(String uri) {
- }
+ public abstract void refreshStorage(String uri);
}