summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/GUI
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-07-13 09:23:19 +0200
committerThomas Arnhold <thomas@arnhold.org>2012-07-13 12:45:57 +0200
commitcdaddecc5e3ec93294492b3efc38393c91459e10 (patch)
treeb98830825aa14057ac41cf3d7a98502cbf6be5df /odk/examples/DevelopersGuide/GUI
parentc26d4d34467008418ebf138412e87886694c326c (diff)
java: printStackTrace always to stderr
like 3d3b3f656f92790225b89aa31ee61163fb2fc7e5 Change-Id: I6e80717de009e8a3a89ffc80cb945cc832917f8c
Diffstat (limited to 'odk/examples/DevelopersGuide/GUI')
-rw-r--r--odk/examples/DevelopersGuide/GUI/DialogDocument.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/ImageControlSample.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/MessageBox.java4
-rw-r--r--odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/SystemDialog.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java60
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java4
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoMenu.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoMenu2.java2
9 files changed, 40 insertions, 40 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/DialogDocument.java b/odk/examples/DevelopersGuide/GUI/DialogDocument.java
index 5edefb8b118e..27d3d80f3348 100644
--- a/odk/examples/DevelopersGuide/GUI/DialogDocument.java
+++ b/odk/examples/DevelopersGuide/GUI/DialogDocument.java
@@ -79,7 +79,7 @@ public class DialogDocument extends UnoDialogSample {
oDialogDocument.insertButton(oDialogDocument, 126, 370, 50, "~Close dialog", (short) PushButtonType.OK_value);
oDialogDocument.executeDialog();
}catch( Exception ex ) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
} finally{
//make sure always to dispose the component and free the memory!
if (oDialogDocument != null){
diff --git a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
index 024894ae840b..ac890e8aee1a 100644
--- a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
+++ b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
@@ -130,7 +130,7 @@ public class ImageControlSample extends UnoDialogSample{
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xICModelPropertySet;
}
diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java
index 745b25951cd5..65e2e8a680e3 100644
--- a/odk/examples/DevelopersGuide/GUI/MessageBox.java
+++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java
@@ -183,7 +183,7 @@ public class MessageBox {
short nResult = xMessageBox.execute();
}
} catch (com.sun.star.uno.Exception ex) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
} finally{
//make sure always to dispose the component and free the memory!
if (xComponent != null){
@@ -212,7 +212,7 @@ public class MessageBox {
return false;
}
} catch (IllegalArgumentException e) {
- e.printStackTrace(System.out);
+ e.printStackTrace(System.err);
}
return bIsActivated;
}
diff --git a/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java b/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java
index a52928cb4be0..8ad61f314a77 100644
--- a/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java
+++ b/odk/examples/DevelopersGuide/GUI/RoadmapItemStateChangeListener.java
@@ -58,7 +58,7 @@ public class RoadmapItemStateChangeListener implements XItemListener {
xDialogModelPropertySet.setPropertyValue("Step", new Integer(nNewID));
}
} catch (com.sun.star.uno.Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
}
}
diff --git a/odk/examples/DevelopersGuide/GUI/SystemDialog.java b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
index 00aa44162442..541d5166bfdc 100644
--- a/odk/examples/DevelopersGuide/GUI/SystemDialog.java
+++ b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
@@ -172,7 +172,7 @@ public class SystemDialog {
}
}catch( Exception exception ) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
} finally{
//make sure always to dispose the component and free the memory!
if (xComponent != null){
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 4013dbb79e66..6db2ef162e63 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -202,7 +202,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XNameAccess xNameAccess = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oNode);
return xNameAccess;
} catch (Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
return null;
}
}
@@ -235,7 +235,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.lang.IllegalArgumentException,
* com.sun.star.lang.WrappedTargetException,
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return sImageUrl;
}
@@ -263,7 +263,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XControlModel xControlModel = (XControlModel) UnoRuntime.queryInterface(XControlModel.class, oDialogModel);
m_xDialogControl.setModel(xControlModel);
} catch (com.sun.star.uno.Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
}
}
@@ -303,7 +303,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XMultiPropertySet xMultiPropertySet = (XMultiPropertySet) UnoRuntime.queryInterface(XMultiPropertySet.class, m_xDlgModelNameContainer);
xMultiPropertySet.setPropertyValues(PropertyNames, PropertyValues);
} catch (com.sun.star.uno.Exception ex) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}}
@@ -329,7 +329,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
return m_xWindowPeer;
}
} catch (com.sun.star.uno.Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
}
return null;
}
@@ -373,7 +373,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
m_xDlgModelNameContainer.insertByName(sName, oControlModel);
return oControlModel;
} catch (com.sun.star.uno.Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
return null;
}
}
@@ -416,7 +416,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xFixedText;
}
@@ -461,7 +461,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xTextComponent;
}
@@ -501,7 +501,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xPBModelPSet;
}
@@ -539,7 +539,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -576,7 +576,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -622,7 +622,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xTextComponent;
}
@@ -662,7 +662,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xTFModelPSet;
}
@@ -709,7 +709,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xDFModelPSet;
}
@@ -751,7 +751,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xPFModelPSet;
}
@@ -794,7 +794,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xNFModelPSet;
}
@@ -843,7 +843,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xSBModelPSet;
}
@@ -907,7 +907,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xCheckBox;
}
@@ -951,7 +951,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -990,7 +990,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xListBox;
}
@@ -1034,7 +1034,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xComboBox;
}
@@ -1098,7 +1098,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xFFModelPSet;
}
@@ -1152,7 +1152,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xTextComponent;
}
@@ -1188,7 +1188,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
return xButton;
}
@@ -1239,7 +1239,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -1266,7 +1266,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -1303,7 +1303,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -1384,7 +1384,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
* com.sun.star.beans.PropertyVetoException
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
@@ -1443,7 +1443,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XItemEventBroadcaster xRMBroadcaster = (XItemEventBroadcaster) UnoRuntime.queryInterface(XItemEventBroadcaster.class, xRMControl);
xRMBroadcaster.addItemListener( getRoadmapItemStateChangeListener() );
} catch (java.lang.Exception jexception) {
- jexception.printStackTrace(System.out);
+ jexception.printStackTrace(System.err);
}
}
@@ -1465,7 +1465,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
xRMItemPSet.setPropertyValue("ID", new Integer(_ID));
m_xRMIndexCont.insertByIndex(Index, oRoadmapItem);
} catch (com.sun.star.uno.Exception exception) {
- exception.printStackTrace(System.out);
+ exception.printStackTrace(System.err);
}
}
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
index 3b85eb57d306..5d9781d5dbac 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
@@ -136,7 +136,7 @@ public class UnoDialogSample2 extends UnoDialogSample {
oUnoDialogSample2.xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, oUnoDialogSample2.m_xDialogControl);
oUnoDialogSample2.xDialog.execute();
}catch( Exception ex ) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
finally{
//make sure always to dispose the component and free the memory!
@@ -257,7 +257,7 @@ public class UnoDialogSample2 extends UnoDialogSample {
* com.sun.star.beans.UnknownPropertyException,
* com.sun.star.uno.Exception
*/
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
diff --git a/odk/examples/DevelopersGuide/GUI/UnoMenu.java b/odk/examples/DevelopersGuide/GUI/UnoMenu.java
index 1c62a2398928..c5fdbe218350 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoMenu.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoMenu.java
@@ -55,7 +55,7 @@ public UnoMenu(XComponentContext _xContext, XMultiComponentFactory _xMCF) {
oUnoMenu.mxTopWindow = oUnoMenu.showTopWindow( new Rectangle(100, 100, 500, 500)); //oUnoDialogSample.m_xWindowPeer,
oUnoMenu.addMenuBar(oUnoMenu.mxTopWindow, oUnoMenu);
}catch( Exception ex ) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
}
diff --git a/odk/examples/DevelopersGuide/GUI/UnoMenu2.java b/odk/examples/DevelopersGuide/GUI/UnoMenu2.java
index 95bcaf9ce8c8..a9ba0a1a2062 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoMenu2.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoMenu2.java
@@ -56,7 +56,7 @@ public UnoMenu2(XComponentContext _xContext, XMultiComponentFactory _xMCF) {
oUnoMenu2.addLabelForPopupMenu();
oUnoMenu2.executeDialog();
}catch( Exception ex ) {
- ex.printStackTrace(System.out);
+ ex.printStackTrace(System.err);
}
finally{
//make sure always to dispose the component and free the memory!