Label labelScaleout = toolkit.createLabel(compositeCoLocatedSetting, Messages.DDE_AEMetaDataDetails_NumberOfReplicatedInstances);
scaleout = FormSection2.createLabelAndSpinner(toolkit, compositeCoLocatedSetting,
labelScaleout, SWT.BORDER, 1, Integer.MAX_VALUE, false);
scaleout.setSelection(1);
scaleout.addSelectionListener(asynAggregateListener);
GenericHoverManager hover = new GenericHoverManager(new IGenericHoverOwner() {
public void computeInformation(GenericHoverManager hoverManager, Point ptHoverEventLocation) {
if (!scaleout.isEnabled()) {
hoverManager.setDisplayedInformation(Messages.Hover_Disable_NumberOfReplicatedInstances,
new Rectangle(1, ptHoverEventLocation.y, 1, 1));
} else {
hoverManager.setDisplayedInformation(null, null);
}
}
}, getPresenterControlCreator("commandId"));
hover.install(labelScaleout);
labelInputQueueScaleout = toolkit.createLabel(compositeCoLocatedSetting, Messages.DDE_InputQueueScaleout);
inputQueueScaleout = FormSection2.createLabelAndSpinner(toolkit, compositeCoLocatedSetting,
labelInputQueueScaleout, SWT.BORDER, 1,
Integer.MAX_VALUE, false);
inputQueueScaleout.setSelection(1);
inputQueueScaleout.addSelectionListener(asynAggregateListener);
hover = new GenericHoverManager(new IGenericHoverOwner() {
public void computeInformation(GenericHoverManager hoverManager, Point ptHoverEventLocation) {
hoverManager.setDisplayedInformation(Messages.Hover_InputQueueScaleout,
new Rectangle(1, ptHoverEventLocation.y, 1, 1));
}
}, getPresenterControlCreator("commandId"));
hover.install(labelInputQueueScaleout);
labelReplyQueueForCoLocated = toolkit.createLabel(compositeCoLocatedSetting, Messages.DDE_ReplyQueueListenersForCoLocated);
replyQueueListenersForCoLocated = FormSection2.createLabelAndSpinner(toolkit, compositeCoLocatedSetting,
labelReplyQueueForCoLocated, SWT.BORDER, 1,
Integer.MAX_VALUE, false);
replyQueueListenersForCoLocated.setSelection(1);
replyQueueListenersForCoLocated.addSelectionListener(asynAggregateListener);
hover = new GenericHoverManager(new IGenericHoverOwner() {
public void computeInformation(GenericHoverManager hoverManager, Point ptHoverEventLocation) {
hoverManager.setDisplayedInformation(Messages.Hover_ReplyQueueListenersForCoLocated,
new Rectangle(1, ptHoverEventLocation.y, 1, 1));
}
}, getPresenterControlCreator("commandId"));
hover.install(labelReplyQueueForCoLocated);
// <casMultiplier poolSize="5"/> <!-- optional -->
// Only for AS primitive CAS Multiplier
casMultiplierLabel = toolkit.createLabel(compositeCoLocatedSetting,
Messages.DDE_AEMetaDataDetails_PoolSizeOfCM);
casMultiplier = FormSection2.createLabelAndSpinner(toolkit, compositeCoLocatedSetting,
casMultiplierLabel, SWT.BORDER, 0, Integer.MAX_VALUE, false);
casMultiplier.setSelection(0);
casMultiplier.addSelectionListener(asynAggregateListener);
// initialFsHeapSize (default size is 2M)
initialFsHeapSizeLabel = toolkit.createLabel(compositeCoLocatedSetting,
Messages.DDE_AEMetaDataDetails_InitalSizeOfCASHeap);
initialFsHeapSize = FormSection2.createLabelAndSpinner(toolkit, compositeCoLocatedSetting,
initialFsHeapSizeLabel, SWT.BORDER, 1,
Integer.MAX_VALUE, false, FormSection2.MAX_DECORATION_WIDTH);
gd = (GridData) initialFsHeapSize.getLayoutData();
gd.minimumWidth = 80;
gd.widthHint = 80;
initialFsHeapSize.setLayoutData(gd);
initialFsHeapSize.setSelection(0);
initialFsHeapSize.addSelectionListener(asynAggregateListener);
// ProcessParentCASLast (default false)
processParentCASLast = toolkit.createButton(compositeCoLocatedSetting, Messages.DDE_AEMetaDataDetails_ProcessParentCASLast, SWT.CHECK);
gd = new GridData();
gd.horizontalSpan = 2;
processParentCASLast.setLayoutData(gd);
processParentCASLast.addSelectionListener(asynAggregateListener);
// /////////////////////////////////////////////////////////////////////
// Note: Need to add SWT.BORDER style to make the border VISIBLE in Linux
brokerUrlDecoField = FormSection2.createLabelAndDecoratedText(toolkit,
compositeRemoteSetting, Messages.DDE_AEMetaDataDetails_BrokerURLForRemote,
currentMetaDataObject == null ?
"":((RemoteAEDeploymentMetaData) currentMetaDataObject).getInputQueue().getBrokerURL(),
SWT.WRAP | SWT.BORDER, 100, 0, true, 0);
// Create an error decoration
decorationBrokerUrl = FormSection2.registerFieldDecoration("brokerUrl2",
"The broker URL cannot be empty");
brokerUrlDecoField.addFieldDecoration(decorationBrokerUrl, SWT.LEFT | SWT.TOP, false);
brokerUrl = (Text) brokerUrlDecoField.getControl();
FormData fd = (FormData) brokerUrl.getLayoutData();
fd.top.offset += 2; // make border visible in Linux
fd.left.offset += 2; // make border visible in Linux
brokerUrl.addModifyListener(fModifyListener);
// Note: Need to add SWT.BORDER style to make the border VISIBLE in Linux
endPointDecoField = FormSection2.createLabelAndDecoratedText(toolkit,
compositeRemoteSetting, Messages.DDE_AEMetaDataDetails_QueueNameForRemote,
currentMetaDataObject == null ?
"":((RemoteAEDeploymentMetaData) currentMetaDataObject).getInputQueue().getEndPoint(),
SWT.WRAP | SWT.BORDER, 100, 0, true, 0);
endPoint = (Text) endPointDecoField.getControl();
endPoint.addModifyListener(fModifyListener);
decorationEndPoint =
FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_ERROR);
decorationEndPoint.setDescription("The name of the queue cannot be empty");
endPointDecoField.addFieldDecoration(decorationEndPoint, SWT.LEFT | SWT.TOP, false);
labelRemoteReplyQueueScaleout = toolkit.createLabel(compositeRemoteSetting, Messages.DDE_RemoteReplyQueueScaleout);
remoteReplyQueueScaleout = FormSection2.createLabelAndSpinner(toolkit, compositeRemoteSetting,
labelRemoteReplyQueueScaleout, SWT.BORDER, 1,
Integer.MAX_VALUE, false);
remoteReplyQueueScaleout.setSelection(1);
remoteReplyQueueScaleout.addSelectionListener(asynAggregateListener);
hover = new GenericHoverManager(new IGenericHoverOwner() {
public void computeInformation(GenericHoverManager hoverManager, Point ptHoverEventLocation) {
hoverManager.setDisplayedInformation(Messages.Hover_RemoteReplyQueueScaleout,
new Rectangle(1, ptHoverEventLocation.y, 1, 1));
}
}, getPresenterControlCreator("commandId"));
hover.install(labelRemoteReplyQueueScaleout);
// <casMultiplier poolSize="5"/> <!-- optional -->
casMultiplierLabelRemote = toolkit.createLabel(compositeRemoteSetting,
Messages.DDE_AEMetaDataDetails_PoolSizeOfCM);
casMultiplierRemote = FormSection2.createLabelAndSpinner(toolkit, compositeRemoteSetting,