本文整理汇总了Java中org.eclipse.ui.forms.IDetailsPage类的典型用法代码示例。如果您正苦于以下问题:Java IDetailsPage类的具体用法?Java IDetailsPage怎么用?Java IDetailsPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDetailsPage类属于org.eclipse.ui.forms包,在下文中一共展示了IDetailsPage类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getPage
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
@Override
public IDetailsPage getPage(Object key) {
if(key instanceof hmm.automation.models.Class)
return new ClassPage(automationBlock);
if(key instanceof Click)
return new ClickPage(automationBlock);
if(key instanceof Else)
return new ElsePage(automationBlock);
if(key instanceof Find)
return new FindPage(automationBlock);
if(key instanceof If)
return new IfPage(automationBlock);
if(key instanceof Input)
return new InputPage(automationBlock);
if(key instanceof Loop)
return new LoopPage(automationBlock);
if(key instanceof Navigate)
return new NavigatePage(automationBlock);
if(key instanceof Print)
return new PrintPage(automationBlock);
if(key instanceof Select)
return new SelectPage(automationBlock);
if(key instanceof Set)
return new SetPage(automationBlock);
if(key instanceof Submit)
return new SubmitPage(automationBlock);
if(key instanceof Switch)
return new SwitchPage(automationBlock);
if(key instanceof Text)
return new TextPage(automationBlock);
if(key instanceof Variable)
return new VariablePage(automationBlock);
if(key instanceof Wait)
return new WaitPage(automationBlock);
return null;
}
开发者ID:AlexWengh,项目名称:HMM,代码行数:37,代码来源:AutomationPageProvider.java
示例2: createHeaders
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
public static Composite createHeaders(AutomationBlock automationBlock, IDetailsPage page, FormToolkit toolkit,
Composite parent, String sectionText, String sectionDescription) {
TableWrapLayout twlayout = new TableWrapLayout();
twlayout.topMargin = 5;
twlayout.leftMargin = 5;
twlayout.rightMargin = 2;
twlayout.bottomMargin = 2;
parent.setLayout(twlayout);
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP);
td.grabHorizontal = true;
section.setLayoutData(td);
section.marginWidth = 10;
section.setText(sectionText);
section.setDescription(sectionDescription);
automationBlock.addPageSection(page, section);
Composite client = toolkit.createComposite(section);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginWidth = 5;
layout.marginHeight = 10;
client.setLayout(layout);
client.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
toolkit.paintBordersFor(client);
section.setClient(client);
return client;
}
开发者ID:AlexWengh,项目名称:HMM,代码行数:31,代码来源:PageUtil.java
示例3: getPage
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
public IDetailsPage getPage(Object key) {
return getDetailsPage();
}
开发者ID:eclipse,项目名称:cft,代码行数:4,代码来源:ApplicationMasterDetailsBlock.java
示例4: setShowingPage
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
public void setShowingPage(IDetailsPage page) {
this.showingPage = page;
}
开发者ID:AlexWengh,项目名称:HMM,代码行数:4,代码来源:AutomationBlock.java
示例5: getShowingPage
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
public IDetailsPage getShowingPage() {
return showingPage;
}
开发者ID:AlexWengh,项目名称:HMM,代码行数:4,代码来源:AutomationBlock.java
示例6: addPageSection
import org.eclipse.ui.forms.IDetailsPage; //导入依赖的package包/类
public void addPageSection(IDetailsPage page, Section section) {
pageSectionMap.put(page, section);
}
开发者ID:AlexWengh,项目名称:HMM,代码行数:4,代码来源:AutomationBlock.java
注:本文中的org.eclipse.ui.forms.IDetailsPage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论