简体   繁体   中英

Eclipse RCP Preference Dialog

Question

Is it possible to create a second Preference Dialog that can take some PreferencePage , much like the standard eclipse Preference (Eclipse > Preferences or Window > Preferences)?

Current Approach

My solution so far was to create my own PreferenceEditorDialog by extend Dialog and implementing my own Preference Dialog style layout.

/**
 * A preference dialog is a hierarchical presentation of preference pages. Each
 * page is represented by a node in the tree shown on the left hand side of the
 * dialog; when a node is selected, the corresponding page is shown on the right
 * hand side.
 */
public class PreferenceEditorDialog extends Dialog implements IPageChangeProvider {

}

I would much rather reuse an eclipse implementation as I don't have to maintain the code myself.

PreferenceDialog是您正在寻找的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM