RCP-Customized - Create [Preferences] dialog

xiaoxiao2021-04-05  243

RCP products often use the [Preferences] dialog box to set the properties, need independent implementation

The implementation is as follows:

// get IWorkbench IWorkbench wb = MainPlugin.getDefault () getWorkbench ();. // get property manager PreferenceManager mgr = wb.getPreferenceManager (); // get Shell Shell sh = wb.getActiveWorkbenchWindow () getShell ();. / / Create the first option window PreferenceDialog Diag = New PreferenceDialog (SH, MGR);

转载请注明原文地址:https://www.9cbs.com/read-132244.html

New Post(0)