當前位置: 首頁>>代碼示例>>Java>>正文


Java ScrolledForm.getBody方法代碼示例

本文整理匯總了Java中org.eclipse.ui.forms.widgets.ScrolledForm.getBody方法的典型用法代碼示例。如果您正苦於以下問題:Java ScrolledForm.getBody方法的具體用法?Java ScrolledForm.getBody怎麽用?Java ScrolledForm.getBody使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.forms.widgets.ScrolledForm的用法示例。


在下文中一共展示了ScrolledForm.getBody方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的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

示例2: createPartControl

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
 * Create contents of the editor part.
 * @param parent
 */
@Override
public void createPartControl(Composite parent) {
	
	FormToolkit toolkit = new FormToolkit(parent.getDisplay());
    ScrolledForm form = toolkit.createScrolledForm(parent);
    form.setText("Main");
    FillLayout fillLayout = new FillLayout(SWT.HORIZONTAL);
    fillLayout.spacing = 15;
    form.getBody().setLayout(fillLayout);
    
    Composite leftComposite = toolkit.createComposite(form.getBody(), SWT.NONE);
    toolkit.paintBordersFor(leftComposite);
    FillLayout fl_leftComposite = new FillLayout(SWT.VERTICAL);
    fl_leftComposite.spacing = 10;
    leftComposite.setLayout(fl_leftComposite);
    
    Composite rightComposite = new Composite(form.getBody(), SWT.NONE);
    toolkit.adapt(rightComposite);
    toolkit.paintBordersFor(rightComposite);
    FillLayout fl_rightComposite = new FillLayout(SWT.VERTICAL);
    fl_rightComposite.spacing = 10;
    rightComposite.setLayout(fl_rightComposite);
    
}
 
開發者ID:CloudScale-Project,項目名稱:Environment,代碼行數:29,代碼來源:OverviewEditor.java

示例3: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	String title = M.Diff;
	if (this.title != null)
		title += ": " + this.title;
	ScrolledForm form = UI.formHeader(mform, title);
	if (logo != null)
		form.setImage(logo);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = form.getBody();
	UI.gridLayout(body, 1, 0, 0);
	toolkit.paintBordersFor(body);
	UI.gridData(body, true, true);
	if (editMode)
		editor = DiffEditor.forEditing(body, toolkit);
	else
		editor = DiffEditor.forViewing(body, toolkit);
	editor.initialize(root, labelProvider, dependencyResolver, direction);
	UI.gridData(editor, true, true);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:22,代碼來源:DiffEditorDialog.java

示例4: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	ScrolledForm form = managedForm.getForm();
	form.setText(getTitle());
	form.setImage(MuleImages.GLOBALS_TITLE_IMAGE);
	
	
	//configure the layout of the form
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	layout.makeColumnsEqualWidth = true;
	
	GridData configData = new GridData(GridData.FILL_BOTH);
	configData.horizontalSpan = 2;
	
	//to be fixed
	form.getBody().setLayout(layout);
	
	projectsPart = new DomainProjectsSectionPart(form.getBody(), managedForm.getToolkit(), model.getModules(), model.getProject());
	projectsPart.getSection().setLayoutData(new GridData(GridData.FILL_BOTH));
}
 
開發者ID:mulesoft,項目名稱:mule-tooling-incubator,代碼行數:22,代碼來源:GradleDomainSettingsEditor.java

