summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java12
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java10
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java22
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java8
10 files changed, 38 insertions, 38 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
index c565fe547698..9641dc8864a9 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
@@ -49,7 +49,7 @@ public class Desk
/**
* main
* Establish connection to a remote office and starts the demo application.
- * User can overwrite some of neccessary start options by using command line parameters.
+ * User can overwrite some of necessary start options by using command line parameters.
*
* syntax: Desk [mode={inplace|outplace}] [file=<filename>]
*
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
index b00bebf3ee4b..7cbb0e3ecf8b 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
@@ -359,7 +359,7 @@ public class DocumentView extends JFrame
/**
* callback from our internal saved frame
- * which wish to die. Its not neccessary to remove listener connections
+ * which wish to die. Its not necessary to remove listener connections
* here. Because the broadcaster do it automaticly.
* We have to release all references to him only.
*
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
index c227e339ab2e..88b80d34037b 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
@@ -117,7 +117,7 @@ public class FunctionHelper
{
// "createInstance()" method of used service manager can throw it.
// Then it wasn't possible to get the URL transformer.
- // Return default instead of realy parsed URL.
+ // Return default instead of really parsed URL.
aURL = null;
}
@@ -253,7 +253,7 @@ public class FunctionHelper
// is returned. But normaly nobody outside the office knows this id.
// New version of this method ignore the id parameter and creation will
// work.
- // Note: You must be shure if your window handle can be realy used by
+ // Note: You must be shure if your window handle can be really used by
// the remote office. Means if this java client and the remote office
// use the same display!
com.sun.star.awt.XSystemChildFactory xChildFactory =
@@ -272,7 +272,7 @@ public class FunctionHelper
if (xPeer==null)
{
// mode 3) OK - new version doesn't work. It requires the
- // process id which we doesn't have.
+ // process id which we don't have.
// So we must use the old way to get the right window peer.
// Pack the handle inside a wrapper object.
JavaWindowPeerFake aWrapper = new
@@ -308,7 +308,7 @@ public class FunctionHelper
// java window. In this case it should be enough to set return
// values to null. All other resources (which was created before)
// will be freed automaticly if scope wil be leaved.
- System.out.println("May be the NativeView object wasn't realy visible at calling time of getNativeWindow()?");
+ System.out.println("May be the NativeView object wasn't really visible at calling time of getNativeWindow()?");
xPeer = null;
xWindow = null;
}
@@ -494,7 +494,7 @@ public class FunctionHelper
* Dispatch an URL to given frame.
* Caller can register himself for following result events for dispatched
* URL too. Notifications are guaranteed (instead of dispatch())
- * Returning of the dispatch object isn't neccessary.
+ * Returning of the dispatch object isn't necessary.
* Nobody must hold it alive longer the dispatch needs.
*
* @param xFrame frame which should be the target of this dispatch
@@ -984,7 +984,7 @@ public class FunctionHelper
/**
* helper to get a file URL selected by user
* This method doesn't show any API concepts ...
- * but is neccessary rof this demo application.
+ * but is necessary rof this demo application.
*
* @param aParent parent window of this dialog
* @param bOpen If it is set to true =>
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java
index 0ab7aa0cd606..22ce6388d1a8 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java
@@ -54,7 +54,7 @@ public interface IOnewayLink
* @param nRequest
* The two user of this callback can define an unique number,
* which identify the type of original interface method. So the called
- * interface object can decide, which action will be neccessary.
+ * interface object can decide, which action will be necessary.
*
* @param lParams
* If the original method used parameters, they will be coded here in
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
index bdb6f6465e4b..88eeb2fd322f 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
@@ -46,7 +46,7 @@ import com.sun.star.uno.UnoRuntime;
* on any frame used in this demo application.
* It intercept all URL's which try to create a new empty frame.
* (e.g. "private:factory/swriter")
- * Nobody can guarantee that this interception will be realy used -
+ * Nobody can guarantee that this interception will be really used -
* 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
@@ -114,7 +114,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
//_____________________
/**
- * start working as frame action listener realy.
+ * start working as frame action listener really.
* We will be frame action listener here. In case
* we get a frame action which indicates, that we should
* update our interception. Because such using of an interecptor
@@ -524,7 +524,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
* Notification of status listener isn't guaranteed (instead of listener on XNotifyingDispatch interface).
- * So this interceptor doesn't support that realy ...
+ * So this interceptor doesn't support that really ...
*/
public /*ONEWAY*/ void addStatusListener(/*IN*/ com.sun.star.frame.XStatusListener xListener,/*IN*/ com.sun.star.util.URL aURL)
{
@@ -573,7 +573,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
* This class listen on the intercepted frame to free all used resources on closing.
* We forget the reference to the frame only here. Deregistration
- * isn't neccessary here - because this frame dies and wish to forgoten.
+ * isn't necessary here - because this frame dies and wish to forgoten.
*
* @param aSource
* must be our internal saved frame, on which we listen for frame action events
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
index da6078a6a905..d374af04864b 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
@@ -54,7 +54,7 @@ public class NativeView extends java.awt.Canvas
/**
* ctor
- * Does nothing realy.
+ * Does nothing really.
* We can use our JNI mechanism for an already visible
* canvas only. So we overload the method for showing ("setVisible()")
* and make our intialization there. BUt we try to show an empty clean
@@ -70,8 +70,8 @@ public class NativeView extends java.awt.Canvas
// ____________________
/**
- * Overload this method to make neccessary initializations here.
- * (e.g. get the window handle and neccessary system information)
+ * Overload this method to make necessary initializations here.
+ * (e.g. get the window handle and necessary system information)
*
* Why here?
* Because the handle seams to be available for already visible windows
@@ -110,7 +110,7 @@ public class NativeView extends java.awt.Canvas
/**
* overload paint routine to show provide against
- * repaint errors if no office view is realy plugged
+ * repaint errors if no office view is really plugged
* into this canvas.
* If handle is present - we shouldn't paint anything further.
* May the remote window is already plugged. In such case we
@@ -159,7 +159,7 @@ public class NativeView extends java.awt.Canvas
// ____________________
/**
- * for using of the JNI methods it's neccessary to load
+ * for using of the JNI methods it's necessary to load
* system library which exports it.
*/
static
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
index 2861b23bde3a..355be64638da 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
@@ -39,7 +39,7 @@ import java.util.ArrayList;
/**
* It's not allowed to call synchronoues back inside an oneway interface call.
* (see IOnewayLink too). So we start a thread (implemented by this class), which
- * gets all neccessary parameters from the original called object and
+ * gets all necessary parameters from the original called object and
* call it back later inside his run() method. So the execution of such oneway call
* will be asynchronous. It works in a generic way and can be used or any type
* of oneway request. Because the source and the target of this call-link knows,
@@ -82,7 +82,7 @@ class OnewayExecutor extends Thread
/**
* ctor
- * It's initialize this thread with all neccessary parameters.
+ * It's initialize this thread with all necessary parameters.
* It gets the object, which wish to be called back and the type
* and parameters of the original request.
*
@@ -90,7 +90,7 @@ class OnewayExecutor extends Thread
* The two user of this callback can define an unique number,
* which identify the type of original interface method.
* So the called interface object can decide, which action will be
- * neccessary.
+ * necessary.
*
* @param lParams
* If the original method used parameters, they will be coded here in
@@ -119,7 +119,7 @@ class OnewayExecutor extends Thread
/**
* implements the thread function
* Here we call the internal set link object back and
- * give him all neccessary parameters.
+ * give him all necessary parameters.
* After that we die by ouerself ...
*/
public void run()
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
index 5de834dac847..2f41916e24ea 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
@@ -74,7 +74,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
* @member m_sTrueText this text will be shown at the used UI control as description for an enabled status
* @member m_sFalseText this text will be shown at the used UI control as description for an disabled status
* @member m_xDispatch if we listen for status events, we must hold the dispatch object alive!
- * @member m_xFrame reference to the frame, which can provide new dispatch objects if it's neccessary to update it
+ * @member m_xFrame reference to the frame, which can provide new dispatch objects if it's necessary to update it
* @member m_aURL and of course we must be registered for a special URL
* @member m_bIsActionListener indicates if we are currently registered as a listener for frame action events or not
* @member m_bIsStatusListener indicates if we are currently registered as a listener for status events or not
@@ -95,7 +95,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
/**
* ctor
* It initialize an instance of this class only.
- * We set all neccessary information on our internal member - that's it
+ * We set all necessary information on our internal member - that's it
*/
StatusListener( /*IN*/ Component rControl ,
/*IN*/ String sTrueText ,
@@ -118,7 +118,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
//_____________________
/**
- * start working as frame action listener realy.
+ * start working as frame action listener really.
* In case we get such frame action, it indicates that we should
* update our internal saved dispatch object on which we listen
* for status events. So we can do it automaticly. The outside code
@@ -185,9 +185,9 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
/**
* This is the callback method for such frame action events, we listen for.
* Because it's a oneway method we start a thread as reaction. This thread call
- * us back and we can do neccessary things there.
- * But we shouldn't start such action - if it's not realy neccessary.
- * So we check before, if we are intereested on this event realy.
+ * us back and we can do necessary things there.
+ * But we shouldn't start such action - if it's not really necessary.
+ * So we check before, if we are intereested on this event really.
*
* @see impl_frameAction()
*
@@ -226,9 +226,9 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
/**
* This is the callback method for the status we listen for an wish to show it
- * on our UI control. Of yourse it's a oneway method ... but we doesn't call back
+ * on our UI control. Of course it's a oneway method ... but we don't call back
* to the office synchronously here. We update our UI only. So we don't leave this
- * java process. In such case it's not neccessary to use threads to decouple it.
+ * java process. In such case it's not necessary to use threads to decouple it.
* Do it here and now ...
*
* @param aEvent
@@ -242,7 +242,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
return;
// enable/dsiable th control.
- // Means: If the feature isn't available currently - we can't show an status realy here.
+ // Means: If the feature isn't available currently - we can't show an status really here.
// Then we should colorize it gray ...
m_rControl.setEnabled(aEvent.IsEnabled);
@@ -279,7 +279,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
// Detect type of state value
// and set it on internal well known UI control
- // But do it only, if value realy change.
+ // But do it only, if value really change.
if(aEvent.State instanceof String)
{
String sState = (String)aEvent.State;
@@ -382,7 +382,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
/**
* callback for disposing events
* Our dispatch or frame object inform us about his following dead ...
- * So we must forget his reference. But it's not neccessary to
+ * So we must forget his reference. But it's not necessary to
* remove listener connections here. Because the broadcaster
* forget us automaticly. The only thing we have to do: release
* his reference and let him die!
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index 51c506bdd3f1..63ae142deae9 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -46,7 +46,7 @@ import java.lang.String;
* 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.
+ * Threads are necessary to prevent this view against deadlocks.
* 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.
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
index b7e113b18c29..5b9851188aea 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
@@ -53,7 +53,7 @@ public class ViewContainer extends Thread
/**
* provides a singleton view container
- * Neccessary for terminate(9 functionality to be able
+ * Necessary for terminate(9 functionality to be able
* to call Runtime.runFinilization().
*
* @return a reference to the singleton ViewContainer instance
@@ -145,12 +145,12 @@ public class ViewContainer extends Thread
// remote references.
if (nViewCount<1)
{
- boolean bNeccessary = false;
+ boolean bNecessary = false;
synchronized(this)
{
- bNeccessary = ! mbShutdownActive;
+ bNecessary = ! mbShutdownActive;
}
- if (bNeccessary==true)
+ if (bNecessary==true)
{
System.out.println("call exit(0)!");
System.exit(0);