protected Control createMessageArea (Composite parent) { Control result= super.createMessageArea(parent); new Label(parent, SWT.NONE); // filler Label label= new Label(parent, SWT.NONE); label.setText(RefactoringUIMessages.ChangeExceptionHandler_button_explanation); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); applyDialogFont(result); return result; } }
protected Control createMessageArea (Composite parent) { Control result= super.createMessageArea(parent); new Label(parent, SWT.NONE); // filler Label label= new Label(parent, SWT.NONE); label.setText(RefactoringMessages.ChangeExceptionHandler_message); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); applyDialogFont(result); return result; } }
@Override protected Control createMessageArea (Composite parent) { Control result= super.createMessageArea(parent); new Label(parent, SWT.NONE); // filler Label label= new Label(parent, SWT.NONE); label.setText(RefactoringMessages.ChangeExceptionHandler_message); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); applyDialogFont(result); return result; } }
@Override protected Control createMessageArea (Composite parent) { Control result= super.createMessageArea(parent); new Label(parent, SWT.NONE); // filler Label label= new Label(parent, SWT.NONE); label.setText(RefactoringMessages.ChangeExceptionHandler_message); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); applyDialogFont(result); return result; } }
createMessageArea(composite); createSupportArea(parent); GridLayout layout = new GridLayout();
createMessageArea(composite); createSupportArea(parent); GridLayout layout = new GridLayout();
createMessageArea(composite); createSupportArea(parent); GridLayout layout = new GridLayout();
@Override protected Control createMessageArea(Composite parent) { Control result= super.createMessageArea(parent); // Panic code: use 'parent' instead of 'result' in case super implementation changes in the future new Label(parent, SWT.NONE); // filler as parent has 2 columns (icon and label) Link link= new Link(parent, SWT.NONE); link.setText(linkText); link.setFont(parent.getFont()); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (hasProjectSettings) PreferencesUtil.createPropertyDialogOn(getShell(), javaProject, SaveParticipantPreferencePage.PROPERTY_PAGE_ID, null, null).open(); else PreferencesUtil.createPreferenceDialogOn(getShell(), SaveParticipantPreferencePage.PREFERENCE_PAGE_ID, null, null).open(); } }); GridData gridData= new GridData(SWT.FILL, SWT.BEGINNING, true, false); link.setLayoutData(gridData); return result; } @Override
@Override protected Control createMessageArea(Composite parent) { Control result= super.createMessageArea(parent); // Panic code: use 'parent' instead of 'result' in case super implementation changes in the future new Label(parent, SWT.NONE); // filler as parent has 2 columns (icon and label) Link link= new Link(parent, SWT.NONE); link.setText(linkText); link.setFont(parent.getFont()); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (hasProjectSettings) PreferencesUtil.createPropertyDialogOn(getShell(), javaProject, SaveParticipantPreferencePage.PROPERTY_PAGE_ID, null, null).open(); else PreferencesUtil.createPreferenceDialogOn(getShell(), SaveParticipantPreferencePage.PREFERENCE_PAGE_ID, null, null).open(); } }); GridData gridData= new GridData(SWT.FILL, SWT.BEGINNING, true, false); link.setLayoutData(gridData); return result; } @Override