|
|||||||||||
| PREV LETTER NEXT LETTER | FRAMES NO FRAMES | ||||||||||
CARMA' class.
CARMA' class.
CARMA Container' class.
CARMA Container' class.
CARMA Content' class.
CARMA Content' class.
PropertyReference
CARMA Member' class.
CARMA Member' class.
CARMA Member Version' class.
CARMA Member Version' class.
CARMA Resource' class.
CARMA Resource' class.
CARMA Return' class.
CARMA Return' class.
null as its detail message.
CARMAMemberVersion objects to determine
the order in which the action objects should be sorted.null as its detail message.
IObjectActionDelegate references.checkin action specification can be located using the
CustomActionAccepter.findActionFor(String) method and inspecting the action
object returned.
CheckinJob on the selected CARMAContent.checkin action specification can be located using the
CustomActionAccepter.findActionFor(String) method and inspecting the action
object returned.
CheckoutJob on a selection of CARMAContent.CARMA.connect(IProgressMonitor) method and allow the transport to handle the id/password query
connect, and disconnect.TransportConnectionListener objects when changes occur in the connection state
null as its detail message.
Convertable' class.
Convertable' class.
VariableType.
Action'.
target.
CARMA'.
CARMA Container'.
CARMA Content'.
CARMA Member'.
CARMA Member Version'.
CARMA Resource'.
CARMA Return'.
Convertable'.
Custom Action Accepter'.
Custom Parameter'.
Default Parameter'.
Field'.
Filterable'.
Filter Content'.
Key Value Pair'.
Managed'.
Movable'.
IActionDelegate classes which create new objects
in the CARMA structure.Parameter'.
Properties'.
Repository Instance'.
Repository Manager'.
Resource Container'.
Return Item'.
Return Value'.
Transport Connection Listener'.
Custom Action Accepter' class.
Custom Action Accepter' class.
Custom Parameter' class.
Custom Parameter' class.
if (manager.isPromptNeeded(resource, actionId)) {
//find the action & then prompt the user
final Action action = resource.findActionFor(actionId);
if (action == null) { //this means that there is nothing special about this action
resource.performAction(actionId, monitor, null);
return;
}
Display.getDefault().syncExec(new Runnable(){
public void run() {
CustomActionParameterDialog dialog = new CustomActionParameterDialog(
Display.getDefault().getActiveShell(), null, action, resource, manager);
dialog.open();
if (dialog.getReturnCode() == 0) {
promptResults = dialog.getParameters();
} else {
promptResults = null;
}
}});
if (promptResults != null)
resource.performAction(actionId, monitor, promptResults);
else
; //do nothing, we've been cancelled
}
This Class does not check the passed in manager to see if it should prompt, rather it always prompts, assuming the caller knows what he or she is doing. The manager however is querried to provide the default values displayed in the prompt. Those values will be set to the results intermingled with any values the user set. Constant parameters are not displayed.
CustomActionParameterDialog.CustomActionParameterDialog(Shell, Image, Action, CustomActionAccepter, CustomActionParameterManager) constructor
CustomActionParameterDialog.CustomActionParameterDialog(Shell, Image, Action, CustomActionAccepter, CustomActionParameterManager) constructor
custom parameter controls.
|
|||||||||||
| PREV LETTER NEXT LETTER | FRAMES NO FRAMES | ||||||||||