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


Java Dialog.applyDialogFont方法代码示例

本文整理汇总了Java中org.eclipse.jface.dialogs.Dialog.applyDialogFont方法的典型用法代码示例。如果您正苦于以下问题:Java Dialog.applyDialogFont方法的具体用法?Java Dialog.applyDialogFont怎么用?Java Dialog.applyDialogFont使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.dialogs.Dialog的用法示例。


在下文中一共展示了Dialog.applyDialogFont方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createContents

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
	Composite composite = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	composite.setLayout(layout);
	composite.setFont(parent.getFont());

	GridData data = new GridData(GridData.FILL, GridData.FILL, true, true);

	configurationBlockControl = super.createContents(composite);
	configurationBlockControl.setLayoutData(data);

	if (isProjectPreferencePage()) {
		boolean useProjectSpecificSettings = hasProjectSpecificOptions();
		enableProjectSpecificSettings(useProjectSpecificSettings);
	}

	Dialog.applyDialogFont(composite);
	return composite;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:23,代码来源:AbstractN4JSPreferencePage.java

示例2: createControl

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
/**
 * @wbp.parser.entryPoint
 */
@Override
public void createControl(Composite p) {
	parent_1 = new Composite(p, SWT.NONE);
	setControl(parent_1);

	GridLayout gl_parent_1 = new GridLayout();
	gl_parent_1.numColumns = 3;
	parent_1.setLayout(gl_parent_1);

	createAllSections(parent_1);

	Dialog.applyDialogFont(parent_1);
	new Label(parent_1, SWT.NONE);

	validatePage();
	updateLaunchConfigurationDialog();
	updateConfigState();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:22,代码来源:GW4ELaunchConfigurationTab.java

示例3: createControl

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
/**
 * Creates the page control by creating individual options in the order
 * subject to their position in the list.'
 * 
 * @param composite
 */
public void createControl(Composite composite) {
	Composite container = new Composite(composite, SWT.NULL);
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	layout.verticalSpacing = 9;
	container.setLayout(layout);

	for (int i = 0; i < options.size(); i++) {
		TemplateOption option = (TemplateOption) options.get(i);
		option.createControl(container, 3);
	}
	if (helpContextId != null)
		PlatformUI.getWorkbench().getHelpSystem().setHelp(container, helpContextId);
	setControl(container);
	Dialog.applyDialogFont(container);
	container.forceFocus();
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:24,代码来源:OptionTemplateWizardPage.java

示例4: createContents

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
	Control control = super.createContents(parent);
	boolean selected = false;
	if (folder.getItemCount() > 0) {
		if (lastSelectedTabId != null) {
			CTabItem[] items = folder.getItems();
			for (int i = 0; i < items.length; i++)
				if (items[i].getData(ID).equals("30.PluginPage")) {
					folder.setSelection(i);
					tabSelected(items[i]);
					selected = true;
					break;
				}
		}
		if (!selected)
			tabSelected(folder.getItem(0));
	}
	// need to reapply the dialog font now that we've created new
	// tab items
	Dialog.applyDialogFont(folder);
	return control;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:24,代码来源:HydrographInstallationDialog.java

示例5: createDialogArea

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite top = (Composite) super.createDialogArea(parent);

	Composite editArea = new Composite(top, SWT.NONE);
	editArea.setLayout(new GridLayout());
	editArea.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));

	runInBackground = new BooleanFieldEditor(IProgressConstants.RUN_IN_BACKGROUND, ProgressMessages.JobsViewPreferenceDialog_RunInBackground, editArea);
	runInBackground.setPreferenceName(IProgressConstants.RUN_IN_BACKGROUND);
	runInBackground.setPreferenceStore(preferenceStore);
	runInBackground.load();

	showSystemJob = new BooleanFieldEditor(IProgressConstants.SHOW_SYSTEM_JOBS, ProgressMessages.JobsViewPreferenceDialog_ShowSystemJobs, editArea);
	showSystemJob.setPreferenceName(IProgressConstants.SHOW_SYSTEM_JOBS);
	showSystemJob.setPreferenceStore(preferenceStore);
	showSystemJob.load();

	Dialog.applyDialogFont(top);

	return top;
}
 
