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


Java ScrolledForm.reflow方法代碼示例

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


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

示例1: setInput

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
public boolean setInput(Object input) {
	ColumnLayout layout = new ColumnLayout();
	layout.topMargin = 0;
	layout.bottomMargin = 0;
	layout.verticalSpacing = 0;
	layout.maxNumColumns = 4;
	body.setLayout(layout);
	if (!(input instanceof EObject)) {
		return false;
	}
	FormToolkit toolkit = getToolkit();
	EObject object = (EObject) input;
	List<IFormPart> formParts = EMFDetailFormPart.getFormParts(toolkit, object, true, selectionProvider);
	for (IFormPart formPart : formParts) {
		addPart(formPart);
	}
	boolean result = super.setInput(input);
	ScrolledForm form = getForm();
	form.reflow(true);
	form.setOrigin(0, 0);
	checkParts(layout, formParts, input);
	return result;
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:25,代碼來源:EMFDetailSheet.java

示例2: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	FormToolkit toolkit = managedForm.getToolkit();
	ScrolledForm form = UI.formHeader(this, Labels.getDisplayName(setup.productSystem), Images.get(result));
	Composite body = UI.formBody(form, toolkit);
	Composite composite = toolkit.createComposite(body);
	UI.gridLayout(composite, 2);
	ResultTypeSelection selector = ResultTypeSelection
			.on(result, Cache.getEntityCache())
			.withEventHandler(new SelectionHandler())
			.create(composite, toolkit);
	Composite treeContainer = toolkit.createComposite(body);
	UI.gridLayout(treeContainer, 1);
	UI.gridData(treeContainer, true, true);
	createTree(toolkit, treeContainer);
	form.reflow(true);
	selector.selectWithEvent(selection);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:19,代碼來源:ContributionTreePage.java

示例3: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	ScrolledForm form = UI.formHeader(this);
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	try {
		createGlobalParamterSection(body);
		ParameterSection.forInputParameters(editor, support, body, toolkit,
				sourceHandler).setSupplier(supplier, scope);
		ParameterSection.forDependentParameters(editor, support, body,
				toolkit).setSupplier(supplier, scope);
		body.setFocus();
		form.reflow(true);
	} catch (Exception e) {
		log.error("failed to create parameter tables", e);
	}
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:18,代碼來源:ModelParameterPage.java

示例4: createToolBarActions

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void createToolBarActions(IManagedForm managedForm) {
    final ScrolledForm form = managedForm.getForm();
    Action haction = new Action("hor", Action.AS_RADIO_BUTTON) { //$NON-NLS-1$

        public void run() {
            sashForm.setOrientation(SWT.HORIZONTAL);
            form.reflow(true);
        }
    };
    haction.setChecked(true);
    haction.setToolTipText(Messages.getString("NamespaceDetailsBlock.horizontal")); //$NON-NLS-1$
    haction.setImageDescriptor(StudioUIEditorPlugin.getDefault().getImageRegistry().getDescriptor(StudioUIEditorPlugin.IMG_HORIZONTAL));
    Action vaction = new Action("ver", Action.AS_RADIO_BUTTON) { //$NON-NLS-1$

        public void run() {
            sashForm.setOrientation(SWT.VERTICAL);
            form.reflow(true);
        }
    };
    vaction.setChecked(false);
    vaction.setToolTipText(Messages.getString("NamespaceDetailsBlock.vertical")); //$NON-NLS-1$
    vaction.setImageDescriptor(StudioUIEditorPlugin.getDefault().getImageRegistry().getDescriptor(StudioUIEditorPlugin.IMG_VERTICAL));
    form.getToolBarManager().add(haction);
    form.getToolBarManager().add(vaction);
}
 
開發者ID:mulesoft,項目名稱:mule-tooling-incubator,代碼行數:26,代碼來源:NamespaceDetailsBlock.java

示例5: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(this, Labels.getDisplayName(setup.productSystem), Images.get(result));
	tk = mform.getToolkit();
	Composite body = UI.formBody(form, tk);
	InfoSection.create(body, tk, setup, "Analysis result");
	resultSections(body);
	if (dqResult != null) {
		new DQInfoSection(body, tk, result, dqResult);
	}
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:13,代碼來源:AnalyzeInfoPage.java

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

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

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

示例9: createFormContent

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

示例10: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mform) {
	ScrolledForm form = UI.formHeader(mform, M.LibraryDataSets);
	FormToolkit toolkit = mform.getToolkit();
	Composite body = form.getBody();
	body.setLayout(new GridLayout());
	toolkit.paintBordersFor(body);
	UI.gridData(body, true, true);
	String description = M.RecognizedLibraryDatasetsDescription;
	Label label = toolkit.createLabel(body, description, SWT.WRAP);
	UI.gridData(label, true, false).widthHint = 750;
	LibraryResultViewer viewer = new LibraryResultViewer(body);
	form.reflow(true);
	viewer.setInput(libraryMappings.entrySet());
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:16,代碼來源:LibraryResultDialog.java

示例11: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	FormToolkit toolkit = managedForm.getToolkit();
	ScrolledForm form = UI
			.formHeader(managedForm, "openLCA Plugin Manager");
	Composite body = form.getBody();
	body.getParent().getParent().setLayout(createNoSpacingLayout());
	body.getParent().setLayout(createNoSpacingLayout());
	body.setLayout(new FillLayout());
	toolkit.paintBordersFor(body);
	UI.createWebView(body, this);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:14,代碼來源:PluginManager.java

示例12: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	if (model == null)
		return;
	ScrolledForm form = UI.formHeader(managedForm, M.UsageOf
			+ ": " + Labels.getDisplayName(model));
	FormToolkit toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	body.setLayout(new FillLayout());
	UI.createWebView(body, this);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:13,代碼來源:UsageView.java

示例13: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	ScrolledForm form = UI.formHeader(this, Labels.getDisplayName(setup.productSystem), Images.get(result));
	toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	Section section = UI.section(body, toolkit, M.ImpactAnalysis);
	UI.gridData(section, true, true);
	Composite client = toolkit.createComposite(section);
	section.setClient(client);
	UI.gridLayout(client, 1);
	createOptions(client);
	createTree(client);
	spinner.register(viewer);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:16,代碼來源:TotalImpactResultPage.java

示例14: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm mForm) {
	String title = getTitle();
	Image image = null;
	if (model != null) {
		title += ": " + model.getName();
		image = Images.get(model);
	}
	ScrolledForm form = UI.formHeader(mForm, title, image);
	Composite body = UI.formBody(form, mForm.getToolkit());
	body.setLayout(new FillLayout());
	UI.createWebView(body, this);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:15,代碼來源:CommentsPage.java

示例15: createFormContent

import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
@Override
protected void createFormContent(IManagedForm managedForm) {
	ScrolledForm form = UI.formHeader(this);
	FormToolkit toolkit = managedForm.getToolkit();
	Composite body = UI.formBody(form, toolkit);
	body.setLayout(new FillLayout());
	UI.createWebView(body, this);
	form.reflow(true);
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:10,代碼來源:StatisticsPage.java


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