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


Java IManagedForm.getToolkit方法代码示例

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


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

示例1: createHeaderContents

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createHeaderContents(IManagedForm headerForm) {
    super.createHeaderContents(headerForm);

    FormToolkit toolkit = headerForm.getToolkit();
    ScrolledForm scrolledForm = headerForm.getForm();
    Form form = scrolledForm.getForm();
    toolkit.decorateFormHeading(form);

    updateTitle();
    makeActions();

    IToolBarManager toolBarManager = form.getToolBarManager();
    contributeToToolBar(headerForm, toolBarManager);
    toolBarManager.update(true);

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:18,代码来源:DataModelFormEditor.java

示例2: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    final ScrolledForm form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();

    _EditSection = createEditSection(form, client, toolkit);
    GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _EditSection.setLayoutData(editSectionGridData);

    _PropertiesSection = createPropertiesTableSection(form, client, toolkit);
    GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _PropertiesSection.setLayoutData(propertiesSectionGridData);

    _ZnodeSection = createZnodeSection(form, client, toolkit);
    GridData znodeSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _ZnodeSection.setLayoutData(znodeSectionGridData);

    Table propertiesSectionTable = getPropertiesSectionTable();
    initTableEdit(propertiesSectionTable, null, 1);
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:21,代码来源:ZooKeeperConnectionModelMainFormPage.java

示例3: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    final ScrolledForm form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();

    _EditSection = createEditSection(form, client, toolkit);
    GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _EditSection.setLayoutData(editSectionGridData);

    _PropertiesSection = createPropertiesTableSection(form, client, toolkit);
    GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _PropertiesSection.setLayoutData(propertiesSectionGridData);

    Table propertiesSectionTable = getPropertiesSectionTable();
    initTableEdit(propertiesSectionTable, null, 1);
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:17,代码来源:JmxConnectionModelMainFormPage.java

示例4: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    FormToolkit toolkit = managedForm.getToolkit();

    _ScrolledFormText = new ScrolledFormText(client, false);
    _ScrolledFormText.setExpandHorizontal(true);
    toolkit.adapt(_ScrolledFormText, false, false);
    _JmxDocFormText = toolkit.createFormText(_ScrolledFormText, true);
    _ScrolledFormText.setFormText(_JmxDocFormText);
    JmxDocFormText.initFormText(_JmxDocFormText);

    FormData scrolledFormTextFormData = new FormData();
    scrolledFormTextFormData.top = new FormAttachment(0, 0);
    scrolledFormTextFormData.left = new FormAttachment(0, 0);
    scrolledFormTextFormData.right = new FormAttachment(100, 0);
    scrolledFormTextFormData.bottom = new FormAttachment(100, 0);
    _ScrolledFormText.setLayoutData(scrolledFormTextFormData);

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:20,代码来源:MBeanModelJmxDocFormPage.java

示例5: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createFormContent(IManagedForm managedForm) {
	FormToolkit toolkit=managedForm.getToolkit();
	ScrolledForm form=managedForm.getForm();
	form.setText("流程模版导出与部署");
	ColumnLayout layout=new ColumnLayout();
	layout.topMargin=0;
	layout.bottomMargin=0;
	layout.leftMargin=0;
	layout.rightMargin=0;
	layout.maxNumColumns=1;
	layout.horizontalSpacing=5;
	layout.verticalSpacing=5;
	form.getBody().setLayout(layout);
	this.createExportSection(toolkit, form);
	this.createOnlineDeploymentSection(toolkit, form);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:18,代码来源:DeploymentPage.java

示例6: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
/**
 * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
 */
@Override
protected void createFormContent(final IManagedForm managedForm) {
	final FormToolkit toolkit = managedForm.getToolkit();

	final ScrolledForm scrolledForm = managedForm.getForm();
	scrolledForm.setText(Messages.GeneratorEntryFormPage_formPageHeaderPrefix + getStatechartName());

	final Form form = scrolledForm.getForm();
	toolkit.decorateFormHeading(form);

	final IToolBarManager toolBarManager = form.getToolBarManager();
	toolBarManager.add(createGenerateAction());
	form.updateToolBar();

	final Composite body = scrolledForm.getBody();
	body.setLayout(new TableWrapLayout());

	createSections(toolkit, body);

	startListeningToModelChanges();
}
 
开发者ID:wendehals,项目名称:arduino_sct_tools,代码行数:25,代码来源:GeneratorEntryFormPage.java

示例7: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createFormContent(IManagedForm managedForm) {
	final ScrolledForm form = managedForm.getForm();
	FormToolkit toolkit = managedForm.getToolkit();
	toolkit.decorateFormHeading(form.getForm());

	IToolBarManager manager = form.getToolBarManager();
	if (contributeToToolbar(manager)) {
		form.updateToolBar();
	}
	String titleText = getFormTitleText();
	if (titleText != null) {
		form.setText(titleText);
	}
	Image titleImage = getFormTitleImage();
	if (titleImage != null) {
		form.setImage(titleImage);
	}
	toolkit.decorateFormHeading(form.getForm());
	createUI(managedForm);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:22,代码来源:AbstractFormPage.java

示例8: ApplicationMasterPart

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
public ApplicationMasterPart(DockerFoundryApplicationsEditorPage editorPage, IManagedForm managedForm,
			Composite parent, DockerFoundryServer cloudServer) {
		super(parent, managedForm.getToolkit(), Section.TITLE_BAR | Section.DESCRIPTION);
		this.editorPage = editorPage;
		this.cloudServer = cloudServer;
		this.toolkit = managedForm.getToolkit();
//		this.provideServices = CloudFoundryBrandingExtensionPoint.getProvideServices(editorPage.getServer()
//				.getServerType().getId());
		
		String linksAsString = this.cloudServer.getDockerContainerLinks();
		if(linksAsString != null && linksAsString.length() >0){
			StringTokenizer st = new StringTokenizer(linksAsString, ",");
			if(st != null){
				while (st.hasMoreTokens()) {
					String token = st.nextToken();
					String[] s = token.split(":");
					DockerApplicationService service = new DockerApplicationService();
					service.setName(s[0]);
					service.setLinkName(s[1]);
					services.add(service);
				}
			}
		}
	}
 
开发者ID:osswangxining,项目名称:dockerfoundry,代码行数:25,代码来源:ApplicationMasterPart.java

示例9: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createFormContent(IManagedForm mform) {
	mform.getForm().setText("Guide Position");

	FormToolkit toolkit = mform.getToolkit();

	mform.getForm().getBody().setLayout(new GridLayout(4, false));

	toolkit.createLabel(mform.getForm().getBody(), "Guide Position"); //$NON-NLS-1$
	final Spinner width = new Spinner(mform.getForm().getBody(), SWT.BORDER);
	width.setValues(w, 0, Integer.MAX_VALUE, 0, 1, 10);
	width.setToolTipText("Guide Position");
	width.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			w = width.getSelection();
		}
	});
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:20,代码来源:CreateGuideAction.java

示例10: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createFormContent(final IManagedForm mform) {

	mform.getForm().setText(Messages.ParametersDialog_report_parameters);
	FormToolkit toolkit = mform.getToolkit();

	Composite body = mform.getForm().getBody();
	body.setLayout(new GridLayout());

	CTabFolder tabFolder = new CTabFolder(body, SWT.BOTTOM);
	GridData gd = new GridData(GridData.FILL_BOTH);
	gd.widthHint = 700;
	gd.heightHint = 500;
	tabFolder.setLayoutData(gd);
	tabFolder.setBackground(body.getBackground());

	createUserParam(toolkit, tabFolder);

	createBParam(toolkit, tabFolder);

	SortFieldSection sortFieldSection = new SortFieldSection();
	sortFieldSection.fillTable(tabFolder, jDesign, prompts, params);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:24,代码来源:ParametersDialog.java

示例11: initialize

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
public void initialize(IManagedForm mform) {
	super.initialize(mform);
	
	FormToolkit toolkit = mform.getToolkit();
	ScrolledForm sform = mform.getForm();
	
	titleComposite = toolkit.createComposite(sform.getBody());
	titleComposite.setLayout(new GridLayout(getNumTitleComponents(), false));
       titleComposite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
       
       populateTitleComposite(toolkit, sform, titleComposite);

	Composite separator = toolkit.createCompositeSeparator(sform.getBody());
	TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP);
	data.maxHeight = 2;
	separator.setLayoutData(data);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:19,代码来源:TitleFormPart.java

示例12: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
protected void createFormContent(IManagedForm managedForm) {
	// 通过managedForm对象获得表单工具对象
	toolkit = managedForm.getToolkit();
	// 通过managedForm对象获得ScrolledForm可滚动的表单对象
	ScrolledForm form = managedForm.getForm();
	// 设置表单文本
	form.setText("这是第一页,Hello, Eclipse 表单");
	// 创建表格布局
	TableWrapLayout layout = new TableWrapLayout();
	layout.numColumns = 1;// 表格的列数
	layout.bottomMargin = 0;// 下补白
	layout.topMargin = 0;// 上补白
	layout.leftMargin = 0;// 左补白
	layout.rightMargin = 0;// 右补白
	form.getBody().setLayout(layout);// 设置表格的布局
	
	form.getBody().setBackground(
			form.getBody().getDisplay()
					.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:21,代码来源:NoteFormPage.java

示例13: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
public void createFormContent(IManagedForm managedForm) {
	super.createFormContent(managedForm);
	form = managedForm.getForm();
	toolkit = managedForm.getToolkit();
	editorComposite = form.getBody();

	// TODO consider using TableWrapLayout, it makes resizing much faster
	GridLayout editorLayout = new GridLayout();
	editorComposite.setLayout(editorLayout);
	editorComposite.setLayoutData(new GridData(GridData.FILL_BOTH));

	Display.getCurrent().asyncExec(new Runnable() {
		public void run() {
			downloadTicketAndRefresh();
		}
	});
}
 
开发者ID:project-open,项目名称:po-mylyn-integration,代码行数:19,代码来源:TicketEditorPage.java

示例14: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
@Override
protected void createFormContent(IManagedForm managedForm) {
	form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	Section section = UI.section(body, toolkit, M.ImpactFactors);
	UI.gridData(section, true, true);
	Composite client = toolkit.createComposite(section);
	section.setClient(client);
	UI.gridLayout(client, 1);
	createCategoryViewer(client);
	factorTable = new ImpactFactorTable(editor);
	factorTable.render(client, section);
	categoryViewer.selectFirst();
	form.reflow(true);
}
 
开发者ID:GreenDelta,项目名称:olca-app,代码行数:17,代码来源:ImpactFactorPage.java

示例15: initYesNoInfoBar

import org.eclipse.ui.forms.IManagedForm; //导入方法依赖的package包/类
/**
 * Initializes the {@link InfoBar} with "Yes" and "No" {@link Button buttons}.
 * 
 * @param managedForm The {@link IManagedForm} instance.
 * @param yesListener The {@link SelectionListener} to handle the Yes button selection.
 */
protected void initYesNoInfoBar(IManagedForm managedForm, SelectionListener yesListener,
        SelectionListener noListener) {

    InfoBar infoBar = getInfoBar();

    FormToolkit toolkit = managedForm.getToolkit();

    Button yesButton = toolkit.createButton(infoBar, "Yes", SWT.PUSH);
    if (yesListener != null) {
        yesButton.addSelectionListener(yesListener);
    }

    Button noButton = toolkit.createButton(infoBar, "No", SWT.PUSH);
    if (noListener != null) {
        noButton.addSelectionListener(noListener);
    }

    FormData yesButtonFormData = new FormData();
    yesButtonFormData.top = new FormAttachment(0, 0);
    yesButtonFormData.right = new FormAttachment(noButton);
    yesButton.setLayoutData(yesButtonFormData);

    FormData noButtonFormData = new FormData();
    noButtonFormData.top = new FormAttachment(0, 0);
    noButtonFormData.right = new FormAttachment(100, 0);
    noButton.setLayoutData(noButtonFormData);

    FormData labelFormData = new FormData();
    labelFormData.top = new FormAttachment(yesButton, 0, SWT.CENTER);
    labelFormData.left = new FormAttachment(0, 0);
    infoBar.getLabel().setLayoutData(labelFormData);

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:40,代码来源:DataModelFormPage.java


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