@Override public void setMessage(String newMessage, int newType) { super.setMessage(newMessage, newType); if (getContainer() != null) { getContainer().updateMessage(); } }
@Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
@Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
@Override public void setMessage(String newMessage, int newType) { super.setMessage(newMessage, newType); if (getContainer() != null) { getContainer().updateMessage(); } }
/** * The <code>PreferencePage</code> implementation of this <code>IDialogPage</code> * method extends the <code>DialogPage</code> implementation to update * the preference page container title. Subclasses may extend. * @see IDialogPage#setTitle(String) */ public void setTitle(String title) { super.setTitle(title); if (getContainer() != null) { getContainer().updateTitle(); } }
public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
public void setMessage(String newMessage, int newType) { super.setMessage(newMessage, newType); if (getContainer() != null) { getContainer().updateMessage(); } }
/** * The <code>PreferencePage</code> implementation of this <code>IDialogPage</code> * method extends the <code>DialogPage</code> implementation to update * the preference page container title. Subclasses may extend. * @see IDialogPage#setTitle(String) */ @Override public void setTitle(String title) { super.setTitle(title); if (getContainer() != null) { getContainer().updateTitle(); } }
/** * The <code>PreferencePage</code> implementation of this <code>IDialogPage</code> * method extends the <code>DialogPage</code> implementation to update * the preference page container title. Subclasses may extend. * @see IDialogPage#setTitle(String) */ @Override public void setTitle(String title) { super.setTitle(title); if (getContainer() != null) { getContainer().updateTitle(); } }
/** * Sets whether this page is valid. * The enable state of the container buttons and the * apply button is updated when a page's valid state * changes. * <p> * * @param b the new valid state */ public void setValid(boolean b) { boolean oldValue = isValid; isValid = b; if (oldValue != isValid) { // update container state if (getContainer() != null) { getContainer().updateButtons(); } // update page state updateApplyButton(); } }
/** * Sets whether this page is valid. * The enable state of the container buttons and the * apply button is updated when a page's valid state * changes. * <p> * * @param b the new valid state */ public void setValid(boolean b) { boolean oldValue = isValid; isValid = b; if (oldValue != isValid) { // update container state if (getContainer() != null) { getContainer().updateButtons(); } // update page state updateApplyButton(); } }
/** * Sets whether this page is valid. * The enable state of the container buttons and the * apply button is updated when a page's valid state * changes. * <p> * * @param b the new valid state */ public void setValid(boolean b) { boolean oldValue = isValid; isValid = b; if (oldValue != isValid) { // update container state if (getContainer() != null) { getContainer().updateButtons(); } // update page state updateApplyButton(); } }
IPreferencePageContainer container= fPreferencePage.getContainer(); for (int i= 0; i < descriptors.length; i++) { final SaveParticipantDescriptor descriptor= descriptors[i];
@Override public Control createControl(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); GridLayout gridLayout= new GridLayout(2, false); gridLayout.marginHeight= 0; gridLayout.marginWidth= 0; composite.setLayout(gridLayout); SaveParticipantRegistry registry= JavaPlugin.getDefault().getSaveParticipantRegistry(); SaveParticipantDescriptor[] descriptors= registry.getSaveParticipantDescriptors(); if (descriptors.length == 0) return composite; Arrays.sort(descriptors, new Comparator<SaveParticipantDescriptor>() { @Override public int compare(SaveParticipantDescriptor d1, SaveParticipantDescriptor d2) { return Collator.getInstance().compare(d1.getPostSaveListener().getName(), d2.getPostSaveListener().getName()); } }); IPreferencePageContainer container= fPreferencePage.getContainer(); for (int i= 0; i < descriptors.length; i++) { final SaveParticipantDescriptor descriptor= descriptors[i]; ISaveParticipantPreferenceConfiguration configuration= descriptor.createPreferenceConfiguration(); configuration.createControl(composite, container); fConfigurations.add(configuration); } return composite; }
@Override public Control createControl(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); GridLayout gridLayout= new GridLayout(2, false); gridLayout.marginHeight= 0; gridLayout.marginWidth= 0; composite.setLayout(gridLayout); SaveParticipantRegistry registry= JavaPlugin.getDefault().getSaveParticipantRegistry(); SaveParticipantDescriptor[] descriptors= registry.getSaveParticipantDescriptors(); if (descriptors.length == 0) return composite; Arrays.sort(descriptors, new Comparator<SaveParticipantDescriptor>() { @Override public int compare(SaveParticipantDescriptor d1, SaveParticipantDescriptor d2) { return Collator.getInstance().compare(d1.getPostSaveListener().getName(), d2.getPostSaveListener().getName()); } }); IPreferencePageContainer container= fPreferencePage.getContainer(); for (int i= 0; i < descriptors.length; i++) { final SaveParticipantDescriptor descriptor= descriptors[i]; ISaveParticipantPreferenceConfiguration configuration= descriptor.createPreferenceConfiguration(); configuration.createControl(composite, container); fConfigurations.add(configuration); } return composite; }