本文整理汇总了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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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 );
}
示例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;
}
示例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;
}
示例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;
}