Add support for multiple actions

This commit is contained in:
Samuel Mehrbrodt 2016-04-06 16:56:45 +02:00
parent 212dddeecd
commit ba11b410e0

View file

@ -59,9 +59,16 @@ public final class StarterProjectImpl extends WeakBase
} }
// com.sun.star.task.XJobExecutor: // com.sun.star.task.XJobExecutor:
public void trigger(String Event) public void trigger(String action)
{ {
DialogHelper.showInfoMessage(m_xContext, null, "Hello World!"); switch (action) {
case "actionOne":
DialogHelper.showInfoMessage(m_xContext, null, action);
break;
default:
DialogHelper.showErrorMessage(m_xContext, null, "Unknown action: " + action);
}
} }
} }