Java Code Examples for org.eclipse.swt.layout.GridData#BEGINNING

The following examples show how to use org.eclipse.swt.layout.GridData#BEGINNING . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OptionsConfigurationBlock.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
protected Combo addComboBox(Composite parent, String label, Key key, String[] values, String[] valueLabels, int indent) {
	GridData gd= new GridData(GridData.BEGINNING, GridData.CENTER, true, false, 2, 1);
	gd.horizontalIndent= indent;

	Label labelControl= new Label(parent, SWT.LEFT);
	labelControl.setFont(JFaceResources.getDialogFont());
	labelControl.setText(label);
	labelControl.setLayoutData(gd);

	Combo comboBox= newComboControl(parent, key, values, valueLabels);
	comboBox.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));

	fLabels.put(comboBox, labelControl);
	
	addHighlight(parent, labelControl, comboBox);

	return comboBox;
}
 
Example 2
Source File: LoginDialog.java    From nebula with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Build the description part of the box
 */
private void buildDescription() {
	final Label label = new Label(shell, SWT.NONE);
	final GridData gridData = new GridData(GridData.FILL, GridData.BEGINNING, true, false, 4, 1);
	gridData.verticalIndent = 5;
	gridData.horizontalIndent = 5;
	label.setLayoutData(gridData);
	final Font bold = SWTGraphicUtil.buildFontFrom(label, SWT.BOLD);
	label.setFont(bold);
	SWTGraphicUtil.addDisposer(label, bold);

	if (description == null || description.trim().equals("")) {
		label.setText(" ");
	} else {
		label.setText(description);
	}
}
 
Example 3
Source File: AbstractHistoryElementListSelectionDialog.java    From Pydev with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the message text widget and sets layout data.
 * @param composite the parent composite of the message area.
 */
@Override
protected Label createMessageArea(Composite composite) {
    Label label = super.createMessageArea(composite);

    GridData data = new GridData();
    data.grabExcessVerticalSpace = false;
    data.grabExcessHorizontalSpace = true;
    data.horizontalAlignment = GridData.FILL;
    data.verticalAlignment = GridData.BEGINNING;
    label.setLayoutData(data);

    fMessage = label;

    return label;
}
 
Example 4
Source File: PullUpMethodPage.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
private void createButtonComposite(final Composite superComposite) {
	final Composite buttonComposite= new Composite(superComposite, SWT.NONE);
	buttonComposite.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
	final GridLayout layout= new GridLayout(2, false);
	layout.marginWidth= 0;
	buttonComposite.setLayout(layout);

	fSelectionLabel= new Label(buttonComposite, SWT.LEFT | SWT.WRAP | SWT.HORIZONTAL);
	GridData data= new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false);
	data.widthHint= convertWidthInCharsToPixels(32);
	fSelectionLabel.setLayoutData(data);

	final Button button= new Button(buttonComposite, SWT.PUSH);
	button.setText(RefactoringMessages.PullUpInputPage2_Select);
	button.setLayoutData(new GridData());
	SWTUtil.setButtonDimensionHint(button);
	button.addSelectionListener(new SelectionAdapter() {

		@Override
		public void widgetSelected(final SelectionEvent e) {
			checkPulledUp();
			updateSelectionLabel();
		}
	});
}
 
Example 5
Source File: ThumbnailBuilder.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
private void createPreviewArea( Composite composite )
{
	Composite previewArea = new Composite( composite, SWT.BORDER );
	GridData gd = new GridData( GridData.BEGINNING );
	gd.widthHint = 184;
	gd.heightHint = 229;
	previewArea.setLayoutData( gd );
	previewArea.setLayout( new FormLayout( ) );

	previewCanvas = new ImageCanvas( previewArea );

	FormData formData = new FormData( 180, 229 );
	formData.left = new FormAttachment( previewArea );
	formData.top = new FormAttachment( previewArea );

	previewCanvas.setLayoutData( formData );
}
 
