当前位置: 首页>>代码示例>>Java>>正文


Java IManagedForm类代码示例

本文整理汇总了Java中org.eclipse.ui.forms.IManagedForm的典型用法代码示例。如果您正苦于以下问题:Java IManagedForm类的具体用法?Java IManagedForm怎么用?Java IManagedForm使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IManagedForm类属于org.eclipse.ui.forms包,在下文中一共展示了IManagedForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addImageHyperlinkToolBarContribution

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
protected void addImageHyperlinkToolBarContribution(final IManagedForm headerForm,
        final IToolBarManager toolBarManager, final BaseControlContribution baseControlContribution,
        final DataModel<?, ?, ?> model) {

    final Separator separator = new Separator();
    toolBarManager.add(separator);
    toolBarManager.add(baseControlContribution);

    baseControlContribution.addControlDisposeListener(new DisposeListener() {

        @Override
        public void widgetDisposed(DisposeEvent e) {

            if (!model.isDestroyed()) {
                // Only do this clean up when the model destruction caused the widget disposal
                // WARNING: toolBarManager.update(true); throws a NullPointer if called during app exit.
                return;
            }

            toolBarManager.remove(separator);
            separator.dispose();
            toolBarManager.remove(baseControlContribution);
            toolBarManager.update(true);
        }
    });
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:27,代码来源:DataModelFormEditor.java

示例2: createHeaderContents

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createHeaderContents(IManagedForm headerForm) {
    super.createHeaderContents(headerForm);

    FormToolkit toolkit = headerForm.getToolkit();
    ScrolledForm scrolledForm = headerForm.getForm();
    Form form = scrolledForm.getForm();
    toolkit.decorateFormHeading(form);

    updateTitle();
    makeActions();

    IToolBarManager toolBarManager = form.getToolBarManager();
    contributeToToolBar(headerForm, toolBarManager);
    toolBarManager.update(true);

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:18,代码来源:DataModelFormEditor.java

示例3: modelDestroyed

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
protected void modelDestroyed(GenericDataModelEvent event) {
    if (getContainer().isDisposed()) {
        return;
    }

    updateTitle();
    editorDirtyStateChanged();

    String modelDestroyedMessage = getModelDestroyedMessage();
    if (modelDestroyedMessage != null) {
        IManagedForm headerForm = getHeaderForm();
        ScrolledForm scrolledForm = headerForm.getForm();
        Form form = scrolledForm.getForm();
        form.setMessage(modelDestroyedMessage, IMessageProvider.ERROR);
    }

    for (DataModelFormPage<M> page : _Pages) {
        page.modelDestroyed(event);
    }

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:22,代码来源:DataModelFormEditor.java

示例4: updateTitle

import org.eclipse.ui.forms.IManagedForm; //导入依赖的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

示例5: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    final ScrolledForm form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();

    _EditSection = createEditSection(form, client, toolkit);
    GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _EditSection.setLayoutData(editSectionGridData);

    _PropertiesSection = createPropertiesTableSection(form, client, toolkit);
    GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _PropertiesSection.setLayoutData(propertiesSectionGridData);

    _ZnodeSection = createZnodeSection(form, client, toolkit);
    GridData znodeSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _ZnodeSection.setLayoutData(znodeSectionGridData);

    Table propertiesSectionTable = getPropertiesSectionTable();
    initTableEdit(propertiesSectionTable, null, 1);
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:21,代码来源:ZooKeeperConnectionModelMainFormPage.java

示例6: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    final ScrolledForm form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();

    _EditSection = createEditSection(form, client, toolkit);
    GridData editSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _EditSection.setLayoutData(editSectionGridData);

    _PropertiesSection = createPropertiesTableSection(form, client, toolkit);
    GridData propertiesSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
    _PropertiesSection.setLayoutData(propertiesSectionGridData);

    Table propertiesSectionTable = getPropertiesSectionTable();
    initTableEdit(propertiesSectionTable, null, 1);
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:17,代码来源:JmxConnectionModelMainFormPage.java

示例7: createModelFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
    FormToolkit toolkit = managedForm.getToolkit();

    _ScrolledFormText = new ScrolledFormText(client, false);
    _ScrolledFormText.setExpandHorizontal(true);
    toolkit.adapt(_ScrolledFormText, false, false);
    _JmxDocFormText = toolkit.createFormText(_ScrolledFormText, true);
    _ScrolledFormText.setFormText(_JmxDocFormText);
    JmxDocFormText.initFormText(_JmxDocFormText);

    FormData scrolledFormTextFormData = new FormData();
    scrolledFormTextFormData.top = new FormAttachment(0, 0);
    scrolledFormTextFormData.left = new FormAttachment(0, 0);
    scrolledFormTextFormData.right = new FormAttachment(100, 0);
    scrolledFormTextFormData.bottom = new FormAttachment(100, 0);
    _ScrolledFormText.setLayoutData(scrolledFormTextFormData);

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:20,代码来源:MBeanModelJmxDocFormPage.java

示例8: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createFormContent(IManagedForm managedForm) {
	FormToolkit toolkit=managedForm.getToolkit();
	ScrolledForm form=managedForm.getForm();
	form.setText("流程模版导出与部署");
	ColumnLayout layout=new ColumnLayout();
	layout.topMargin=0;
	layout.bottomMargin=0;
	layout.leftMargin=0;
	layout.rightMargin=0;
	layout.maxNumColumns=1;
	layout.horizontalSpacing=5;
	layout.verticalSpacing=5;
	form.getBody().setLayout(layout);
	this.createExportSection(toolkit, form);
	this.createOnlineDeploymentSection(toolkit, form);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:18,代码来源:DeploymentPage.java

示例9: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的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

示例10: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createFormContent(IManagedForm managedForm) {
	final ScrolledForm form = managedForm.getForm();
	FormToolkit toolkit = managedForm.getToolkit();
	toolkit.decorateFormHeading(form.getForm());

	IToolBarManager manager = form.getToolBarManager();
	if (contributeToToolbar(manager)) {
		form.updateToolBar();
	}
	String titleText = getFormTitleText();
	if (titleText != null) {
		form.setText(titleText);
	}
	Image titleImage = getFormTitleImage();
	if (titleImage != null) {
		form.setImage(titleImage);
	}
	toolkit.decorateFormHeading(form.getForm());
	createUI(managedForm);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:22,代码来源:AbstractFormPage.java

示例11: commitFormPages

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
/**
 * 모든 폼 페이지의 변경사항을 모델에 반영
 * 
 * void
 */
protected void commitFormPages() {
    IFormPage[] pages = getFormPages();
    IFormPage page = null;
    IManagedForm managedForm = null;

    for (int i = 0; i < pages.length; i++) {
        page = pages[i];
        managedForm = page.getManagedForm();

        if (managedForm != null && managedForm.isDirty()) {
            managedForm.commit(true);

            // managedForm.refresh();
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:22,代码来源:AbstractMultiPageFormEditor.java

示例12: ApplicationMasterPart

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
public ApplicationMasterPart(DockerFoundryApplicationsEditorPage editorPage, IManagedForm managedForm,
			Composite parent, DockerFoundryServer cloudServer) {
		super(parent, managedForm.getToolkit(), Section.TITLE_BAR | Section.DESCRIPTION);
		this.editorPage = editorPage;
		this.cloudServer = cloudServer;
		this.toolkit = managedForm.getToolkit();
//		this.provideServices = CloudFoundryBrandingExtensionPoint.getProvideServices(editorPage.getServer()
//				.getServerType().getId());
		
		String linksAsString = this.cloudServer.getDockerContainerLinks();
		if(linksAsString != null && linksAsString.length() >0){
			StringTokenizer st = new StringTokenizer(linksAsString, ",");
			if(st != null){
				while (st.hasMoreTokens()) {
					String token = st.nextToken();
					String[] s = token.split(":");
					DockerApplicationService service = new DockerApplicationService();
					service.setName(s[0]);
					service.setLinkName(s[1]);
					services.add(service);
				}
			}
		}
	}
 
开发者ID:osswangxining,项目名称:dockerfoundry,代码行数:25,代码来源:ApplicationMasterPart.java

示例13: initialize

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
/**
 * @see org.eclipse.ui.forms.AbstractFormPart#initialize(org.eclipse.ui.forms.IManagedForm)
 */
public void initialize(IManagedForm form) {
    // Pre-condition
    assert tableViewer != null;

    // Installs several listeners.
    tableViewerSelectionListener = new MyTableSelectionListener();

    tableViewer.addPostSelectionChangedListener(tableViewerSelectionListener);
    tableViewer.addDoubleClickListener(new MyDoubleClickListener());

    // Installs the actions
    goBack.setImageDescriptor(
            PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
    goForward.setImageDescriptor(
            PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
    form.getForm().getToolBarManager().add(goBack);
    form.getForm().getToolBarManager().add(goForward);
    goBack.selectionChanged(new NavigableSelection());
    goForward.selectionChanged(new NavigableSelection());

    // Default job done by super class.
    super.initialize(form);
}
 
开发者ID:anb0s,项目名称:eclox,代码行数:27,代码来源:MasterPart.java

示例14: createControls

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
/**
 * @see eclox.ui.editor.advanced.filters.IFilter#createControls(org.eclipse.ui.forms.IManagedForm, org.eclipse.swt.widgets.Composite)
 */
public void createControls(IManagedForm managedForm, Composite parent) {
    // Pre-condition
    assert combo == null;
    assert doxyfile != null;

    // Creates the managed combo control.
    combo = new Combo(parent, SWT.FLAT | SWT.BORDER | SWT.READ_ONLY);
    combo.addSelectionListener(new MySelectionListener());
    parent.setLayout(new FillLayout());

    // Fills the combo with group names.
    Object[] objects = doxyfile.getGroups();
    int i;
    for (i = 0; i < objects.length; ++i) {
        Group group = (Group) objects[i];
        combo.add(group.getName());
    }

    // Restores the combo selection.
    combo.select(savedComboSelection);

    // Post-condition
    assert combo != null;
}
 
开发者ID:anb0s,项目名称:eclox,代码行数:28,代码来源:ByGroup.java

示例15: createFormContent

import org.eclipse.ui.forms.IManagedForm; //导入依赖的package包/类
@Override
protected void createFormContent(IManagedForm mform) {
	mform.getForm().setText("Guide Position");

	FormToolkit toolkit = mform.getToolkit();

	mform.getForm().getBody().setLayout(new GridLayout(4, false));

	toolkit.createLabel(mform.getForm().getBody(), "Guide Position"); //$NON-NLS-1$
	final Spinner width = new Spinner(mform.getForm().getBody(), SWT.BORDER);
	width.setValues(w, 0, Integer.MAX_VALUE, 0, 1, 10);
	width.setToolTipText("Guide Position");
	width.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			w = width.getSelection();
		}
	});
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:20,代码来源:CreateGuideAction.java


注:本文中的org.eclipse.ui.forms.IManagedForm类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。