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


Java SWT.VERTICAL属性代码示例

本文整理汇总了Java中org.eclipse.swt.SWT.VERTICAL属性的典型用法代码示例。如果您正苦于以下问题:Java SWT.VERTICAL属性的具体用法?Java SWT.VERTICAL怎么用?Java SWT.VERTICAL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.swt.SWT的用法示例。


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

示例1: createComponents

private void createComponents ()
{
    final FillLayout layout = new FillLayout ( SWT.VERTICAL );
    layout.marginHeight = 12;
    layout.marginWidth = 12;
    setLayout ( layout );

    final Text filterTextField = new Text ( this, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.H_SCROLL );
    filterTextField.setText ( this.filter );
    filterTextField.addKeyListener ( new KeyAdapter () {
        @Override
        public void keyReleased ( final KeyEvent e )
        {
            verifyFilter ( filterTextField.getText () );
        }
    } );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:FilterFreeFormComposite.java

示例2: DiskInfoTab

/**
 * Create the DISK INFO tab.
 */
public DiskInfoTab(CTabFolder tabFolder, FormattedDisk[] disks) {
	this.formattedDisks = disks;
	
	CTabItem ctabitem = new CTabItem(tabFolder, SWT.NULL);
	ctabitem.setText(textBundle.get("DiskInfoTab.Title")); //$NON-NLS-1$
	
	tabFolder.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent event) {
			getInfoTable().removeAll();
			buildDiskInfoTable(getFormattedDisk(0));	// FIXME!
		}
	});
	
	ScrolledComposite scrolledComposite = new ScrolledComposite(
		tabFolder, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
	scrolledComposite.setExpandHorizontal(true);
	scrolledComposite.setExpandVertical(true);
	ctabitem.setControl(scrolledComposite);
	
	composite = new Composite(scrolledComposite, SWT.NONE);
	createDiskInfoTable();
	if (disks.length > 1) {
		RowLayout layout = new RowLayout(SWT.VERTICAL);
		layout.wrap = false;
		composite.setLayout(layout);
		for (int i=0; i<disks.length; i++) {
			Label label = new Label(composite, SWT.NULL);
			label.setText(disks[i].getDiskName());
			buildDiskInfoTable(disks[i]);
		}
	} else {
		composite.setLayout(new FillLayout());
		buildDiskInfoTable(disks[0]);
	}
	composite.pack();
	scrolledComposite.setContent(composite);
	scrolledComposite.setMinSize(
		composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:42,代码来源:DiskInfoTab.java

示例3: SeparatorController

public SeparatorController ( final ControllerManager controllerManager, final ChartContext chartContext, final org.eclipse.scada.ui.chart.model.SeparatorController controller )
{
    final Composite space = chartContext.getExtensionSpaceProvider ().getExtensionSpace ();
    if ( space != null )
    {
        this.label = new Label ( space, SWT.SEPARATOR | SWT.VERTICAL );
        this.label.setLayoutData ( new RowData ( 20, SWT.DEFAULT ) );
        space.layout ();
    }
    else
    {
        this.label = null;
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:14,代码来源:SeparatorController.java

示例4: createContents

@Override
protected Control createContents(Composite mainComposite) {
    this.composite = mainComposite;

    initTray();

    createApplicationMenu();

    GridLayout layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
    sashForm = new SashForm(mainComposite, SWT.VERTICAL);
    sashForm.setLayout(layout);
    sashForm.setLayoutData(layoutData);
    sashForm.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));

    createTopPanel(sashForm);

    createBottomPanel(sashForm);

    sashForm.setSashWidth(2);
    sashForm.setWeights(new int[] {80,20});

    if (viewListener != null) {
        viewListener.applicationViewDidLoad();
    }

    return  mainComposite;
}
 
开发者ID:technology16,项目名称:pgsqlblocks,代码行数:30,代码来源:ApplicationView.java

示例5: createDialogArea

/**
 * Create contents of the dialog.
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	Composite container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(1, false));
	
	getShell().setText(title);
	
	SashForm mainSashForm = new SashForm(container, SWT.BORDER);
	mainSashForm.setSashWidth(2);
	mainSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	createAvailableFieldTable(mainSashForm);
	
	Composite filterLogicMainComposite = new Composite(mainSashForm, SWT.NONE);
	filterLogicMainComposite.setLayout(new GridLayout(1, false));
	
	SashForm filterLogicSashForm = new SashForm(filterLogicMainComposite, SWT.VERTICAL);
	filterLogicSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	filterLogicInnerComposite = new Composite(filterLogicSashForm, SWT.BORDER);
	filterLogicInnerCompositeLayout = new StackLayout();
	filterLogicInnerComposite.setLayout(filterLogicInnerCompositeLayout);
	
	createExpressionOrOperationComposite(filterLogicInnerComposite);
	
	createErrorLogsTable(filterLogicSashForm);
	
	filterLogicSashForm.setWeights(new int[] {3, 1});
	mainSashForm.setWeights(new int[] {1, 2});
	return container;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:35,代码来源:FilterExpressionOperationDialog.java

示例6: createDialogArea

/**
 * Create contents of the dialog.
 * 
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {

	getShell().setText(
			MultiParameterFileDialogConstants.PARAMETER_FILE_DIALOG_TEXT);
	
	container_1 = (Composite) super.createDialogArea(parent);
	mainSashForm = new SashForm(container_1, SWT.HORIZONTAL);
	mainSashForm.setSashWidth(6);
	GridData gd_mainSashForm = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
	gd_mainSashForm.heightHint = 476;
	gd_mainSashForm.widthHint = 851;
	mainSashForm.setLayoutData(gd_mainSashForm);
	createParameterFilesBox(container_1);
	populateFilePathTableViewer();

	Composite composite = createParameterFileViewOuterComposite(mainSashForm);
	SashForm childSashForm=new SashForm(composite, SWT.VERTICAL);
	childSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	createViewParameterFileBox(childSashForm);
	ParameterFile jobSpecificFile = getJobSpecificFile();
	if (jobSpecificFile != null)
		populateViewParameterFileBox(jobSpecificFile);

	createParameterSearchBox(childSashForm);
	mainSashForm.setWeights(new int[] {260, 214});
	
	Label lblNewLabel = new Label(container_1, SWT.NONE);
	lblNewLabel.setText(Messages.NOTE_FOR_SAME_PARAMETERS_DEFINED_IN_MULTIPLE_PARAMETER_FILES_THE_LOWERMOST_FILE_WILL_BE_GIVEN_PRECEDENCE_OVER_OTHERS);
	return container_1;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:37,代码来源:MultiParameterFileDialog.java

示例7: createDialogArea

/**
 * Create contents of the dialog.
 * 
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(1, false));
	container.getShell().setText(getTitle());

	containerSashForm = new SashForm(container, SWT.VERTICAL);
	containerSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	Composite upperComposite = new Composite(containerSashForm, SWT.BORDER);
	upperComposite.setLayout(new GridLayout(1, false));

	upperSashForm = new SashForm(upperComposite, SWT.NONE);
	upperSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	availableFieldsComposite = new AvailableFieldsComposite(upperSashForm, SWT.NONE, fieldMap);

	expressionEditorComposite = new ExpressionEditorComposite(upperSashForm, SWT.NONE, javaLineStyler);
	this.expressionEditorTextBox = expressionEditorComposite.getExpressionEditor();
	upperSashForm.setWeights(new int[] { 288, 576 });

	availableFieldsComposite.setExpressionEditor(expressionEditorTextBox);
	
	Composite composite = new Composite(containerSashForm, SWT.BORDER);
	composite.setLayout(new GridLayout(1, false));

	SashForm lowerSashForm = new SashForm(composite, SWT.NONE);
	lowerSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	categoriesComposite = new CategoriesComposite(lowerSashForm, SWT.NONE);
	functionsComposite = new FunctionsComposite(lowerSashForm,expressionEditorTextBox ,categoriesComposite, SWT.NONE);
	descriptionComposite = new DescriptionComposite(lowerSashForm, functionsComposite, categoriesComposite,
			SWT.NONE);

	containerSashForm.setWeights(new int[] { 1, 1 });

	intializeWidgets();
	return container;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:44,代码来源:ExpressionEditorDialog.java

示例8: createPartControl

@Override
public void createPartControl(Composite parent) {

	FillLayout fillLayout = new FillLayout(SWT.VERTICAL);
	fillLayout.marginHeight = 5;
	fillLayout.marginWidth = 5;
	parent.setLayout(fillLayout);

	// main container
	container = new Composite(parent, SWT.BORDER);
	container.setLayout(new FillLayout());

	// create container for stack trace data
	Composite stacktraceDataContainer = new Composite(parent, SWT.BORDER);

	FormLayout formLayout = new FormLayout();
	formLayout.marginHeight = 5;
	formLayout.marginWidth = 5;
	formLayout.spacing = 5;
	stacktraceDataContainer.setLayout(formLayout);

	Composite stackLabelContainer = new Composite(stacktraceDataContainer, SWT.NO_SCROLL | SWT.SHADOW_NONE);
	stackLabelContainer.setLayout(new GridLayout());

	FormData stackLabelFormData = new FormData();
	stackLabelFormData.top = new FormAttachment(0);
	stackLabelFormData.left = new FormAttachment(0);
	stackLabelFormData.right = new FormAttachment(100);
	stackLabelFormData.bottom = new FormAttachment(20);
	stackLabelContainer.setLayoutData(stackLabelFormData);

	Composite stackTraceContainer = new Composite(stacktraceDataContainer, SWT.NO_SCROLL | SWT.SHADOW_NONE);
	stackTraceContainer.setLayout(new FillLayout());

	FormData stackTraceFormData = new FormData();
	stackTraceFormData.top = new FormAttachment(stackLabelContainer);
	stackTraceFormData.left = new FormAttachment(0);
	stackTraceFormData.right = new FormAttachment(100);
	stackTraceFormData.bottom = new FormAttachment(100);
	stackTraceContainer.setLayoutData(stackTraceFormData);

	// Create viewer for test tree in main container
	testTreeViewer = new TreeViewer(container);
	testTreeViewer.setContentProvider(new XpectContentProvider());
	testTreeViewer.setLabelProvider(new XpectLabelProvider(this.testsExecutionStatus));
	testTreeViewer.setInput(null);

	// create stack trace label
	stacktraceLabel = new Label(stackLabelContainer, SWT.SHADOW_OUT);
	FontData fontData = stacktraceLabel.getFont().getFontData()[0];
	Display display = Display.getCurrent();
	// may be null if outside the UI thread
	if (display == null)
		display = Display.getDefault();
	Font font = new Font(display, new FontData(fontData.getName(), fontData
			.getHeight(), SWT.BOLD));
	// Make stack trace label bold
	stacktraceLabel.setFont(font);

	stacktraceLabel.setText(NO_TRACE_MSG);

	// create stack trace console
	MessageConsole messageConsole = new MessageConsole("trace", null);
	stacktraceConsole = new TraceConsole(messageConsole);
	stacktraceConsoleViewer = new TextConsoleViewer(stackTraceContainer, messageConsole);

	// context menu
	getSite().setSelectionProvider(testTreeViewer);
	MenuManager contextMenu = new MenuManager();
	contextMenu.setRemoveAllWhenShown(true);
	getSite().registerContextMenu(contextMenu, testTreeViewer);
	Control control = testTreeViewer.getControl();
	Menu menu = contextMenu.createContextMenu(control);
	control.setMenu(menu);
	activateContext();

	createSelectionActions();

}
 
开发者ID:eclipse,项目名称:n4js,代码行数:79,代码来源:N4IDEXpectView.java

示例9: open

public void open(ClosedListener l) {
	this.listener = l;
	skinnedDialog = new SkinnedDialog("skin3_dlg_deviceadd_mfchooser",
			"shell", SWT.TITLE | SWT.BORDER);

	skinnedDialog.addCloseListener(new SkinnedDialogClosedListener() {
		@Override
		public void skinDialogClosed(SkinnedDialog dialog) {
			if (listener != null) {
				listener.MfChooserClosed(chosenMF);
			}
		}
	});

	SWTSkin skin = skinnedDialog.getSkin();
	SWTSkinObject so= skin.getSkinObject("list");
	if (so instanceof SWTSkinObjectContainer) {
		SWTSkinObjectContainer soList = (SWTSkinObjectContainer) so;

		Composite parent = soList.getComposite();

		Canvas centerCanvas = new Canvas(parent, SWT.NONE);
		FormData fd = Utils.getFilledFormData();
		fd.bottom = null;
		fd.height = 0;
		centerCanvas.setLayoutData(fd);


		Composite area = new Composite(parent, SWT.NONE);
		RowLayout rowLayout = new RowLayout(SWT.VERTICAL);
		rowLayout.fill = true;
		Utils.setLayout(area, rowLayout);
		fd = Utils.getFilledFormData();
		fd.left = new FormAttachment(centerCanvas, 50, SWT.CENTER);
		fd.right = null;
		area.setLayoutData(fd);

		Listener btnListener = new Listener() {
			@Override
			public void handleEvent(Event event) {
				chosenMF = (DeviceManufacturer) event.widget.getData("mf");
				skinnedDialog.close();
			}
		};

		DeviceManager deviceManager = DeviceManagerFactory.getSingleton();
		DeviceManufacturer[] mfs = deviceManager.getDeviceManufacturers(Device.DT_MEDIA_RENDERER);
		for (DeviceManufacturer mf : mfs) {
			DeviceTemplate[] deviceTemplates = mf.getDeviceTemplates();
			boolean hasNonAuto = false;
			for (DeviceTemplate deviceTemplate : deviceTemplates) {
				if (!deviceTemplate.isAuto()) {
					hasNonAuto = true;
					break;
				}
			}
			if (!hasNonAuto) {
				continue;
			}
			Button button = new Button(area, SWT.PUSH);
			button.setText(mf.getName());
			button.setData("mf", mf);
			button.addListener(SWT.MouseUp, btnListener);
		}
	}

	skinnedDialog.getShell().pack();
	skinnedDialog.open();
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:69,代码来源:ManufacturerChooser.java

示例10: OrCondition

public OrCondition ( final FilterAdvancedComposite filterAdvancedComposite, final CTabFolder tabFolder )
{
    // fields
    this.filterAdvancedComposite = filterAdvancedComposite;
    this.tabItem = new CTabItem ( tabFolder, SWT.NULL );
    this.tabItem.setText ( Messages.a_condition );
    this.tabContent = new Composite ( tabFolder, SWT.NONE );
    this.tabItem.setControl ( this.tabContent );

    // widgets
    this.addAssertionComposite = new AddAssertionComposite ( this, this.tabContent );
    this.assertionScrolledComposite = new ScrolledComposite ( this.tabContent, SWT.V_SCROLL | SWT.NONE );
    this.assertionComposite = new Composite ( this.assertionScrolledComposite, SWT.NONE );
    this.assertionScrolledComposite.setContent ( this.assertionComposite );

    // layout
    final GridLayout layout = new GridLayout ();
    layout.marginLeft = 6;
    layout.marginRight = 6;
    layout.marginTop = 6;
    layout.marginBottom = 6;
    layout.verticalSpacing = 12;
    this.tabContent.setLayout ( layout );

    final GridData addAssertionCompositeLayoutData = new GridData ();
    addAssertionCompositeLayoutData.grabExcessHorizontalSpace = true;
    addAssertionCompositeLayoutData.horizontalAlignment = GridData.FILL;
    this.addAssertionComposite.setLayoutData ( addAssertionCompositeLayoutData );

    final GridData assertionCompositeLayoutData = new GridData ();
    assertionCompositeLayoutData.grabExcessHorizontalSpace = true;
    assertionCompositeLayoutData.horizontalAlignment = GridData.FILL;
    assertionCompositeLayoutData.grabExcessVerticalSpace = true;
    assertionCompositeLayoutData.verticalAlignment = GridData.FILL;
    this.assertionScrolledComposite.setLayoutData ( assertionCompositeLayoutData );
    this.assertionScrolledComposite.setExpandHorizontal ( true );

    final RowLayout innerlayout = new RowLayout ( SWT.VERTICAL );
    innerlayout.wrap = false;
    this.assertionComposite.setLayout ( innerlayout );
    this.assertionComposite.addListener ( SWT.Resize, new Listener () {
        public void handleEvent ( final org.eclipse.swt.widgets.Event event )
        {
            final Point s = OrCondition.this.assertionComposite.computeSize ( SWT.DEFAULT, SWT.DEFAULT );
            OrCondition.this.assertionComposite.setSize ( s.x, s.y );
            refreshGUI ();
        }
    } );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:49,代码来源:FilterAdvancedComposite.java

示例11: open

/**
 * Create and display the wizard pane.
 * @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#open()
 */
public void open() {
	control = new Composite(parent, SWT.NULL);
	control.setLayoutData(layoutData);
	wizard.enableNextButton(false);
	wizard.enableFinishButton(true);
	RowLayout layout = new RowLayout(SWT.VERTICAL);
	layout.justify = true;
	layout.marginBottom = 5;
	layout.marginLeft = 5;
	layout.marginRight = 5;
	layout.marginTop = 5;
	layout.spacing = 3;
	control.setLayout(layout);
	Label label = new Label(control, SWT.WRAP);
	label.setText(textBundle.get("ExportFilePrompt")); //$NON-NLS-1$

	directoryText = new Text(control, SWT.WRAP | SWT.BORDER);
	if (wizard.getDirectory() != null) directoryText.setText(wizard.getDirectory());
	directoryText.setLayoutData(new RowData(parent.getSize().x - 30, -1));
	directoryText.setBackground(new Color(control.getDisplay(), 255,255,255));
	directoryText.setFocus();
	directoryText.addModifyListener(new ModifyListener() {
		public void modifyText(ModifyEvent event) {
			Text text = (Text) event.getSource();
			getWizard().setDirectory(text.getText());
		}
	});
	
	Button button = new Button(control, SWT.PUSH);
	button.setText(textBundle.get("BrowseButton")); //$NON-NLS-1$
	button.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {
			DirectoryDialog directoryDialog = new DirectoryDialog(getShell());
			directoryDialog.setFilterPath(getDirectoryText().getText());
			directoryDialog.setMessage(
				UiBundle.getInstance().get("ExportFileDirectoryPrompt")); //$NON-NLS-1$
			String directory = directoryDialog.open();
			if (directory != null) {
				getDirectoryText().setText(directory);
			}
		}
	});
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:47,代码来源:ExportFileDestinationPane.java

示例12: open

/**
 * Create the wizard pane.
 * @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#open()
 */
public void open() {
	control = new Composite(parent, SWT.NULL);
	wizard.enableNextButton(true);
	wizard.enableFinishButton(false);
	RowLayout layout = new RowLayout(SWT.VERTICAL);
	layout.justify = true;
	layout.marginBottom = 5;
	layout.marginLeft = 5;
	layout.marginRight = 5;
	layout.marginTop = 5;
	layout.spacing = 3;
	control.setLayout(layout);
	Label label = new Label(control, SWT.WRAP);
	label.setText(
		textBundle.get("DiskImageSizePrompt")); //$NON-NLS-1$
	RowLayout subpanelLayout = new RowLayout(SWT.VERTICAL);
	subpanelLayout.justify = true;
	subpanelLayout.spacing = 3;
	Composite buttonSubpanel = new Composite(control, SWT.NULL);
	buttonSubpanel.setLayout(subpanelLayout);
	createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize140Kb"),  //$NON-NLS-1$
		Disk.APPLE_140KB_DISK,
		textBundle.get("DiskImageSize140KbText")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize800Kb"),  //$NON-NLS-1$
		Disk.APPLE_800KB_2IMG_DISK,
		textBundle.get("DiskImageSize800KbText")); //$NON-NLS-1$
	if (wizard.getFormat() == DiskImageWizard.FORMAT_PRODOS) {
		createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize5Mb"),  //$NON-NLS-1$
			Disk.APPLE_5MB_HARDDISK,
			textBundle.get("DiskImageSize5MbText")); //$NON-NLS-1$
		createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize10Mb"),  //$NON-NLS-1$
			Disk.APPLE_10MB_HARDDISK,
			textBundle.get("DiskImageSize10MbText")); //$NON-NLS-1$
		createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize20Mb"),  //$NON-NLS-1$
			Disk.APPLE_20MB_HARDDISK,
			textBundle.get("DiskImageSize20MbText")); //$NON-NLS-1$
		createRadioButton(buttonSubpanel, textBundle.get("DiskImageSize32Mb"),  //$NON-NLS-1$
			Disk.APPLE_32MB_HARDDISK, 
			textBundle.get("DiskImageSize32MbText")); //$NON-NLS-1$
	}
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:45,代码来源:DiskImageSizePane.java