Example 6
Source File: ConfigurationFormToolkit.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
public void createStandardCombo ( final Composite parent, final String attributeName, final String label, final String[] items, final IObservableMap data, final Object valueType )
{
    this.toolkit.createLabel ( parent, label + ":" );

    final Combo combo = new Combo ( parent, SWT.DROP_DOWN );

    combo.setItems ( items );
    this.toolkit.adapt ( combo );

    final GridData gd = new GridData ( GridData.FILL, GridData.BEGINNING, true, true );
    gd.horizontalSpan = 2;
    combo.setLayoutData ( gd );

    final IObservableValue value = Observables.observeMapEntry ( data, attributeName, valueType );
    this.dbc.bindValue ( WidgetProperties.text ().observe ( combo ), value );
}
 
Example 7
Source File: DerbyPropertiesPage.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
protected GridData getSeperatorLabelGridData() {

    GridData gridData = new GridData(GridData.BEGINNING |
                            GridData.HORIZONTAL_ALIGN_FILL |
                            GridData.GRAB_VERTICAL |
                            GridData.BEGINNING |
                            GridData.VERTICAL_ALIGN_BEGINNING |
                            GridData.VERTICAL_ALIGN_FILL) ;
    gridData.horizontalSpan = 2;
    gridData.grabExcessVerticalSpace  = false;
    gridData.grabExcessHorizontalSpace = true;
    return gridData;

}
 
Example 8
Source File: LoginDialog.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Build the "remember password" part of the box
 */
private void buildRememberPassword() {
	final Button checkbox = new Button(shell, SWT.CHECK);
	final GridData gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false, 4, 1);
	gridData.horizontalIndent = 35;
	checkbox.setLayoutData(gridData);
	checkbox.setText(ResourceManager.getLabel(ResourceManager.REMEMBER_PASSWORD));
	checkbox.setSelection(rememberPassword);
}
 
Example 9
Source File: SWTFactory.java    From tlaplus with MIT License 5 votes vote down vote up
/**
 * Creates a wrapping label
 * 
 * @param parent the parent composite to add this label to
 * @param text the text to be displayed in the label
 * @param hspan the horizontal span that label should take up in the parent composite
 * @return a new label that wraps at a specified width
 */
public static Label createWrapLabel(Composite parent, String text, int hspan) {
	Label l = new Label(parent, SWT.NONE | SWT.WRAP);
	l.setFont(parent.getFont());
	if(text != null) {
		l.setText(text);
	}
	GridData gd = new GridData(GridData.BEGINNING);
	gd.horizontalSpan = hspan;
	l.setLayoutData(gd);
	return l;
}
 
Example 10
Source File: IndexDialog.java    From ermasterr with Apache License 2.0 5 votes vote down vote up
private void createAllColumnsGroup(final Composite composite) {
    final Group group = new Group(composite, SWT.NONE);

    final GridData gridData = new GridData();
    gridData.verticalSpan = 2;
    gridData.horizontalAlignment = GridData.BEGINNING;
    gridData.verticalAlignment = GridData.FILL;
    gridData.grabExcessVerticalSpace = true;

    group.setLayoutData(gridData);

    final GridLayout layout = new GridLayout();
    layout.verticalSpacing = 5;
    layout.marginHeight = 10;

    group.setLayout(layout);

    group.setText(ResourceString.getResourceString("label.all.column.list"));

    allColumnList = new org.eclipse.swt.widgets.List(group, SWT.BORDER | SWT.V_SCROLL);

    final GridData allColumnListGridData = new GridData();
    allColumnListGridData.widthHint = 150;
    allColumnListGridData.verticalAlignment = GridData.FILL;
    allColumnListGridData.grabExcessVerticalSpace = true;

    allColumnList.setLayoutData(allColumnListGridData);

    initializeAllList();
}
 
