Example usage for org.eclipse.jface.preference IPreferencePage dispose

List of usage examples for org.eclipse.jface.preference IPreferencePage dispose

Introduction

In this page you can find the example usage for org.eclipse.jface.preference IPreferencePage dispose.

Prototype

void dispose();

Source Link

Document

Disposes the SWT resources allocated by this dialog page.

Usage

From source file:org.eclipse.objectteams.otdt.debug.ui.internal.preferences.OTDebugPreferencePage.java

License:Open Source License

private void forcePreferencePageRecreation(PreferenceNode node) {
    IPreferencePage oldPage = node.getPage();
    if (oldPage != null) {
        node.setPage(null);//w ww .  ja v a2  s . c  om
        node.createPage();
        node.getPage().createControl(_parentComposite);

        oldPage.dispose();
    }
}

From source file:org.jboss.tools.common.ui.marker.ConfigureProblemSeverityMarkerResolution.java

License:Open Source License

private String getPreferenceLabel() {
    String label = "";
    WorkbenchPreferenceNode pageNode = findPageNode();
    if (pageNode != null) {
        IPreferencePage page = pageNode.getPage();
        if (page == null) {
            pageNode.createPage();//  w  ww .jav a 2 s. c  o m

            page = pageNode.getPage();

            label = getLabel(page);

            pageNode.setPage(null);
            page.dispose();
        } else {
            label = getLabel(page);
        }
    }
    return label;
}