示例13: open

/**
 * Create and display the wizard pane.
 */
public void open() {
	control = new Composite(parent, SWT.NULL);
	wizard.enableNextButton(true);
	wizard.enableFinishButton(false);
	RowLayout layout = new RowLayout(SWT.VERTICAL);
	layout.justify = true;
	layout.marginBottom = 5;
	layout.marginLeft = 5;
	layout.marginRight = 5;
	layout.marginTop = 5;
	layout.spacing = 3;
	control.setLayout(layout);
	Label label = new Label(control, SWT.WRAP);
	label.setText(
		textBundle.get("DiskImageFormatPrompt")); //$NON-NLS-1$
	RowLayout subpanelLayout = new RowLayout(SWT.VERTICAL);
	subpanelLayout.justify = true;
	subpanelLayout.spacing = 3;
	Composite buttonSubpanel = new Composite(control, SWT.NULL);
	buttonSubpanel.setLayout(subpanelLayout);
	createRadioButton(buttonSubpanel, textBundle.get("Dos"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_DOS33,
		textBundle.get("DiskImageFormatDosTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Unidos"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_UNIDOS,
		textBundle.get("DiskImageFormatUnidosTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Ozdos"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_OZDOS, 
		textBundle.get("DiskImageFormatOzdosTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Prodos"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_PRODOS, 
		textBundle.get("DiskImageFormatProdosTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Pascal"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_PASCAL, 
		textBundle.get("DiskImageFormatPascalTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Rdos"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_RDOS, 
		textBundle.get("DiskImageFormatRdosTooltip")); //$NON-NLS-1$
	createRadioButton(buttonSubpanel, textBundle.get("Cpm"),  //$NON-NLS-1$
		DiskImageWizard.FORMAT_CPM, 
		textBundle.get("DiskImageFormatCpmTooltip")); //$NON-NLS-1$
	control.pack();
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:46,代码来源:DiskImageFormatPane.java

示例14: createControl

public void createControl(Composite parent) {
	control = new SashForm(parent, SWT.VERTICAL | SWT.FLAT);
	createTableTreeViewer(control);
	createEyeViewControl(control);
	control.setWeights(new int[] { 60, 40 });
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:6,代码来源:DbToolGefEditorOutlinePage.java

示例15: addSeparator

protected void addSeparator(Composite compo) {
	Label separator = new Label(compo, SWT.SEPARATOR | SWT.VERTICAL);
	GridData layoutData = new GridData();
	layoutData.heightHint = 20;
	separator.setLayoutData(layoutData);
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:6,代码来源:SchemaRegistryView.java


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