示例5: createForm

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
private Composite createForm(Composite parent) {
	FormToolkit toolkit = new FormToolkit(Display.getCurrent());
	ScrolledForm form = toolkit.createScrolledForm(parent);
	Composite body = form.getBody();
	body.setLayout(new FillLayout());
	toolkit.paintBordersFor(body);
	SashForm sash = new SashForm(body, SWT.VERTICAL);
	toolkit.adapt(sash, true, true);
	Section section = toolkit.createSection(sash,
			ExpandableComposite.NO_TITLE | ExpandableComposite.EXPANDED);
	section.setText("");
	Composite composite = toolkit.createComposite(section, SWT.NONE);
	composite.setLayout(new GridLayout());
	section.setClient(composite);
	toolkit.paintBordersFor(composite);
	return composite;
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:18,代碼來源:SankeyMiniViewAction.java

示例6: forceLayout

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void forceLayout() {
    ScrolledForm form = getManagedForm().getForm();
    Composite body = form.getBody();
    body.layout(true);
    Composite client = getClient();
    if (client != null) {
        client.layout(true);
    }
}
 
開發者ID:baloise,項目名稱:eZooKeeper,代碼行數:10,代碼來源:DataModelFormPage.java

示例7: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	FormToolkit toolkit = managedForm.getToolkit();
	ScrolledForm form = managedForm.getForm();
	form.setText("Description");
	Composite body = form.getBody();
	toolkit.decorateFormHeading(form.getForm());
	toolkit.paintBordersFor(body);		
	
	body.setLayout(new FillLayout());

	DescriptionSection detailsSection = new DescriptionSection(managedForm.getForm().getBody(), toolkit, Section.NO_TITLE, site);
	detailsSection.setFormInput(solution);
			
}
 
開發者ID:Itema-as,項目名稱:dawn-marketplace-server,代碼行數:16,代碼來源:DescriptionPage.java

示例8: initialize

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
	public void initialize(IManagedForm mform) {
		super.initialize(mform);
		FormToolkit toolkit = mform.getToolkit();
		ScrolledForm sform = mform.getForm();
		Composite body = sform.getBody();
		titleComposite = toolkit.createComposite(body);
		titleComposite.setLayout(new GridLayout(3, false));
//        titleComposite.setLayoutData(new ColumnLayoutData());
        populateTitleComposite(toolkit, sform, titleComposite);
	}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:12,代碼來源:EMFTitleFormPart.java

示例9: createFormComposite

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
static public Composite createFormComposite(ScrolledForm scrolledForm) {
    Composite formatComposite = scrolledForm.getBody();

    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    gridLayout.makeColumnsEqualWidth = false;
    gridLayout.horizontalSpacing = 30;
    gridLayout.verticalSpacing = 7;
    gridLayout.marginWidth = 14;
    gridLayout.marginHeight = 14;

    formatComposite.setLayout(gridLayout);
    formatComposite.setBackground(scrolledForm.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
    return formatComposite;
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:16,代碼來源:XSPEditorUtil.java

示例10: createPartControl

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
public void createPartControl(final Composite parent) {
//FormToolkit formToolkit = new FormToolkit(Display.getCurrent());
formToolkit = new FormToolkit(Display.getCurrent());
ScrolledForm scrolledForm = formToolkit.createScrolledForm(parent);		
Composite body = scrolledForm.getBody();
body.setLayout(AlignFormLayoutFactory.createFormTableWrapLayout(false,1));
composite = formToolkit.createComposite(body);
composite.setLayout(AlignFormLayoutFactory.createFormPaneTableWrapLayout(false, 1));
composite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
		
createOntologyChoosePart(composite, formToolkit);		
createAlignmentPart(composite, formToolkit);
		 
// JE: This should be in constructor!
IWorkspaceRoot root =  org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
IPath location = root.getLocation();
String  path = location.toOSString();
	     
//ontoFolder = new File(path + location.SEPARATOR + "onto");
ontoFolder = new File(path + location.SEPARATOR + "align");
if (!ontoFolder.exists()) ontoFolder.mkdir();

alignFolder = new File(path + location.SEPARATOR + "align");
if (!alignFolder.exists()) alignFolder.mkdir();
	    
offlineInit( true );
   }
 
開發者ID:dozed,項目名稱:align-api-project,代碼行數:29,代碼來源:AlignView.java

示例11: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void createFormContent(IManagedForm managedForm) {

		super.createFormContent(managedForm);
		ScrolledForm form = managedForm.getForm();

      // compose page heading
      StringBuffer heading = new StringBuffer();
      heading.append(DesignPatternPlugin.getResourceString(PAGE_HEADING));
      heading.append(": ");
      if (fModel != null) {
          heading.append(fModel.getDesignPatternName());    	  
      }

      // set page heading
		form.setText(heading.toString());

		Composite body = form.getBody();
		GridLayout layout = new GridLayout();
		layout.numColumns = 1;
		layout.makeColumnsEqualWidth = true;
		layout.marginWidth = 10;
		layout.verticalSpacing = 20;
		layout.horizontalSpacing = 10;
		body.setLayout(layout);

		fSectParticipants = new SectPatternParticipants(this, body);
		fSectParticipants.getSection().setLayoutData(new GridData(GridData.FILL_BOTH));
		managedForm.addPart(fSectParticipants);

	}
 
開發者ID:patternbox,項目名稱:patternbox-eclipse,代碼行數:31,代碼來源:ParticipantPage.java

示例12: createComponents

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
public void createComponents(FallDTO fallDTO){
	this.setBackground(UiDesk.getColor(UiDesk.COL_WHITE));
	FormToolkit tk = UiDesk.getToolkit();
	ScrolledForm form = tk.createScrolledForm(this);
	form.setBackground(UiDesk.getColor(UiDesk.COL_WHITE));
	form.setLayoutData(SWTHelper.getFillGridData(1, true, 1, false));
	Composite body = form.getBody();
	GridLayout gd1 = new GridLayout();
	gd1.marginWidth = 0;
	gd1.marginHeight = 0;
	body.setLayout(gd1);
	ExpandableComposite expandable = WidgetFactory.createExpandableComposite(tk, form, ""); //$NON-NLS-1$
	expandable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	expandable.setExpanded(false);
	expandable.setText("Fallangaben");
	expandable.addExpansionListener(new ExpansionAdapter() {
		
		@Override
		public void expansionStateChanged(ExpansionEvent e){
			invoiceComposite.updateScrollBars();
		}
	});
	Composite group = tk.createComposite(expandable, SWT.NONE);
	GridLayout gd = new GridLayout(2, false);
	gd.marginWidth = 0;
	gd.marginHeight = 0;
	group.setLayout(gd);
	group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	expandable.setClient(group);
	
	fallDetailBlatt2 = new FallDetailBlatt2(group, fallDTO, true);
	GridData gd2 = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
	gd2.heightHint = 340;
	fallDetailBlatt2.setLayoutData(gd2);
}
 
開發者ID:elexis,項目名稱:elexis-3-core,代碼行數:36,代碼來源:InvoiceCorrectionView.java

示例13: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(mform, M.CommitChangesToRepository);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = form.getBody();
	body.setLayout(new GridLayout());
	toolkit.paintBordersFor(body);
	UI.gridData(body, true, true);
	createCommitMessage(body, toolkit);
	createModelViewer(body, toolkit);
	form.reflow(true);
	viewer.setInput(Collections.singleton(node));
	viewer.setInitialSelection(initialSelection);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:15,代碼來源:CommitDialog.java

示例14: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(mform, M.Diff);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = form.getBody();
	body.setLayout(new GridLayout());
	toolkit.paintBordersFor(body);
	UI.gridData(body, true, true);
	viewer = new FetchDiffViewer(body, loader);
	form.reflow(true);
	viewer.setInput(Collections.singletonList(rootNode));
	viewer.setOnMerge(() -> getButton(OK)
			.setEnabled(!viewer.hasConflicts()));
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:15,代碼來源:DiffDialog.java

示例15: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(mform, M.ChangesToBeFetched);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = form.getBody();
	body.setLayout(new GridLayout());
	toolkit.paintBordersFor(body);
	UI.gridData(body, true, true);
	CommitEntryViewer viewer = new CommitEntryViewer(body, client);
	form.reflow(true);
	viewer.setInput(commits);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:13,代碼來源:CommitEntryDialog.java


注:本文中的org.eclipse.ui.forms.widgets.ScrolledForm.getBody方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。