當前位置: 首頁>>代碼示例>>Java>>正文


Java IDialogSettings.getSection方法代碼示例

本文整理匯總了Java中org.eclipse.jface.dialogs.IDialogSettings.getSection方法的典型用法代碼示例。如果您正苦於以下問題:Java IDialogSettings.getSection方法的具體用法?Java IDialogSettings.getSection怎麽用?Java IDialogSettings.getSection使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jface.dialogs.IDialogSettings的用法示例。


在下文中一共展示了IDialogSettings.getSection方法的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: LinkDialog

import org.eclipse.jface.dialogs.IDialogSettings; //導入方法依賴的package包/類
public LinkDialog(
    final Shell parentShell,
    final WorkItem workItem,
    final LinkUIRegistry linkUiRegistry,
    final WIFormLinksControlOptions linksControlOptions) {
    super(parentShell);
    this.workItem = workItem;
    this.linkCollection = workItem.getLinks();
    this.linkUiRegistry = linkUiRegistry;
    this.linksControlOptions = linksControlOptions;

    final IDialogSettings uiSettings = TFSCommonUIClientPlugin.getDefault().getDialogSettings();
    final IDialogSettings dialogSettings = uiSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
    if (dialogSettings != null) {
        initialLinkTypeName = dialogSettings.get(DIALOG_SETTINGS_LINK_TYPE_KEY);
    }
}
 
開發者ID:Microsoft,項目名稱:team-explorer-everywhere,代碼行數:18,代碼來源:LinkDialog.java

示例3: NewLinkedWorkItemDialog

import org.eclipse.jface.dialogs.IDialogSettings; //導入方法依賴的package包/類
public NewLinkedWorkItemDialog(
    final Shell shell,
    final WorkItem hostWorkItem,
    final WIFormLinksControlOptions linksControlOptions) {
    super(shell);
    this.hostWorkItem = hostWorkItem;
    client = hostWorkItem.getClient();
    this.linksControlOptions = linksControlOptions;
    witVersionSupportsWILinks = client.supportsWorkItemLinkTypes();

    final IDialogSettings uiSettings = TFSCommonUIClientPlugin.getDefault().getDialogSettings();
    final IDialogSettings dialogSettings = uiSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
    if (dialogSettings != null) {
        initialLinkTypeName = dialogSettings.get(DIALOG_SETTINGS_LINK_TYPE_KEY);
        initialWorkItemTypeName = dialogSettings.get(DIALOG_SETTINGS_WORKITEM_TYPE_KEY);
    }
}
 
開發者ID:Microsoft,項目名稱:team-explorer-everywhere,代碼行數:18,代碼來源:NewLinkedWorkItemDialog.java

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


注:本文中的org.eclipse.jface.dialogs.IDialogSettings.getSection方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。