Java 类org.eclipse.ui.forms.IDetailsPage 实例源码

项目:HMM    文件:AutomationPageProvider.java   
@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;
}
项目:HMM    文件:PageUtil.java   
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;
}
项目:cft    文件:ApplicationMasterDetailsBlock.java   
public IDetailsPage getPage(Object key) {
    return getDetailsPage();
}
项目:dockerfoundry    文件:ApplicationMasterDetailsBlock.java   
public IDetailsPage getPage(Object key) {
    return getDetailsPage();
}
项目:HMM    文件:AutomationBlock.java   
public void setShowingPage(IDetailsPage page) {
    this.showingPage = page;
}
项目:HMM    文件:AutomationBlock.java   
public IDetailsPage getShowingPage() {
    return showingPage;
}
项目:HMM    文件:AutomationBlock.java   
public void addPageSection(IDetailsPage page, Section section) {
    pageSectionMap.put(page, section);
}