Example 11
Source File: Regression_136069_svg.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
public static void main( String args[] )
{
	display = Display.getDefault( );
	Shell shell = new Shell( display );
	shell.setSize( 220, 80 );
	shell.setLocation( display.getClientArea( ).width / 2 - 110, display
			.getClientArea( ).height / 2 - 40 );
	shell.setLayout( new GridLayout( ) );

	Regression_136069_svg siv = new Regression_136069_svg( shell, SWT.NONE );
	GridData gd = new GridData( GridData.BEGINNING );
	gd.widthHint = 1;
	gd.heightHint = 1;
	siv.setLayoutData( gd );

	Composite cBottom = new Composite( shell, SWT.NONE );
	cBottom.setLayoutData( new GridData( GridData.CENTER ) );
	cBottom.setLayout( new RowLayout( ) );

	Label la = new Label( cBottom, SWT.NONE );
	la.setText( "Choose: " );//$NON-NLS-1$

	cbType = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );
	cbType.add( "UrlRedirect" );//$NON-NLS-1$
	cbType.select( 0 );

	btn = new Button( cBottom, SWT.NONE );
	btn.setText( "Show" );//$NON-NLS-1$
	btn.addSelectionListener( siv );

	shell.open( );
	while ( !shell.isDisposed( ) )
	{
		if ( !display.readAndDispatch( ) )
			display.sleep( );
	}
	display.dispose( );
}
 
Example 12
Source File: CascadingParametersDialog.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private void createLabel( Composite parent, String content )
{
	Label label = new Label( parent, SWT.NONE );
	if ( content != null )
	{
		label.setText( content );
	}
	GridData gd = new GridData( );
	if ( label.getText( ).equals( LABEL_VALUES ) )
	{
		gd.verticalAlignment = GridData.BEGINNING;
	}
	label.setLayoutData( gd );
}
 
Example 13
Source File: TipOfTheDay.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Build the header
 */
private void buildHeader() {
	final Header header = new Header(shell, SWT.NONE);
	final GridData gd = new GridData(GridData.FILL, GridData.BEGINNING, true, false);
	gd.heightHint = 80;
	header.setLayoutData(gd);
	header.setTitle(ResourceManager.getLabel(ResourceManager.DID_YOU_KNOW));
	if (image == null) {
		final Image img = SWTGraphicUtil.createImageFromFile(YELLOW_LIGHT_BULB);
		header.setImage(img);
		SWTGraphicUtil.addDisposer(shell, img);
	} else {
		header.setImage(image);
	}
}
 
Example 14
Source File: XSPEditorUtil.java    From XPagesExtensionLibrary with Apache License 2.0 5 votes vote down vote up
static public DCText createTextNoFill(Composite parent, String attrName, int horzSpan, int horzIndent, int cols) {
    DCText ourText = new DCText(parent, SWT.BORDER, attrName);
    ourText.setAttributeName(attrName);
    if (cols > 0)
    	ourText.setCols(cols);
    GridData gd = new GridData(GridData.BEGINNING, GridData.CENTER, false, false, horzSpan, 1);
    if (horzIndent > 0)
    	gd.horizontalIndent = horzIndent;
    ourText.setLayoutData(gd);
	return ourText;
}
 
Example 15
Source File: JarManifestWizardPage.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Creates a horizontal spacer line that fills the width of its container.
 *
 * @param parent the parent control
 */
protected void createSpacer(Composite parent) {
	Label spacer= new Label(parent, SWT.NONE);
	GridData data= new GridData();
	data.horizontalAlignment= GridData.FILL;
	data.verticalAlignment= GridData.BEGINNING;
	spacer.setLayoutData(data);
}
 
Example 16
Source File: IndexDialog.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
/**
 * This method initializes group1
 * 
 */
private void createGroup1(Composite composite) {
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 2;
	gridLayout.verticalSpacing = 20;
	gridLayout.marginHeight = 10;

	GridData upButtonGridData = new GridData();
	upButtonGridData.grabExcessHorizontalSpace = false;
	upButtonGridData.verticalAlignment = GridData.END;
	upButtonGridData.grabExcessVerticalSpace = true;
	upButtonGridData.widthHint = Resources.BUTTON_WIDTH;

	GridData downButtonGridData = new GridData();
	downButtonGridData.grabExcessVerticalSpace = true;
	downButtonGridData.verticalAlignment = GridData.BEGINNING;
	downButtonGridData.widthHint = Resources.BUTTON_WIDTH;

	GridData gridData4 = new GridData();
	gridData4.verticalSpan = 2;

	Group group = new Group(composite, SWT.NONE);
	group.setText(ResourceString
			.getResourceString("label.index.column.list"));
	group.setLayout(gridLayout);
	group.setLayoutData(gridData4);

	this.initializeIndexColumnList(group);

	// indexColumnList = new List(group, SWT.BORDER | SWT.V_SCROLL);
	// indexColumnList.setLayoutData(gridData5);

	this.upButton = new Button(group, SWT.NONE);
	this.upButton.setText(ResourceString
			.getResourceString("label.up.arrow"));
	this.upButton.setLayoutData(upButtonGridData);

	this.downButton = new Button(group, SWT.NONE);
	this.downButton.setText(ResourceString
			.getResourceString("label.down.arrow"));
	this.downButton.setLayoutData(downButtonGridData);
}
 
Example 17
Source File: CustomChooserComposite.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
private void initControls( )
{
	// THE LAYOUT OF THIS COMPOSITE (FILLS EVERYTHING INSIDE IT)
	FillLayout flMain = new FillLayout( );
	flMain.marginHeight = 0;
	flMain.marginWidth = 0;
	setLayout( flMain );

	// THE LAYOUT OF THE INNER COMPOSITE (ANCHORED NORTH AND ENCAPSULATES
	// THE CANVAS + BUTTON)
	cmpContent = new Composite( this, SWT.BORDER );
	GridLayout glContentInner = new GridLayout( );
	glContentInner.verticalSpacing = 0;
	glContentInner.horizontalSpacing = 0;
	glContentInner.marginHeight = 0;
	glContentInner.marginWidth = 0;
	glContentInner.numColumns = 2;
	cmpContent.setLayout( glContentInner );

	final int iSize = itemHeight;
	// THE CANVAS
	cnvSelection = createChoice( cmpContent, null );
	GridData gdCNVSelection = new GridData( GridData.FILL_BOTH );
	gdCNVSelection.heightHint = iSize;
	cnvSelection.setLayoutData( gdCNVSelection );
	cnvSelection.setValue( iCurrentValue );
	cnvSelection.addListener( SWT.KeyDown, canvasListener );
	cnvSelection.addListener( SWT.Traverse, canvasListener );
	cnvSelection.addListener( SWT.FocusIn, canvasListener );
	cnvSelection.addListener( SWT.FocusOut, canvasListener );
	cnvSelection.addListener( SWT.MouseDown, canvasListener );

	// THE BUTTON
	btnDown = new Button( cmpContent, SWT.ARROW | SWT.DOWN );
	GridData gdBDown = new GridData( GridData.FILL );
	gdBDown.verticalAlignment = GridData.BEGINNING;
	gdBDown.widthHint = iSize - 1;
	gdBDown.heightHint = iSize;
	btnDown.setLayoutData( gdBDown );
	btnDown.addListener( SWT.Selection, new Listener( ) {

		public void handleEvent( Event event )
		{
			toggleDropDown( );
		}
	} );

	layout( );

	initAccessible( );
}
 
Example 18
Source File: VGroupManageDialog.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
private void createCategoryGroup(Composite composite) {
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 4;

	Group group = new Group(composite, SWT.NONE);
	group.setText(ResourceString
			.getResourceString("label.category.message"));
	group.setLayout(gridLayout);

	CompositeFactory.filler(group, 4);

	GridData tableGridData = new GridData();
	tableGridData.heightHint = 200;
	tableGridData.horizontalSpan = 3;
	tableGridData.verticalSpan = 2;

	this.categoryTable = new Table(group, SWT.BORDER | SWT.FULL_SELECTION);
	this.categoryTable.setHeaderVisible(true);
	this.categoryTable.setLayoutData(tableGridData);
	this.categoryTable.setLinesVisible(true);

	GridData upButtonGridData = new GridData();
	upButtonGridData.grabExcessHorizontalSpace = false;
	upButtonGridData.verticalAlignment = GridData.END;
	upButtonGridData.grabExcessVerticalSpace = true;
	upButtonGridData.widthHint = Resources.BUTTON_WIDTH;

	GridData downButtonGridData = new GridData();
	downButtonGridData.grabExcessVerticalSpace = true;
	downButtonGridData.verticalAlignment = GridData.BEGINNING;
	downButtonGridData.widthHint = Resources.BUTTON_WIDTH;

	this.upButton = new Button(group, SWT.NONE);
	this.upButton.setText(ResourceString
			.getResourceString("label.up.arrow"));
	this.upButton.setLayoutData(upButtonGridData);

	this.downButton = new Button(group, SWT.NONE);
	this.downButton.setText(ResourceString
			.getResourceString("label.down.arrow"));
	this.downButton.setLayoutData(downButtonGridData);

	GridData textGridData = new GridData();
	textGridData.widthHint = 150;

	this.categoryNameText = new Text(group, SWT.BORDER);
	this.categoryNameText.setLayoutData(textGridData);

	GridData buttonGridData = new GridData();
	buttonGridData.widthHint = Resources.BUTTON_WIDTH;

	this.addCategoryButton = new Button(group, SWT.NONE);
	this.addCategoryButton.setLayoutData(buttonGridData);
	this.addCategoryButton.setText(ResourceString
			.getResourceString("label.button.add"));

	this.updateCategoryButton = new Button(group, SWT.NONE);
	this.updateCategoryButton.setLayoutData(buttonGridData);
	this.updateCategoryButton.setText(ResourceString
			.getResourceString("label.button.update"));

	this.deleteCategoryButton = new Button(group, SWT.NONE);
	this.deleteCategoryButton.setLayoutData(buttonGridData);
	this.deleteCategoryButton.setText(ResourceString
			.getResourceString("label.button.delete"));

	TableColumn tableColumn = new TableColumn(categoryTable, SWT.NONE);
	tableColumn.setWidth(30);
	tableColumn.setResizable(false);
	TableColumn tableColumn1 = new TableColumn(categoryTable, SWT.NONE);
	tableColumn1.setWidth(230);
	tableColumn1.setResizable(false);
	tableColumn1.setText(ResourceString
			.getResourceString("label.category.name"));
}
 
Example 19
Source File: CategoryManageDialog.java    From erflute with Apache License 2.0 4 votes vote down vote up
private void createCategoryGroup(Composite composite) {
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 4;

    final Group group = new Group(composite, SWT.NONE);
    group.setText(DisplayMessages.getMessage("label.category.message"));
    group.setLayout(gridLayout);

    CompositeFactory.filler(group, 4);

    final GridData tableGridData = new GridData();
    tableGridData.heightHint = 200;
    tableGridData.horizontalSpan = 3;
    tableGridData.verticalSpan = 2;

    this.categoryTable = new Table(group, SWT.BORDER | SWT.FULL_SELECTION);
    categoryTable.setHeaderVisible(true);
    categoryTable.setLayoutData(tableGridData);
    categoryTable.setLinesVisible(true);

    final GridData upButtonGridData = new GridData();
    upButtonGridData.grabExcessHorizontalSpace = false;
    upButtonGridData.verticalAlignment = GridData.END;
    upButtonGridData.grabExcessVerticalSpace = true;
    upButtonGridData.widthHint = DesignResources.BUTTON_WIDTH;

    final GridData downButtonGridData = new GridData();
    downButtonGridData.grabExcessVerticalSpace = true;
    downButtonGridData.verticalAlignment = GridData.BEGINNING;
    downButtonGridData.widthHint = DesignResources.BUTTON_WIDTH;

    this.upButton = new Button(group, SWT.NONE);
    upButton.setText(DisplayMessages.getMessage("label.up.arrow"));
    upButton.setLayoutData(upButtonGridData);

    this.downButton = new Button(group, SWT.NONE);
    downButton.setText(DisplayMessages.getMessage("label.down.arrow"));
    downButton.setLayoutData(downButtonGridData);

    final GridData textGridData = new GridData();
    textGridData.widthHint = 150;

    this.categoryNameText = new Text(group, SWT.BORDER);
    categoryNameText.setLayoutData(textGridData);

    final GridData buttonGridData = new GridData();
    buttonGridData.widthHint = DesignResources.BUTTON_WIDTH;

    addCategoryButton = new Button(group, SWT.NONE);
    addCategoryButton.setLayoutData(buttonGridData);
    addCategoryButton.setText(DisplayMessages.getMessage("label.button.add"));

    updateCategoryButton = new Button(group, SWT.NONE);
    updateCategoryButton.setLayoutData(buttonGridData);
    updateCategoryButton.setText(DisplayMessages.getMessage("label.button.update"));

    deleteCategoryButton = new Button(group, SWT.NONE);
    deleteCategoryButton.setLayoutData(buttonGridData);
    deleteCategoryButton.setText(DisplayMessages.getMessage("label.button.delete"));

    final TableColumn tableColumn = new TableColumn(categoryTable, SWT.NONE);
    tableColumn.setWidth(30);
    tableColumn.setResizable(false);
    final TableColumn tableColumn1 = new TableColumn(categoryTable, SWT.NONE);
    tableColumn1.setWidth(230);
    tableColumn1.setResizable(false);
    tableColumn1.setText(DisplayMessages.getMessage("label.category.name"));
}
 
Example 20
Source File: TranslationManageDialog.java    From ermasterr with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
protected void initialize(final Composite composite) {
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 1;

    final GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.grabExcessHorizontalSpace = true;

    final Group group = new Group(composite, SWT.NONE);
    group.setLayoutData(gridData);
    group.setText(ResourceString.getResourceString("label.translation.message"));
    group.setLayout(gridLayout);

    useButton = new Button(group, SWT.CHECK);
    useButton.setText(ResourceString.getResourceString("label.translation.use"));

    final GridData tableGridData = new GridData();
    tableGridData.heightHint = 200;
    tableGridData.horizontalSpan = 1;
    tableGridData.verticalSpan = 2;
    tableGridData.horizontalAlignment = GridData.FILL;
    tableGridData.grabExcessHorizontalSpace = true;

    dictionaryTable = new Table(group, SWT.BORDER | SWT.FULL_SELECTION);
    dictionaryTable.setHeaderVisible(true);
    dictionaryTable.setLayoutData(tableGridData);
    dictionaryTable.setLinesVisible(true);

    final GridData upButtonGridData = new GridData();
    upButtonGridData.grabExcessHorizontalSpace = false;
    upButtonGridData.verticalAlignment = GridData.END;
    upButtonGridData.grabExcessVerticalSpace = true;
    upButtonGridData.widthHint = BUTTON_WIDTH;

    final GridData downButtonGridData = new GridData();
    downButtonGridData.grabExcessVerticalSpace = true;
    downButtonGridData.verticalAlignment = GridData.BEGINNING;
    downButtonGridData.widthHint = BUTTON_WIDTH;

    final GridData textGridData = new GridData();
    textGridData.widthHint = 150;

    final TableColumn tableColumn = new TableColumn(dictionaryTable, SWT.NONE);
    tableColumn.setWidth(30);
    tableColumn.setResizable(false);
    final TableColumn tableColumn1 = new TableColumn(dictionaryTable, SWT.NONE);
    tableColumn1.setWidth(230);
    tableColumn1.setResizable(false);
    tableColumn1.setText(ResourceString.getResourceString("label.translation.file.name"));
}