开发者ID:termsuite,项目名称:termsuite-ui,代码行数:23,代码来源:JobsViewPreferenceDialog.java

示例6: createContents

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite ancestor) {
	Composite parent = new Composite(ancestor, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	parent.setLayout(layout);

	Composite innerParent = new Composite(parent, SWT.NONE);
	GridLayout innerLayout = new GridLayout();
	innerLayout.numColumns = 2;
	innerLayout.marginHeight = 0;
	innerLayout.marginWidth = 0;
	innerParent.setLayout(innerLayout);
	GridData gd = new GridData(GridData.FILL_BOTH);
	gd.horizontalSpan = 2;
	innerParent.setLayoutData(gd);

	Dialog.applyDialogFont(parent);
	innerParent.layout();

	return parent;

}
 
开发者ID:eclipse,项目名称:tm4e,代码行数:26,代码来源:LanguageConfigurationPreferencePage.java

示例7: addPages

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
public void addPages() {
	super.addPages();

	mainPage = new WizardNewProjectCreationPage("basicNewProjectPage") { //$NON-NLS-1$
		@Override
		public void createControl(Composite parent) {
			super.createControl(parent);
			createWorkingSetGroup((Composite) getControl(), getSelection(),
					new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$
			Dialog.applyDialogFont(getControl());
		}
	};
	mainPage.setTitle("Android Application");
	mainPage.setDescription("Create Android Application Project");
	this.addPage(mainPage);

	// only add page if there are already projects in the workspace
	if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) {
		referencePage = new WizardNewProjectReferencePage("basicReferenceProjectPage");//$NON-NLS-1$
		referencePage.setTitle("Project References");
		referencePage.setDescription("Project References");
		this.addPage(referencePage);
	}
}
 
开发者ID:dschaefer,项目名称:andmore2,代码行数:26,代码来源:NewAppWizard.java

示例8: addPages

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
/**
 * @see org.eclipse.jface.wizard.Wizard#addPages()
 */
@Override
public void addPages() {
	this.projectCreationPage = new WizardNewProjectCreationPage("basicNewProjectPage") { //$NON-NLS-1$
		@Override
		public void createControl(Composite parent) {
			super.createControl(parent);
			createWorkingSetGroup((Composite) getControl(), getSelection(),
					new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$
			Dialog.applyDialogFont(getControl());
		}
	};
	this.projectCreationPage.setTitle(Messages.NewArduinoSCTProjectWizard_title);
	this.projectCreationPage.setDescription(Messages.NewArduinoSCTProjectWizard_description);

	this.arduinoSCTWizardPage = new ArduinoSCTWizardPage();
	this.arduinoSCTWizardPage.setTitle(Messages.NewArduinoSCTProjectWizard_title);

	addPage(this.projectCreationPage);
	addPage(this.arduinoSCTWizardPage);
}
 
开发者ID:wendehals,项目名称:arduino_sct_tools,代码行数:24,代码来源:NewArduinoSCTProjectWizard.java

示例9: createDialogArea

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite dialogArea = (Composite) super.createDialogArea(parent);
	Composite composite = new Composite(dialogArea, SWT.NONE);
	composite.setLayoutData(new GridData(GridData.FILL_BOTH));

	setTitle("Import Bookmarks file");
	getShell().setText("Import Bookmarks file");
	setMessage("Import a bookmarks file");

	GridLayout gridLayout = new GridLayout(2, false);
	composite.setLayout(gridLayout);

	createFileTableViewer(composite);
	createAddLinkButton(composite);
	Dialog.applyDialogFont(composite);
	return dialogArea;
}
 
开发者ID:cchabanois,项目名称:mesfavoris,代码行数:19,代码来源:ImportBookmarksFileDialog.java

示例10: createDialogArea

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createDialogArea ( final Composite parent )
{
    final Composite wrapper = (Composite)super.createDialogArea ( parent );

    initializeDialogUnits ( wrapper );
    final Composite contents = createComposite ( wrapper );
    contents.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, true ) );
    Dialog.applyDialogFont ( wrapper );

    setTitle ( Messages.LoginDialog_Dlg_Title );

    return wrapper;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:15,代码来源:LoginDialog.java

