summaryrefslogtreecommitdiff
path: root/odk/examples
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples')
-rw-r--r--odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java14
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java10
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java10
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java6
-rw-r--r--odk/examples/java/Drawing/SDraw.java2
9 files changed, 28 insertions, 28 deletions
diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
index 8b8cbddb9b95..7fb167f7081d 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
@@ -286,7 +286,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
}
catch(java.lang.Throwable exIgnore)
{
- // ignore any problem, which can occure here.
+ // ignore any problem, which can occur here.
// It's not realy a bug for this example job, if
// it's message could not be printed out!
}
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index a21011c59fef..dcccb06606bc 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -122,15 +122,15 @@ public class CustomizeView extends JPanel
/**
* set new frame for this view
* We start listening for frame action/status and click events instandly.
- * If an event occure we use it to synchronize our controls
- * with states of a (my be) new document view of this frame.
+ * If an event occurs, we use it to synchronize our controls
+ * with states of a (maybe) new document view of this frame.
*
* @param xFrame
* the reference to the frame, which provides the
* possibility to get the required status information
*
* Attention: We don't accept new frames here.
- * We get one after startup and work with him.
+ * We get one after startup and work with it.
* That's it!
*/
public void setFrame(com.sun.star.frame.XFrame xFrame)
@@ -205,13 +205,13 @@ public class CustomizeView extends JPanel
/**
* callback for action events
- * Such events occure if somehwere click the
- * JCheckBox control on which we are registered.
- * Such events doesn't occure if we set it programmaticly
+ * Such events occur, if someone clicked the
+ * JCheckBox control, on which we are registered.
+ * Such events do not occur, if we set it programmatically
* (e.g. if we get status events to -> see class StatusListener too)
*
* @param aEvent
- * describes the check box and his state
+ * describes the check box and its state
* we can use to toogle the requested office
* resource.
*/
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
index dd1c8fdea1c3..c227e339ab2e 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
@@ -393,7 +393,7 @@ public class FunctionHelper
// It's possible to do that here - because frame has no component inside yet.
// So nobody can disagree with that.
// After the dispose() call forget all references to this frame and let him die.
- // If a new exception will occure ... no generell solution exist then.
+ // If a new exception will occur ... no generell solution exist then.
// Nobody can guarantee if next call will work or not.
com.sun.star.lang.XComponent xComponent = UnoRuntime.queryInterface(
com.sun.star.lang.XComponent.class,
@@ -428,7 +428,7 @@ public class FunctionHelper
/**
* Dispatch an URL to given frame.
* Caller can register himself for following status events for dispatched
- * URL too. But nobody guarantee that such notifications will occure.
+ * URL too. But nobody guarantee that such notifications will occur.
* (see dispatchWithNotification() if you interest on that)
* The returned dispatch object should be hold alive by caller
* till he deosn't need it any longer. Otherwise the dispatcher can(!)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
index 2524aaec8978..bdb6f6465e4b 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
@@ -50,7 +50,7 @@ import com.sun.star.uno.UnoRuntime;
* because another interceptor (registered at a later time then this one!)
* will be called before this one.
* Implementation is executed inside a new thread to prevent application
- * against possible deadlocks. This deadlocks can occure if
+ * against possible deadlocks. This deadlocks can occur if
* synchronous/asynchronous ... normal ones and oneway calls are mixed.
* Notifications of listener will be oneway mostly - her reactions can
* be synchronous then. => deadlocks are possible
@@ -350,7 +350,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
* connected in both ways.
* Searching for a right interceptor is made by forwarding any request
* from toppest master to lowest slave of this hierarchy.
- * If an interceptor whish to handle the request he can break that
+ * If an interceptor wish to handle the request he can break that
* and return himself as a dispatcher.
*/
public com.sun.star.frame.XDispatchProvider getSlaveDispatchProvider()
@@ -467,7 +467,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
return null;
}
// Resolve any request separately by using own "dispatch()" method.
- // Note: Don't pack return list if "null" objects occure!
+ // Note: Don't pack return list if "null" objects occur!
int nCount = lDescriptor.length;
com.sun.star.frame.XDispatch[] lDispatcher = new com.sun.star.frame.XDispatch[nCount];
for(int i=0; i<nCount; ++i)
@@ -560,8 +560,8 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
* call this interceptor directly without calling his masters before, IF(!)
* following rules will be true:
* (1) every master supports this optional interface too
- * (2) nobody of these masters whish to intercept same URL then this one
- * This interceptor whish to intercept creation of new documents.
+ * (2) nobody of these masters wish to intercept same URL then this one
+ * This interceptor wish to intercept creation of new documents.
*/
public String[] getInterceptedURLs()
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index 17c117f43cba..51c506bdd3f1 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -43,16 +43,16 @@ import java.lang.String;
/**
* Implement a view to show status information
* of currently loaded document of a document view.
- * It use separate listener threads to get this information
- * and actualize it automaticly if frame broadcast changes of
+ * It uses separate listener threads to get this information
+ * and actualize it automatically, if frame broadcast changes of
* his contained document.
* Threads are neccessary to prevent this view against deadlocks.
- * These deadlocks can occure if a listener will be notified
+ * These deadlocks can occur if a listener will be notified
* by the office in an "oneway" method and try to call back
* to the office by using a synchronous method.
* UNO must guarantee order of all these calls ... and if
* the source of arrived event holds a mutex and our synchronous
- * call needs this mutex too => a deadlock occure.
+ * call needs this mutex too => a deadlock occurs.
* Why? UNO had created a new thread for our synchronous call
* inside the office process and so exist different threads
* for this constallation.
@@ -205,7 +205,7 @@ public class StatusView extends JPanel
/**
* Set new frame for this view and start listening for events imedatly.
- * We create one status listener for every control we whish to update.
+ * We create one status listener for every control we wish to update.
* And because the environment of the frame can be changed - these
* listener refresh himself internaly for frame action events too.
* So we register it as such frame action listener only here.
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
index 3b2d67ca8cf7..b7e113b18c29 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
@@ -84,9 +84,9 @@ public class ViewContainer extends Thread
/**
* This register a new view inside this global container
- * (if it doesnt already exist).
+ * (if it doesn't already exist).
*
- * @param aView view which whish to be registered inside this container
+ * @param aView view which wish to be registered inside this container
*/
public void addView(Object aView)
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
index e2c269202280..dd11cec69156 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
@@ -397,7 +397,7 @@ public class AsciiReplaceFilter
*
* Note: It's not alloed for a filter to seek inside the stream.
* Because the outside frameloader has to set the stream position
- * right and a filter must read till EOF occures only.
+ * right and a filter must read till EOF occurs only.
*
* @param xTarget
* the target text model to put the data in
@@ -529,7 +529,7 @@ public class AsciiReplaceFilter
*
* Note: It's not alloed for a filter to seek inside the stream.
* Because the outside frameloader has to set the stream position
- * right and a filter must read till EOF occures only.
+ * right and a filter must read till EOF occurs only.
*
* @param xSource
* the source text model to get the data from
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
index bec6966999c2..1a94bd72ab58 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
@@ -48,7 +48,7 @@ import com.sun.star.uno.UnoRuntime;
@attention This class mustn't be threadsafe - because instances of it
are used temp. only - not as members. So no concurrent access
- should occure.
+ should occur.
Another reason: It wuold be very difficult to safe every
access on our internal member. To do so - we must implement
special methods instead of allowing pure member access.
@@ -154,7 +154,7 @@ public class FilterOptions
if (lFilterProps[p].Name.equals("LowerCase"))
{
m_bLower = AnyConverter.toBoolean(lFilterProps[p].Value);
- m_bCaseChange = true; // Set it after m_bLower - because an exception can occure and we must use default values then!
+ m_bCaseChange = true; // Set it after m_bLower - because an exception can occur and we must use default values then!
}
}
}
@@ -164,7 +164,7 @@ public class FilterOptions
// ONE argument has the wrong type
// But I think we mustn't react here - because we setted
// default values for every necessary item we need.
- // In case this exception occures - this default exist
+ // In case this exception occurs - this default exist
// and we can live with it.
}
}
diff --git a/odk/examples/java/Drawing/SDraw.java b/odk/examples/java/Drawing/SDraw.java
index 5f56dc25d541..a935b0d08c71 100644
--- a/odk/examples/java/Drawing/SDraw.java
+++ b/odk/examples/java/Drawing/SDraw.java
@@ -229,7 +229,7 @@ public class SDraw {
xShape.setPosition(position);
} catch ( Exception e ) {
- // Some exception occures.FAILED
+ // Some exception occurs.FAILED
System.err.println( "Couldn't get Shape "+ e );
e.printStackTrace(System.err);
}