Add example dialog

This commit is contained in:
Samuel Mehrbrodt 2016-04-07 11:55:05 +02:00
parent ba11b410e0
commit 59f8cd34c2
6 changed files with 258 additions and 3 deletions

View file

@ -3,6 +3,7 @@ package org.libreoffice.example.comp;
import com.sun.star.uno.XComponentContext;
import com.sun.star.lib.uno.helper.Factory;
import org.libreoffice.example.dialog.ActionOneDialog;
import org.libreoffice.example.helper.DialogHelper;
import com.sun.star.lang.XSingleComponentFactory;
@ -63,7 +64,8 @@ public final class StarterProjectImpl extends WeakBase
{
switch (action) {
case "actionOne":
DialogHelper.showInfoMessage(m_xContext, null, action);
ActionOneDialog actionOneDialog = new ActionOneDialog(m_xContext);
actionOneDialog.show();
break;
default:
DialogHelper.showErrorMessage(m_xContext, null, "Unknown action: " + action);