Add support for multiple actions
This commit is contained in:
parent
212dddeecd
commit
ba11b410e0
1 changed files with 9 additions and 2 deletions
|
@ -59,9 +59,16 @@ public final class StarterProjectImpl extends WeakBase
|
|||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue