本文整理匯總了Java中org.eclipse.ui.forms.widgets.Section.setDescription方法的典型用法代碼示例。如果您正苦於以下問題:Java Section.setDescription方法的具體用法?Java Section.setDescription怎麽用?Java Section.setDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.ui.forms.widgets.Section
的用法示例。
在下文中一共展示了Section.setDescription方法的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);
}
示例2: createGeneralInformationSection
import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createGeneralInformationSection(Composite parent) {
FormToolkit toolkit = super.getToolkit();
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
section.setDescription(AngularCLIMessages.AngularCLIEditor_OverviewPage_GeneralInformationSection_desc);
section.setText(AngularCLIMessages.AngularCLIEditor_OverviewPage_GeneralInformationSection_title);
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
section.setLayoutData(data);
Composite body = createBody(section);
// Project name
createText(body, AngularCLIMessages.AngularCLIEditor_OverviewPage_projectName_label, new JSONPath("project.name"));
// project version
createText(body, AngularCLIMessages.AngularCLIEditor_OverviewPage_projectVersion_label, new JSONPath("project.version"));
}
示例3: 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);
}
示例4: 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);
}
示例5: 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);
}
示例6: 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);
}
示例7: createGeneralInformationSection
import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createGeneralInformationSection(Composite parent) {
FormToolkit toolkit = super.getToolkit();
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
section.setDescription(TsconfigEditorMessages.OverviewPage_GeneralInformationSection_desc);
section.setText(TsconfigEditorMessages.OverviewPage_GeneralInformationSection_title);
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
section.setLayoutData(data);
Composite body = createBody(section);
// Target/Module
createCombo(body, TsconfigEditorMessages.OverviewPage_target_label, new JSONPath("compilerOptions.target"),
TsconfigJson.getAvailableTargets(), TsconfigJson.getDefaultTarget());
createCombo(body, TsconfigEditorMessages.OverviewPage_module_label, new JSONPath("compilerOptions.module"),
TsconfigJson.getAvailableModules());
createCombo(body, TsconfigEditorMessages.OverviewPage_moduleResolution_label,
new JSONPath("compilerOptions.moduleResolution"), TsconfigJson.getAvailableModuleResolutions(),
TsconfigJson.getDefaultModuleResolution());
// Others....
createCheckbox(body, TsconfigEditorMessages.OverviewPage_experimentalDecorators_label,
new JSONPath("compilerOptions.experimentalDecorators"));
}
示例8: createDebuggingSection
import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createDebuggingSection(Composite parent) {
FormToolkit toolkit = super.getToolkit();
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
section.setDescription(TsconfigEditorMessages.OutputPage_DebuggingSection_desc);
section.setText(TsconfigEditorMessages.OutputPage_DebuggingSection_title);
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
section.setLayoutData(data);
Composite body = createBody(section);
createCheckbox(body, TsconfigEditorMessages.OutputPage_sourceMap_label,
new JSONPath("compilerOptions.sourceMap"));
createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_sourceRoot_label,
new JSONPath("compilerOptions.sourceRoot"), false);
createTextAndBrowseButton(body, TsconfigEditorMessages.OutputPage_mapRoot_label,
new JSONPath("compilerOptions.mapRoot"), false);
createCheckbox(body, TsconfigEditorMessages.OutputPage_inlineSourceMap_label,
new JSONPath("compilerOptions.inlineSourceMap"));
createCheckbox(body, TsconfigEditorMessages.OutputPage_inlineSources_label,
new JSONPath("compilerOptions.inlineSources"));
}
示例9: createReportingSection
import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createReportingSection(Composite parent) {
FormToolkit toolkit = super.getToolkit();
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
section.setDescription(TsconfigEditorMessages.OutputPage_ReportingSection_desc);
section.setText(TsconfigEditorMessages.OutputPage_ReportingSection_title);
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
section.setLayoutData(data);
Composite body = createBody(section);
createCheckbox(body, TsconfigEditorMessages.OutputPage_diagnostics_label,
new JSONPath("compilerOptions.diagnostics"));
createCheckbox(body, TsconfigEditorMessages.OutputPage_pretty_label, new JSONPath("compilerOptions.pretty"));
createCheckbox(body, TsconfigEditorMessages.OutputPage_traceResolution_label,
new JSONPath("compilerOptions.traceResolution"));
createCheckbox(body, TsconfigEditorMessages.OutputPage_listEmittedFiles_label,
new JSONPath("compilerOptions.listEmittedFiles"));
}
示例10: createScopeSection
import org.eclipse.ui.forms.widgets.Section; //導入方法依賴的package包/類
private void createScopeSection(Composite parent) {
FormToolkit toolkit = super.getToolkit();
Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);
section.setDescription(TsconfigEditorMessages.FilesPage_ScopeSection_desc);
section.setText(TsconfigEditorMessages.FilesPage_ScopeSection_title);
TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
section.setLayoutData(data);
Composite client = toolkit.createComposite(section);
section.setClient(client);
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.marginWidth = 2;
layout.marginHeight = 2;
client.setLayout(layout);
Table table = toolkit.createTable(client, SWT.NONE);
GridData gd = new GridData(GridData.FILL_BOTH);
gd.heightHint = 200;
gd.widthHint = 100;
table.setLayoutData(gd);
}
示例11: 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) {
initializeSection();
section.setText(UMLMessage.LABEL_MODEL_DETAIL_INFORMATION);
section.setDescription(UMLMessage.MESSAGE_MODEL_DETAIL_INFORMATION_OVERVIEW);
Composite composite = toolkit.createComposite(section);
composite.setLayout(new GridLayout(2, true));
gridData = new GridData(GridData.FILL_HORIZONTAL);
composite.setLayoutData(gridData);
createModelTypeComboComposite(toolkit, composite);
setValueToWidget();
section.setClient(composite);
}
示例12: 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);
}
示例13: 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_FRAGMENTED_PACKAGE_LIST);//"단편화된 패키지 목록");
section.setDescription(UMLMessage.MESSAGE_FRAGMENTED_PACKAGE_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();
createFragmentControl(toolkit, composite);
section.setClient(client);
}
示例14: 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);
}
示例15: 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_DIAGRAM_LIST);//"다이어그램 목록");
section.setDescription(UMLMessage.MESSAGE_DIAGRAM_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();
createDiagramControl(toolkit, composite);
section.setClient(client);
}