Do a contextual InputURLChooser actions list
Posted: Tue Mar 08, 2016 3:03 pm
Hi,
I develop a CMS Oxygen Plugin to work with Dita documents.
I added some actions in existing browse actions list.
But in some case, I don't want to show all action list.
For example, on Dita maps manager open action, I just want to show one of them (browseGuideAction).
Or, when I when to add a topic reference, I just want to show an other (browseFunctionAction).
This list is used everywhere in browse action, but I hope I can customize it.
How I can do that ?
Thanks in advance for your help
Sébastien.L
I develop a CMS Oxygen Plugin to work with Dita documents.
I added some actions in existing browse actions list.
Code: Select all
public class CustomInputURLChooser implements InputURLChooserCustomizer {
@Override
public void customizeBrowseActions(List<Action> existingBrowseActions, InputURLChooser chooser) {
// Add the browse CMS functions action on the first position.
final BrowseFunctionAction browseFunctionAction = new BrowseFunctionAction(chooser);
existingBrowseActions.add(0, browseFunctionAction);
// Add the browse CMS guides action on the second position.
final BrowseGuideAction browseGuideAction = new BrowseGuideAction(chooser);
existingBrowseActions.add(1, browseGuideAction);
// Add the browse CMS images action on the third position.
final BrowseImageAction browseImageAction = new BrowseImageAction(chooser);
existingBrowseActions.add(2, browseImageAction);
}
}
For example, on Dita maps manager open action, I just want to show one of them (browseGuideAction).
Or, when I when to add a topic reference, I just want to show an other (browseFunctionAction).
This list is used everywhere in browse action, but I hope I can customize it.
How I can do that ?
Thanks in advance for your help
Sébastien.L