当前位置: 首页>>代码示例>>Java>>正文


Java IDialogSettings.addNewSection方法代码示例

本文整理汇总了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);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:24,代码来源:SimpleN4MFNewProjectWizard.java

示例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();
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:19,代码来源:NewLinkedWorkItemDialog.java

示例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;
	}
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:22,代码来源:IgnoreResourcesDialog.java

示例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);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:9,代码来源:NFARExportWizard.java

示例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);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:11,代码来源:NpmExportWizard.java

示例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);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:12,代码来源:ADocSpecExportWizard.java

示例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;
}
 
开发者ID:gluonhq,项目名称:ide-plugins,代码行数:9,代码来源:GluonProjectWizard.java

示例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;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:11,代码来源:HiveTab.java

示例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;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:15,代码来源:DialogManager.java

示例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;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:11,代码来源:HydrographInstallationDialog.java

示例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;
}
 
开发者ID:de-jcup,项目名称:egradle,代码行数:13,代码来源:OpenGradleResourceDialog.java

示例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;
}
 
开发者ID:alfsch,项目名称:workspacemechanic,代码行数:12,代码来源:BaseOutputDialog.java

示例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);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:10,代码来源:WITSearchDialog.java

示例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;
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:12,代码来源:DialogSettingsHelper.java

示例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);
}
 
开发者ID:eclipse,项目名称:eclemma,代码行数:15,代码来源:SessionExportWizard.java


注:本文中的org.eclipse.jface.dialogs.IDialogSettings.addNewSection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。