@Override protected void createButtonsForButtonBar(Composite parent) { createButton( parent, AUTOMATIC_SOLVE_ID, Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.button.retry.text"), true); //$NON-NLS-1$ createButton( parent, SEND_ERROR_REPORT_ID, Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.button.sendErrorReport.text"), false); //$NON-NLS-1$ // super.createButtonsForButtonBar(parent); createButton( parent, IGNORE_ID, Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.button.ignore.text"), false); //$NON-NLS-1$ detailsButton = createButton( parent, IDialogConstants.DETAILS_ID, CompatibleDialogConstants.get().SHOW_DETAILS_LABEL, false); }
public OfferCfModPrefPageComposite( Composite parent, int style, IDirtyStateManager _dirtyStateManager) { super(parent, style); this.dirtyStateManager = _dirtyStateManager; { Group group = new Group(this, SWT.NONE); group.setText( Messages.getString( "org.nightlabs.jfire.trade.ui.articlecontainer.OfferCfModPrefPageComposite.group.expiryDurationUnfinalizedOffer.text")); //$NON-NLS-1$ group.setLayout(new GridLayout()); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = new Label(group, SWT.WRAP); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); label.setText( Messages.getString( "org.nightlabs.jfire.trade.ui.articlecontainer.OfferCfModPrefPageComposite.label.expiryDurationUnfinalizedOffer")); //$NON-NLS-1$ expiryDurationUnfinalized = new TimeLengthComposite(group); expiryDurationUnfinalized.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); expiryDurationUnfinalized.addModifyListener( new ModifyListener() { @Override public void modifyText(ModifyEvent event) { if (!suppressMarkDirty) dirtyStateManager.markDirty(); } }); } { Group group = new Group(this, SWT.NONE); group.setText( Messages.getString( "org.nightlabs.jfire.trade.ui.articlecontainer.OfferCfModPrefPageComposite.group.expiryDurationFinalizedOffer.text")); //$NON-NLS-1$ group.setLayout(new GridLayout()); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = new Label(group, SWT.WRAP); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); label.setText( Messages.getString( "org.nightlabs.jfire.trade.ui.articlecontainer.OfferCfModPrefPageComposite.label.expiryDurationFinalizedOffer")); //$NON-NLS-1$ expiryDurationFinalized = new TimeLengthComposite(group); expiryDurationFinalized.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); expiryDurationFinalized.addModifyListener( new ModifyListener() { @Override public void modifyText(ModifyEvent event) { if (!suppressMarkDirty) dirtyStateManager.markDirty(); } }); } }
public String getMessage() { String message = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.title"); //$NON-NLS-1$ if (paymentDatas != null && deliveryDatas != null) { message = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.message_paymentAndDeliveryFailed"); //$NON-NLS-1$ } else if (paymentDatas != null) { message = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.message_paymentFailed"); //$NON-NLS-1$ } else { message = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.message_deliveryFailed"); //$NON-NLS-1$ } return message; }
protected String getDialogTitle() { String title = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.title"); //$NON-NLS-1$ if (paymentDatas != null && deliveryDatas != null) { title = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.title_paymentAndDeliveryFailed"); //$NON-NLS-1$ } else if (paymentDatas != null) { title = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.title_paymentFailed"); //$NON-NLS-1$ } else { title = Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.title_deliveryFailed"); //$NON-NLS-1$ } return title; }
protected String getWindowTitle() { return Messages.getString( "org.nightlabs.jfire.trade.ui.transfer.error.ErrorDialog.message"); //$NON-NLS-1$ }