public final class ActionConfigurationBuilder extends Object
Modifier and Type | Method and Description |
---|---|
ActionConfigurationBuilder |
addAction(Action action)
Add a new action to this builder.
|
<Creator extends ActionControlCreator<? extends org.eclipse.swt.widgets.Control>> |
addControlFor(Action action,
Creator controlCreator)
Add a new control creator to an action.
|
ActionConfigurationBuilder |
addKeySequenceFor(Action action,
String... sequences)
Add a key sequence for a registered action.
|
ActionConfiguration |
build()
Return an action configuration based on the current builder state.
|
static ActionConfigurationBuilder |
usingConfiguration(ActionConfiguration configuration)
Initialize a new
ActionConfigurationBuilder using a an existing ActionConfiguration . |
static ActionConfigurationBuilder |
usingDefaults()
Create an empty builder instance.
|
public static ActionConfigurationBuilder usingDefaults()
ActionConfigurationBuilder
public static ActionConfigurationBuilder usingConfiguration(ActionConfiguration configuration)
ActionConfigurationBuilder
using a an existing ActionConfiguration
.configuration
- the configuration to re-use.ActionConfigurationBuilder
public ActionConfigurationBuilder addAction(Action action)
action
- the action to addpublic ActionConfigurationBuilder addKeySequenceFor(Action action, String... sequences)
action
- the action to register a key sequence forsequences
- the key sequences to usepublic <Creator extends ActionControlCreator<? extends org.eclipse.swt.widgets.Control>> ActionConfigurationBuilder addControlFor(Action action, Creator controlCreator)
Creator
- a creatoraction
- the action to register a control creator for.controlCreator
- the creatorpublic ActionConfiguration build()
Copyright © 2019. All rights reserved.