示例11: createDialogArea

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createDialogArea ( final Composite parent )
{
    final Composite wrapper = (Composite)super.createDialogArea ( parent );

    initializeDialogUnits ( wrapper );
    final Composite contents = createComposite ( wrapper );
    contents.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, true ) );
    Dialog.applyDialogFont ( wrapper );

    return wrapper;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:13,代码来源:CallbackDialog.java

示例12: createControl

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
public void createControl ( final Composite parent )
{
    super.createControl ( parent );

    final Composite control = (Composite)getControl ();

    createWorkingSetGroup ( control, this.selection, new String[] { "org.eclipse.ui.resourceWorkingSetPage" } ); //$NON-NLS-1$

    Dialog.applyDialogFont ( control );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:12,代码来源:NewProjectPage.java

示例13: createButton

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
private Button createButton(Composite parent, String label) {
	int widthHint = convertHorizontalDLUsToPixels(61);

	Button button = new Button(parent, 8);
	button.setText(label);

	Dialog.applyDialogFont(button);
	GridData data = new GridData(256);
	Point minButtonSize = button.computeSize(-1, -1, true);
	data.widthHint = Math.max(widthHint, minButtonSize.x);
	button.setLayoutData(data);

	return button;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:15,代码来源:ExtClassPathPreferencePage.java

示例14: createContents

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite ancestor) {
	Composite parent = new Composite(ancestor, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	parent.setLayout(layout);

	Composite innerParent = new Composite(parent, SWT.NONE);
	GridLayout innerLayout = new GridLayout();
	innerLayout.numColumns = 2;
	innerLayout.marginHeight = 0;
	innerLayout.marginWidth = 0;
	innerParent.setLayout(innerLayout);
	GridData gd = new GridData(GridData.FILL_BOTH);
	gd.horizontalSpan = 2;
	innerParent.setLayoutData(gd);

	createGrammarListContent(innerParent);
	createGrammarDetailContent(innerParent);

	previewViewer = doCreateViewer(innerParent);
	grammarViewer.setInput(grammarRegistryManager);

	updateButtons();
	Dialog.applyDialogFont(parent);
	innerParent.layout();

	return parent;
}
 
开发者ID:eclipse,项目名称:tm4e,代码行数:32,代码来源:GrammarPreferencePage.java

示例15: createContents

import org.eclipse.jface.dialogs.Dialog; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite ancestor) {
	Composite parent = new Composite(ancestor, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	parent.setLayout(layout);

	Composite innerParent = new Composite(parent, SWT.NONE);
	GridLayout innerLayout = new GridLayout();
	innerLayout.numColumns = 2;
	innerLayout.marginHeight = 0;
	innerLayout.marginWidth = 0;
	innerParent.setLayout(innerLayout);
	GridData gd = new GridData(GridData.FILL_BOTH);
	gd.horizontalSpan = 2;
	innerParent.setLayoutData(gd);

	createThemesContent(innerParent);
	createThemeDetailContent(innerParent);
	createPreviewContent(innerParent);

	grammarViewer.setInput(grammarRegistryManager);
	if (grammarViewer.getCombo().getItemCount() > 0) {
		grammarViewer.getCombo().select(0);
	}
	themeViewer.setInput(themeManager);

	updateButtons();
	Dialog.applyDialogFont(parent);
	innerParent.layout();

	return parent;
}
 
开发者ID:eclipse,项目名称:tm4e,代码行数:36,代码来源:ThemePreferencePage.java


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