本文整理汇总了Java中org.eclipse.jface.dialogs.IDialogSettings.addNewSection方法的典型用法代码示例。如果您正苦于以下问题:Java IDialogSettings.addNewSection方法的具体用法?Java IDialogSettings.addNewSection怎么用?Java IDialogSettings.addNewSection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.dialogs.IDialogSettings
的用法示例。
在下文中一共展示了IDialogSettings.addNewSection方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SimpleN4MFNewProjectWizard
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
/**
* Creates a new wizard container for creating and initializing a new N4JS project into the workspace.
*
* @param projectCreator
* the project creation logic to be triggered when finishing this wizard.
*/
@Inject
public SimpleN4MFNewProjectWizard(final IProjectCreator projectCreator) {
super(projectCreator);
setWindowTitle("New N4JS Project");
setNeedsProgressMonitor(true);
setDefaultPageImageDescriptor(NEW_PROJECT_WIZBAN_DESC);
projectInfo = new N4MFProjectInfo();
// Setup the dialog settings
IDialogSettings workbenchDialogSettings = N4MFActivator.getInstance().getDialogSettings();
IDialogSettings projectWizardSettings = workbenchDialogSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
if (null == projectWizardSettings) {
projectWizardSettings = workbenchDialogSettings.addNewSection(DIALOG_SETTINGS_SECTION_KEY);
}
setDialogSettings(projectWizardSettings);
}
示例2: okPressed
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Override
protected void okPressed() {
selectedTitle = textWorkItemTitle.getText();
selectedComment = textWorkItemComment.getText();
// Save the selected link-type in user setting so the next launch of the
// dialog will
// initially select the last used link-type.
final IDialogSettings uiSettings = TFSCommonUIClientPlugin.getDefault().getDialogSettings();
IDialogSettings dialogSettings = uiSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
if (dialogSettings == null) {
dialogSettings = uiSettings.addNewSection(DIALOG_SETTINGS_SECTION_KEY);
}
dialogSettings.put(DIALOG_SETTINGS_LINK_TYPE_KEY, linkTypeDisplayNames[selectedLinkTypeIndex]);
dialogSettings.put(DIALOG_SETTINGS_WORKITEM_TYPE_KEY, workItemTypeDisplayNames[selectedWorkItemTypeIndex]);
super.okPressed();
}
示例3: IgnoreResourcesDialog
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
/**
* Creates a new dialog for ignoring resources.
* @param shell the parent shell
* @param resources the array of resources to be ignored
*/
public IgnoreResourcesDialog(Shell shell, IResource[] resources) {
super(shell);
this.resources = resources;
IDialogSettings workbenchSettings = SVNUIPlugin.getPlugin().getDialogSettings();
this.settings = workbenchSettings.getSection("IgnoreResourcesDialog");//$NON-NLS-1$
if (settings == null) {
this.settings = workbenchSettings.addNewSection("IgnoreResourcesDialog");//$NON-NLS-1$
}
try {
selectedAction = settings.getInt(ACTION_KEY);
} catch (NumberFormatException e) {
selectedAction = ADD_NAME_ENTRY;
}
}
示例4: injectDialogSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Inject
private void injectDialogSettings(IDialogSettings settings) {
IDialogSettings section = settings.getSection("NFARExportWizard");//$NON-NLS-1$
if (section == null) {
section = settings.addNewSection("NFARExportWizard");//$NON-NLS-1$
}
setDialogSettings(section);
}
示例5: NpmExportWizard
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
/** */
public NpmExportWizard() {
IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault().getDialogSettings();
IDialogSettings section = workbenchSettings.getSection("NpmExportWizard");//$NON-NLS-1$
if (section == null) {
section = workbenchSettings.addNewSection("NpmExportWizard");//$NON-NLS-1$
}
setDialogSettings(section);
}
示例6: ADocSpecExportWizard
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
/**
* Default constructor
*/
public ADocSpecExportWizard() {
IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault().getDialogSettings();
IDialogSettings section = workbenchSettings.getSection(WIZARD_NAME);// $NON-NLS-1$
if (section == null) {
section = workbenchSettings.addNewSection(WIZARD_NAME);// $NON-NLS-1$
}
setDialogSettings(section);
}
示例7: getOrCreateDialogSection
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
private static IDialogSettings getOrCreateDialogSection(IDialogSettings dialogSettings) {
// in Eclipse 3.6 the method DialogSettings#getOrCreateSection does not exist
IDialogSettings section = dialogSettings.getSection(WIZARD_ID);
if (section == null) {
section = dialogSettings.addNewSection(WIZARD_ID);
}
return section;
}
示例8: getDialogBoundsSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
private IDialogSettings getDialogBoundsSettings ( final String id )
{
final IDialogSettings settings = Activator.getDefault ().getDialogSettings ();
IDialogSettings section = settings.getSection ( id );
if ( section == null )
{
section = settings.addNewSection ( id );
}
return section;
}
示例9: getDialogSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
/**
* @param section
* @return
*/
public static IDialogSettings getDialogSettings(String section) {
IDialogSettings gds = Activator.getDefault().getDialogSettings();
IDialogSettings ds = gds.getSection(section);
if (ds == null) {
ds = gds.addNewSection(section);
}
return ds;
}
示例10: getDialogBoundsSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Override
protected IDialogSettings getDialogBoundsSettings() {
IDialogSettings settings = WorkbenchPlugin.getDefault()
.getDialogSettings();
IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION);
if (section == null) {
section = settings.addNewSection(DIALOG_SETTINGS_SECTION);
}
return section;
}
示例11: getDialogSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Override
protected IDialogSettings getDialogSettings() {
EditorActivator editorActivator = EditorActivator.getDefault();
IDialogSettings dialogSettings = editorActivator.getDialogSettings();
IDialogSettings settings = dialogSettings.getSection(GRADLE_RESOURCE_DIALOG_SETTINGS);
if (settings == null) {
settings = dialogSettings.addNewSection(GRADLE_RESOURCE_DIALOG_SETTINGS);
}
return settings;
}
示例12: getDialogBoundsSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Override
protected IDialogSettings getDialogBoundsSettings() {
String dialogSettingsSection = getDialogSettingsSection();
if (dialogSettingsSection == null) {
return null;
}
IDialogSettings settings = MechanicPlugin.getDefault().getDialogSettings();
IDialogSettings section = settings.getSection(dialogSettingsSection);
if (section == null) section = settings.addNewSection(dialogSettingsSection);
return section;
}
示例13: hookDialogAboutToClose
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
@Override
protected void hookDialogAboutToClose() {
final IDialogSettings uiSettings = TFSCommonUIClientPlugin.getDefault().getDialogSettings();
IDialogSettings witSearchDialogSettings = uiSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
if (witSearchDialogSettings == null) {
witSearchDialogSettings = uiSettings.addNewSection(DIALOG_SETTINGS_SECTION_KEY);
}
model.saveToSettings(witSearchDialogSettings);
}
示例14: getDialogSettings
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
private static IDialogSettings getDialogSettings(final String dialogSettingsKey) {
final IDialogSettings settings = TFSCommonUIClientPlugin.getDefault().getDialogSettings();
IDialogSettings section = settings.getSection(dialogSettingsKey);
if (section == null) {
section = settings.addNewSection(dialogSettingsKey);
final SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);
section.put(SINCE, formatter.format(new Date()));
}
return section;
}
示例15: SessionExportWizard
import org.eclipse.jface.dialogs.IDialogSettings; //导入方法依赖的package包/类
public SessionExportWizard() {
super();
IDialogSettings pluginsettings = EclEmmaUIPlugin.getInstance()
.getDialogSettings();
IDialogSettings wizardsettings = pluginsettings.getSection(SETTINGSID);
if (wizardsettings == null) {
wizardsettings = pluginsettings.addNewSection(SETTINGSID);
}
setDialogSettings(wizardsettings);
setWindowTitle(UIMessages.ExportSession_title);
setDefaultPageImageDescriptor(EclEmmaUIPlugin
.getImageDescriptor(EclEmmaUIPlugin.WIZBAN_EXPORT_SESSION));
setNeedsProgressMonitor(true);
}