• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ManagedForm类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.ui.forms.ManagedForm的典型用法代码示例。如果您正苦于以下问题:Java ManagedForm类的具体用法?Java ManagedForm怎么用?Java ManagedForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ManagedForm类属于org.eclipse.ui.forms包,在下文中一共展示了ManagedForm类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createControl

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
public void createControl(Composite parent) {	
	toolkit = new FormToolkit(parent.getDisplay());
	toolkit.setBackground(parent.getBackground());
	form = toolkit.createScrolledForm(parent);
	mform = new ManagedForm(toolkit, form);
	mform.getForm().setDelayedReflow(false);
	
	outerContainer = mform.getForm().getBody();
	TableWrapLayout layout = new TableWrapLayout();
	layout.numColumns = 1;
	outerContainer.setLayout(layout);
	
	refreshPage(false, false);
	
	setControl(form);
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:17,代码来源:MergeWizardBestPracticesPage.java


示例2: createPartControl

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
@Override
public void createPartControl(Composite parent) {

	mform = new ManagedForm(parent);
	FormToolkit toolkit = getFormToolkit(parent.getDisplay());

	sform = mform.getForm();
	sform.getForm().setText(Messages.COMMONTXT_APPLICATIONS);
	toolkit.decorateFormHeading(sform.getForm());

	cloudServer = (CloudFoundryServer) getServer().getOriginal().loadAdapter(CloudFoundryServer.class, null);

	masterDetailsBlock = new ApplicationMasterDetailsBlock(this, cloudServer);
	masterDetailsBlock.createContent(mform);

	sform.getForm().setImage(CloudFoundryImages.getImage(CloudFoundryImages.OBJ_APPLICATION));
	refresh(RefreshArea.MASTER);

	serverListener = new ServerListener();
	addCloudServerListener(serverListener);
	getServer().getOriginal().addServerListener(serverListener);
}
 
开发者ID:eclipse,项目名称:cft,代码行数:23,代码来源:CloudFoundryApplicationsEditorPage.java


示例3: createPartControl

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
@Override
public void createPartControl(Composite parent) {

	mform = new ManagedForm(parent);
	FormToolkit toolkit = getFormToolkit(parent.getDisplay());

	sform = mform.getForm();
	sform.getForm().setText(Messages.COMMONTXT_APPLICATIONS);
	toolkit.decorateFormHeading(sform.getForm());

	cloudServer = (DockerFoundryServer) getServer().getOriginal().loadAdapter(DockerFoundryServer.class, null);

	masterDetailsBlock = new ApplicationMasterDetailsBlock(this, cloudServer);
	masterDetailsBlock.createContent(mform);

	sform.getForm().setImage(DockerFoundryImages.getImage(DockerFoundryImages.OBJ_APPLICATION));
	refresh(RefreshArea.MASTER);

	serverListener = new ServerListener();
	addCloudServerListener(serverListener);
	getServer().getOriginal().addServerListener(serverListener);
}
 
开发者ID:osswangxining,项目名称:dockerfoundry,代码行数:23,代码来源:DockerFoundryApplicationsEditorPage.java


示例4: ResolveVisualizerForm

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
public ResolveVisualizerForm(Composite parent, FormToolkit toolkit, ResolveVisualizerView view) {
    this.toolkit = toolkit;
    this.view = view;
    form = this.toolkit.createScrolledForm(parent);
    managedForm = new ManagedForm(this.toolkit, this.form);
    createHeaderRegion(form);
    FillLayout layout = new FillLayout();
    layout.marginHeight = 10;
    layout.marginWidth = 4;
    form.getBody().setLayout(layout);

    this.toolkit.decorateFormHeading(this.form.getForm());
    createSash(form.getBody());

    view.getContentProvider().addFilter(depthFilter);
    view.getContentProvider().addFilter(evictionFilter);
}
 
开发者ID:apache,项目名称:ant-ivyde,代码行数:18,代码来源:ResolveVisualizerForm.java


示例5: createPartControl

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
@Override
public void createPartControl(Composite parent) {
    tk = new FormToolkit(parent.getDisplay());

    Composite formWrapper = tk.createComposite(parent);
    GridLayout gl = new GridLayout();
    formWrapper.setLayout(gl);

    form = tk.createScrolledForm(formWrapper);
    form.setText("Style Editor");
    form.setLayoutData(new GridData(GridData.FILL_BOTH));

    gl = new GridLayout();
    form.getBody().setLayout(gl);

    Section section = tk.createSection(form.getBody(), Section.TITLE_BAR);
    section.setText("Colors");
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    StyleDefinition def = loadData(parent.getDisplay());

    ManagedForm managedForm = new ManagedForm(tk, form);
    resourceManager = new LocalResourceManager(JFaceResources.getResources());
    new ThemeColorBlock(def, parent.getDisplay(), resourceManager).createContent(managedForm);

    ManagedForm fontsMForm = new ManagedForm(tk, form);
    section = tk.createSection(form.getBody(), Section.TITLE_BAR);
    section.setText("Fonts");
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    new ThemeColorBlock(def, parent.getDisplay(), resourceManager).createContent(fontsMForm);
}
 
开发者ID:yamcs,项目名称:yamcs-studio,代码行数:32,代码来源:StyleEditor.java


示例6: addTitle

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
private void addTitle(String title) {
	ManagedForm mForm = new ManagedForm(toolkit, form);
	mForm.addPart(new TitleFormPart());
	mForm.setInput(title);
	
   	// PageBook.showPage() should do this for us. This was causing SPF-785.
       // form.setVisible(true);
	
   	form.reflow(true);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:11,代码来源:DetailPage.java


示例7: getManagedForm

import org.eclipse.ui.forms.ManagedForm; //导入依赖的package包/类
public ManagedForm getManagedForm() {
    return managedForm;
}
 
开发者ID:apache,项目名称:ant-ivyde,代码行数:4,代码来源:ResolveVisualizerForm.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java YarnServerResourceManagerServiceProtos类代码示例发布时间:2022-05-23
下一篇:
Java BlockPlacementPolicyWithNodeGroup类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap