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


Java ScrolledForm.getForm方法代碼示例

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


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

示例1: updateTitle

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

        M model = getModel();
        if (model == null) {
            return;
        }

        setPartName(getPartName(model));
        setTitleToolTip(getTitleToolTip(model));
        setTitleImage(getTitleImage(model));

        IManagedForm headerForm = getHeaderForm();

        if (headerForm != null) {
            ScrolledForm scrolledForm = headerForm.getForm();
            Form form = scrolledForm.getForm();
            form.setText(getFormText(model));
            form.setImage(getFormImage(model));
        }
    }
 
開發者ID:baloise,項目名稱:eZooKeeper,代碼行數:21,代碼來源:DataModelFormEditor.java

示例2: 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

示例3: createFigure

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
 * @generated
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
	ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
	Form form = scrolledForm.getForm();
	view = form.getBody();
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	view.setLayout(layout);
	createControls(widgetFactory, view);
	return scrolledForm;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:18,代碼來源:DelayPropertiesEditionPartForm.java

示例4: createFigure

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
 * 
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
	ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
	Form form = scrolledForm.getForm();
	view = form.getBody();
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	view.setLayout(layout);
	createControls(widgetFactory, view);
	return scrolledForm;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:18,代碼來源:OtherPropertiesEditionPartForm.java

示例5: createFigure

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *      createFigure(org.eclipse.swt.widgets.Composite,
 *      org.eclipse.ui.forms.widgets.FormToolkit)
 * 
 */
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
	ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
	Form form = scrolledForm.getForm();
	view = form.getBody();
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	view.setLayout(layout);
	createControls(widgetFactory, view);
	return scrolledForm;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:19,代碼來源:OtherPropertiesEditionPartForm.java

示例6: populateTitleComposite

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void populateTitleComposite(FormToolkit toolkit, ScrolledForm sform, Composite titleComposite) {
	imageLabel = toolkit.createLabel(titleComposite, "");
	Form form = sform.getForm();
	textLabel = toolkit.createLabel(titleComposite, "");
	textLabel.setFont(form.getFont());
	textLabel.setForeground(form.getForeground());
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:8,代碼來源:EMFTitleFormPart.java

示例7: populateTitleComposite

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void populateTitleComposite(FormToolkit toolkit, ScrolledForm sform, Composite titleComposite) {
	imageLabel = toolkit.createLabel(titleComposite, "");
	
	Form form = sform.getForm();
	textLabel = toolkit.createLabel(titleComposite, "");
	textLabel.setFont(form.getFont());
	textLabel.setForeground(form.getForeground());
	
	lockedLabel = toolkit.createLabel(titleComposite, "");
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:11,代碼來源:TitleFormPart.java


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