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


Java Section.setClient方法代碼示例

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


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

示例1: createClient

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
/**
 * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section,
 *      org.eclipse.ui.forms.widgets.FormToolkit)
 */
@Override
protected void createClient(Section section, FormToolkit toolkit) {
    section.setText(UMLMessage.LABEL_DOCUMENT_INFORMATION);
    section.setDescription(UMLMessage.MESSAGE_DOCUMENT_OVERVIEW);

    TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP);
    td.grabHorizontal = true;

    Composite client = toolkit.createComposite(section);
    client.setLayout(new GridLayout(1, false));

    createTextControl(toolkit, client);

    initializeSection();

    section.setClient(client);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:22,代碼來源:OverviewDocumentSection.java

示例2: createCountDownSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createCountDownSection() {
	Section countDown = toolkit.createSection(form.getBody(), ExpandableComposite.TWISTIE | Section.DESCRIPTION| ExpandableComposite.TITLE_BAR);
	countDown.setText("Count Down Section");
	countDown.setExpanded(true);
	countDown.setDescription("Time left in the match.");
	Composite countDownClient = toolkit.createComposite(countDown);
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 5;
	gridLayout.makeColumnsEqualWidth = false;
	countDownClient.setLayout(gridLayout);
	hourCountDownLabel = toolkit.createLabel(countDownClient, "00");
	toolkit.createLabel(countDownClient, ":");
	minuteCountDownLabel = toolkit.createLabel(countDownClient, "00");
	toolkit.createLabel(countDownClient, ":");
	secondsCountDownLabel = toolkit.createLabel(countDownClient, "00");
	countDown.setClient(countDownClient);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:18,代碼來源:CountDownTimerPage.java

示例3: createPlayerSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createPlayerSection() {
	Section playersSection = toolkit.createSection(form.getBody(), ExpandableComposite.TWISTIE | Section.DESCRIPTION| ExpandableComposite.TITLE_BAR);
	playersSection.setText("Player Section");
	playersSection.setExpanded(true);
	playersSection.setDescription("The players that are playing.");
	Composite playerClient = toolkit.createComposite(playersSection);
	GridLayout playerGridLayout = new GridLayout();
	playerGridLayout.numColumns = 2;
	playerClient.setLayout(playerGridLayout);
	
	firstPlayerName = createPlayerNameField(playerClient, "Player 1: ");
	secondPlayerName = createPlayerNameField(playerClient, "Player 2: ");
			
	Button updateButton = toolkit.createButton(playerClient, "Update", SWT.PUSH | SWT.RESIZE);
	GridData updateButtonData = new GridData();
	updateButtonData.horizontalSpan = 2;
	updateButtonData.widthHint = 60;
	updateButtonData.grabExcessHorizontalSpace = true;
	updateButton.setLayoutData(updateButtonData);
	updateButton.addSelectionListener(new PlayerNameUpdateButtonSelectionListener(this));
			
	playersSection.setClient(playerClient);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:24,代碼來源:GeneralFormPage.java

示例4: createScoringSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createScoringSection() {
	Section playersSection = toolkit.createSection(form.getBody(), ExpandableComposite.TWISTIE | Section.DESCRIPTION| ExpandableComposite.TITLE_BAR);
	playersSection.setText("Scoreboard Section");
	playersSection.setExpanded(false);
	playersSection.setDescription("Current scores for the game");
	Composite playerClient = toolkit.createComposite(playersSection);
	GridLayout playerGridLayout = new GridLayout();
	playerGridLayout.numColumns = 2;
	playerClient.setLayout(playerGridLayout);
	
	firstPlayerScore = createPlayerNameField(playerClient, "Player 1: ");
	secondPlayerScore = createPlayerNameField(playerClient, "Player 2: ");
			
	Button updateButton = toolkit.createButton(playerClient, "Update", SWT.PUSH | SWT.RESIZE);
	GridData updateButtonData = new GridData();
	updateButtonData.horizontalSpan = 2;
	updateButtonData.widthHint = 60;
	updateButtonData.grabExcessHorizontalSpace = true;
	updateButton.setLayoutData(updateButtonData);
	updateButton.addSelectionListener(new PlayerScoreUpdateButtonSelectionListener2(this));
			
	playersSection.setClient(playerClient);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:24,代碼來源:GeneralFormPage.java

示例5: createMapSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createMapSection() {
	Section mapSection = toolkit.createSection(form.getBody(),
			ExpandableComposite.TWISTIE | Section.DESCRIPTION | ExpandableComposite.TITLE_BAR);
	mapSection.setText("Skirmish Maps");

	mapSection.setExpanded(true);
	mapSection.setDescription("A list of available skirmish maps.");

	Composite mapComposite = toolkit.createComposite(mapSection);
	GridLayout squadGridLayout = new GridLayout();
	squadGridLayout.numColumns = 3;

	mapComposite.setLayout(squadGridLayout);

	listViewer = new ListViewer(mapComposite, SWT.WRAP | SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL);
	listViewer.add(SkirmishMapsLookup.getInstance().getMaps().toArray());
	listViewer.addSelectionChangedListener(new LoadMapImageSelectionListener());

	GridData mapSize = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 5);
	mapSize.minimumHeight = 300;
	mapSize.heightHint = 300;
	
	listViewer.getList().setLayoutData(mapSize);
	mapSection.setClient(mapComposite);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:26,代碼來源:MapsFormPage.java

示例6: createClient

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
/**
 * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section,
 *      org.eclipse.ui.forms.widgets.FormToolkit)
 */
@Override
protected void createClient(Section section, FormToolkit toolkit) {
    section.setText(UMLMessage.LABEL_MODEL_LIBRARY);
    section.setDescription(UMLMessage.MESSAGE_MODEL_LIBRARY_OVERVIEW);

    TableWrapData td = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP);
    td.grabHorizontal = true;

    Composite client = toolkit.createComposite(section);
    FillLayout layout = new FillLayout(SWT.VERTICAL);
    layout.marginWidth = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2;
    client.setLayout(layout);

    Composite composite = toolkit.createComposite(client);
    GridLayout compositeLayout = new GridLayout();
    compositeLayout.numColumns = 2;
    composite.setLayout(compositeLayout);

    initializeSection();

    createLibraryControl(toolkit, composite);

    section.setClient(client);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:29,代碼來源:DetailsModelLibrarySection.java

示例7: createClient

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
/**
 * @see nexcore.tool.uml.ui.core.editor.section.AbstractSection#createClient(org.eclipse.ui.forms.widgets.Section,
 *      org.eclipse.ui.forms.widgets.FormToolkit)
 */
@Override
protected void createClient(Section section, FormToolkit toolkit) {
    section.setText(UMLMessage.LABEL_UMLPROFILE_LIST);
    section.setDescription(UMLMessage.MESSAGE_PROFILE_LIST);

    Composite client = toolkit.createComposite(section);
    FillLayout layout = new FillLayout(SWT.VERTICAL);
    layout.marginWidth = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2;
    client.setLayout(layout);

    Composite composite = toolkit.createComposite(client);
    GridLayout compositeLayout = new GridLayout();
    compositeLayout.numColumns = 2;
    composite.setLayout(compositeLayout);

    initializeSection();

    createProfileControl(toolkit, composite);

    section.setClient(client);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:26,代碼來源:DetailsProfileSection.java

示例8: createSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
/**
	 * @param parent
	 * @param title
	 * @param isGrabVertical
	 * @return
	 */
	private Composite createSection(final Composite parent, final String title, final boolean isGrabVertical) {

		final Section section = _tk.createSection(parent, //
		//Section.TWISTIE |
//				Section.SHORT_TITLE_BAR
				Section.TITLE_BAR
		// | Section.DESCRIPTION
		// | Section.EXPANDED
		);

		section.setText(title);
		GridDataFactory.fillDefaults().grab(true, isGrabVertical).applyTo(section);

		final Composite sectionContainer = _tk.createComposite(section);
		section.setClient(sectionContainer);

//		section.addExpansionListener(new ExpansionAdapter() {
//			@Override
//			public void expansionStateChanged(final ExpansionEvent e) {
//				form.reflow(false);
//			}
//		});

		return sectionContainer;
	}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:32,代碼來源:DialogQuickEdit.java

示例9: createGeneralInformation

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
protected void createGeneralInformation() {
    Section generalInformation = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
    generalInformation.setText(EditorMessages.getString("ApexMetadataFormPage.GeneralInformationSection")); //$NON-NLS-1$
    generalInformation.setDescription(EditorMessages
            .getString("ApexMetadataFormPage.GeneralInformationSection.Description")); //$NON-NLS-1$

    Composite sectionClient = toolkit.createComposite(generalInformation);
    sectionClient.setLayout(new GridLayout(2, false));

    // Label
    labelText = new TextFieldWidget(toolkit, "Label", "");
    labelText.addTo(sectionClient);

    // Description
    descriptionText = new TextFieldWidget(toolkit, "Description", "");
    descriptionText.addTo(sectionClient);

    // Api Version
    apiText = new TextFieldWidget(toolkit, EditorMessages.getString("ApexMetadataFormPage.APIVersionLabel"), "0.0"); //$NON-NLS-1$ //$NON-NLS-2$
    apiText.addTo(sectionClient);

    generalInformation.setClient(sectionClient);
}
 
開發者ID:forcedotcom,項目名稱:idecore,代碼行數:24,代碼來源:ApexComponentPropertySheet.java

示例10: createClient

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
protected void createClient(Section section, FormToolkit toolkit) {
    section.setText("Configurations"); //$NON-NLS-1$
    String desc = "This section describe the configurations defined in your project";
    section.setDescription(desc);

    Composite client = toolkit.createComposite(section);
    TableWrapLayout layout = new TableWrapLayout();
    layout.rightMargin = toolkit.getBorderStyle() != SWT.NULL ? 0 : 2;
    layout.leftMargin = layout.rightMargin;
    layout.numColumns = NUM_COLUMNS;
    client.setLayout(layout);

    toolkit.paintBordersFor(client);
    section.setClient(client);
    TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
    td.colspan = 2;
    section.setLayoutData(td);
}
 
開發者ID:apache,項目名稱:ant-ivyde,代碼行數:19,代碼來源:IvyConfSection.java

示例11: createGeneralInformation

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
@Override
protected void createGeneralInformation() {
    Section generalInformation = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
    generalInformation.setText(EditorMessages.getString("ApexMetadataFormPage.GeneralInformationSection")); //$NON-NLS-1$
    generalInformation.setDescription(EditorMessages
            .getString("ApexMetadataFormPage.GeneralInformationSection.Description")); //$NON-NLS-1$

    Composite sectionClient = toolkit.createComposite(generalInformation);
    sectionClient.setLayout(new GridLayout(2, false));

    // Api Version
    apiText = new TextFieldWidget(toolkit, EditorMessages.getString("ApexMetadataFormPage.APIVersionLabel"), "0.0"); //$NON-NLS-1$ //$NON-NLS-2$
    apiText.addTo(sectionClient);

    generalInformation.setClient(sectionClient);
}
 
開發者ID:forcedotcom,項目名稱:idecore,代碼行數:17,代碼來源:ApexClassPropertySheet.java

示例12: createGeneralInformation

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
@Override
protected void createGeneralInformation() {
    Section generalInformation = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
    generalInformation.setText(EditorMessages.getString("ApexMetadataFormPage.GeneralInformationSection")); //$NON-NLS-1$
    generalInformation.setDescription(EditorMessages
            .getString("ApexMetadataFormPage.GeneralInformationSection.Description")); //$NON-NLS-1$

    Composite sectionClient = toolkit.createComposite(generalInformation);
    sectionClient.setLayout(new GridLayout(2, false));

    // Api Version
    apiText = new TextFieldWidget(toolkit, EditorMessages.getString("ApexMetadataFormPage.APIVersionLabel"), "0.0"); //$NON-NLS-1$ //$NON-NLS-2$
    apiText.addTo(sectionClient);

    // Status
    statusCombo =
            new ComboWidget<>(toolkit,
                    EditorMessages.getString("ApexMetadataFormPage.StatusLabel"), ApexCodeUnitStatus.ACTIVE); //$NON-NLS-1$
    statusCombo.addTo(sectionClient);

    generalInformation.setClient(sectionClient);
}
 
開發者ID:forcedotcom,項目名稱:idecore,代碼行數:23,代碼來源:ApexTriggerPropertySheet.java

示例13: createPluginsSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createPluginsSection(Composite parent) {
	Section sctnPlugins = createSection(parent, "Plug-ins");
	sctnPlugins.setLayout(FormUtils.createClearTableWrapLayout(false, 1));
	TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
	sctnPlugins.setLayoutData(data);

	FormText text = formToolkit.createFormText(sctnPlugins, true);
	ImageDescriptor idesc = HybridUI.getImageDescriptor(HybridUI.PLUGIN_ID, "/icons/etool16/cordovaplug_wiz.png");
	text.setImage("plugin", idesc.createImage());

	text.setText(PLUGINS_SECTION_CONTENT, true, false);

	sctnPlugins.setClient(text);
	text.addHyperlinkListener(this);

}
 
開發者ID:eclipse,項目名稱:thym,代碼行數:17,代碼來源:EssentialsPage.java

示例14: createBrowserOptions

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createBrowserOptions(Composite parent) {
    Section rtSection = XSPEditorUtil.createSection(toolkit, parent, "Rich Text Options", 1, 1); // $NLX-XSPGenPage.RichTextOptions-1$
    Composite rtDCP = XSPEditorUtil.createSectionChild(rtSection, 2);
    rtDCP.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, false, false, 1, 1));
    Label lfLabel = XSPEditorUtil.createLabel(rtDCP, "Save links in:", 1); // $NLX-XSPGenPage.Savelinksin-1$
    lfLabel.setToolTipText("Defines how links should be saved in a Domino document"); // $NLX-XSPGenPage.DefineshowlinksshouldbesavedinaDo-1$
    Composite buttonHolder = new Composite(rtDCP, SWT.NONE);
    buttonHolder.setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
    GridLayout gl = SWTLayoutUtils.createLayoutNoMarginDefaultSpacing(2);
    buttonHolder.setLayout(gl);
    buttonHolder.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, false, false, 1, 1));
    XSPEditorUtil.createRadio(buttonHolder, LINK_SAVE_PROP, "Notes format", XSP_SAVE_USE_NOTES, "notesLinks", 1); //  $NON-NLS-2$ $NLX-XSPGenPage.Notesformat-1$
    XSPEditorUtil.createRadio(buttonHolder, LINK_SAVE_PROP, "Web format", XSP_SAVE_USE_WEB, "webLinks", 1); //  $NON-NLS-2$ $NLX-XSPGenPage.Webformat-1$

    rtSection.setClient(rtDCP);   
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:17,代碼來源:XSPGenPage.java

示例15: createPlanSection

import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createPlanSection(Composite composite) {
		// 		
		Section planSection     = toolkit.createSection(composite,
														Section.TITLE_BAR
													  | ExpandableComposite.EXPANDED);
//		Composite planComposite = toolkit.createComposite(planSection, SWT.NULL);
		planComposite = toolkit.createComposite(planSection, SWT.NULL);
		planSection.setText("Plan");
		planSection.setLayout(new GridLayout(1, Boolean.TRUE));
		planSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, Boolean.TRUE, Boolean.TRUE));
		planSection.marginHeight = 20;
		planSection.titleBarTextMarginWidth = 20;

		planComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, Boolean.TRUE, Boolean.TRUE));
		planComposite.setLayout(new GridLayout(1, Boolean.TRUE));		
		planSection.setClient(planComposite);
		
		createReleasesSection(planComposite);
		createTitleSection(planComposite);
		createIterationsSection(planComposite);
	}
 
開發者ID:jaloncad,項目名稱:redmine.rap,代碼行數:22,代碼來源:PlanView.java


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