Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Allowing extensions to AbstractConfigurationBlockPropertyAndPreferencePage perform... methods

Hi,

I have preference/property pages that are extending the
AbstractConfigurationBlockPropertyAndPreferencePage. These pages also
require a project rebuilding in some cases.

Since the preferences for the project are saved (persited) in the
AbstractConfigurationBlockPropertyAndPreferencePage.performOK(), I
cannot do a proper project rebuilding in the
AbstractOptionsBlock.performOK() since the project does not have the
properties saved yet.

My request would be either:
1. to delete the "final" modifier for the performOK() methods of the
AbstractConfigurationBlockPropertyAndPreferencePage class
or
2. to provide doPerformOK() methods (maybe gove them a better name) in
the class AbstractConfigurationBlockPropertyAndPreferencePage as in
the following example:


	public final boolean performOk() {
		if ((block != null) && !block.performOk()) {
			return false;
		}

		if(!super.performOk())
			return false;

		doPerformOK();
	}

	public abstract boolean doPerformOk(); // or public boolean doPerformOk() { }


This way, one can trigger project rebuilding if needed from various
property or preference pages

Thanks!

Best regards,
Gabriel

-- 
MSc Gabriel Petrovay
MCSA, MCDBA, MCAD
Mobile: +41(0)787978034


Back to the top