summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java7
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java4
2 files changed, 5 insertions, 6 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index 345be2c785ab..6b4044f505ae 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -19,6 +19,7 @@
package com.sun.star.wiki;
import com.sun.star.awt.MessageBoxButtons;
+import com.sun.star.awt.MessageBoxType;
import com.sun.star.awt.XControl;
import com.sun.star.awt.XControlContainer;
import com.sun.star.awt.XDialog;
@@ -980,8 +981,7 @@ public class Helper
{
xMB = xMBFactory.createMessageBox(
xParentPeer,
- new com.sun.star.awt.Rectangle(),
- "querybox",
+ MessageBoxType.QUERYBOX,
MessageBoxButtons.BUTTONS_YES_NO | MessageBoxButtons.DEFAULT_BUTTON_NO,
sTitle,
sError );
@@ -990,8 +990,7 @@ public class Helper
{
xMB = xMBFactory.createMessageBox(
xParentPeer,
- new com.sun.star.awt.Rectangle(),
- "errorbox",
+ MessageBoxType.ERRORBOX,
MessageBoxButtons.BUTTONS_OK,
sTitle,
sError );
diff --git a/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java b/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java
index b0dfb38f51ee..4d25b79e6dbe 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java
@@ -157,8 +157,8 @@ public class MainThreadDialogExecutor implements XCallback
else if ( m_xMessageBox != null )
{
int nRes = m_xMessageBox.execute();
- m_bResult = ( nRes == com.sun.star.awt.MessageBoxCommand.OK
- || nRes == com.sun.star.awt.MessageBoxCommand.YES );
+ m_bResult = ( nRes == com.sun.star.awt.MessageBoxResults.OK
+ || nRes == com.sun.star.awt.MessageBoxResults.YES );
}
m_bCalled = true;