Java Code Examples for org.eclipse.swt.widgets.Text.setText()

The following are Jave code examples for showing how to use setText() of the org.eclipse.swt.widgets.Text class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Tarski   File: PasswordDialog.java   View Source Code Vote up 6 votes
@Override
protected Control createDialogArea(Composite parent) {
  Composite container = (Composite) super.createDialogArea(parent);
  GridLayout layout = new GridLayout(2, false);
  layout.marginRight = 5;
  layout.marginLeft = 10;
  container.setLayout(layout);

  Label lblUser = new Label(container, SWT.NONE);
  lblUser.setText("User:");

  txtUser = new Text(container, SWT.BORDER);
  txtUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
  txtUser.setText(user);

  Label lblPassword = new Label(container, SWT.NONE);
  GridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
  gd_lblNewLabel.horizontalIndent = 1;
  lblPassword.setLayoutData(gd_lblNewLabel);
  lblPassword.setText("Password:");

  txtPassword = new Text(container, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
  txtPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
  txtPassword.setText(password);
  return container;
}
 
Example 2
Project: scanning   File: StatusQueueLaunchView.java   View Source Code Vote up 6 votes
private void createTextControl(String slabel, final String propName, Composite content) {

		final IPreferenceStore store = Activator.getDefault().getPreferenceStore();

		final Label label = new Label(content, SWT.NONE);
		label.setText(slabel);

		final Text text = new Text(content, SWT.BORDER);
		text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
		text.setText(store.getString(propName));
		text.addModifyListener(new ModifyListener() {
			@Override
			public void modifyText(ModifyEvent e) {
				store.setValue(propName, text.getText());
			}
		});
	}
 
Example 3
Project: Hydrograph   File: OutputRecordCountWidget.java   View Source Code Vote up 6 votes
private void createLabelTextBoxAndButton(Composite textBobLabelButtonComposite, int data_key)
{
	AbstractELTWidget outputRecordCountLabel1=new ELTDefaultLable(Constants.OUTPUT_RECORD_COUNT);
	outputRecordCountLabel1.attachWidget(textBobLabelButtonComposite);
	Composite composite=new Composite(textBobLabelButtonComposite, SWT.NONE);
	setLayoutAndDataToComposite(composite,1);
	ELTDefaultTextBox outputRecordCountTextBox=new ELTDefaultTextBox();
	outputRecordCountTextBox.attachWidget(composite);
	outputRecordCoundText=(Text)outputRecordCountTextBox.getSWTWidgetControl();
	expressionValidateDecorator = WidgetUtility.addDecorator(outputRecordCoundText,"Invalid Expression");
	expressionValidateDecorator.setMarginWidth(3);
	addModifyListenerToRecordCountTextBox();
	if(transformMapping.getExpressionEditorData()!=null)
	{
		outputRecordCoundText.setText(transformMapping.getExpressionEditorData().getExpression());
		showHideDecorator();	
	}	
	AbstractELTWidget outputRecordCountButton=new ELTDefaultButton(Constants.EDIT);
	outputRecordCountButton.attachWidget(textBobLabelButtonComposite);
	editButton=(Button)outputRecordCountButton.getSWTWidgetControl();
    intializeEnableOrDisableStateOfWidgetsBasedOnExpressionOrOperationSelected();
    addListenerOnEditButtonToOpenExpressionEditor();
    
	expressionRadioButton.setData(String.valueOf(data_key), outputRecordCountLabel1.getSWTWidgetControl());
}
 
Example 4
Project: Hydrograph   File: UpdateByKeysWidget.java   View Source Code Vote up 6 votes
@Override
public void attachToPropertySubGroup(AbstractELTContainerWidget subGroup) {
	
	logger.debug("Starting {} button creation");
	ELTDefaultSubgroupComposite selectUpdateKeysComposite = new ELTDefaultSubgroupComposite(subGroup.getContainerControl());
	selectUpdateKeysComposite.createContainerWidget();
	
	ELTDefaultLable defaultLable1 = new ELTDefaultLable(Messages.LABEL_UPDATE_BY_KEYS);
	selectUpdateKeysComposite.attachWidget(defaultLable1);
	setPropertyHelpWidget((Control) defaultLable1.getSWTWidgetControl());
	
	ELTDefaultTextBox defaultUpdateByKeysTextBox = new ELTDefaultTextBox();
	selectUpdateKeysComposite.attachWidget(defaultUpdateByKeysTextBox);
	 updateByKeysTextBox=(Text)defaultUpdateByKeysTextBox.getSWTWidgetControl();
	 updateByKeysTextBox.setEnabled(false);
	setPropertyHelpWidget((Control) defaultUpdateByKeysTextBox.getSWTWidgetControl());
	
	ELTDefaultButton eltDefaultButton = new ELTDefaultButton(Messages.LABEL_SELECT_KEYS);
	selectUpdateKeysComposite.attachWidget(eltDefaultButton);
	selectKeysButton=(Button)eltDefaultButton.getSWTWidgetControl();
	
	updateByKeysTextBoxDecorator = WidgetUtility.addDecorator(updateByKeysTextBox, Messages.bind(Messages.EMPTY_FIELD, "JDBC Driver \n Class"));
	updateByKeysTextBoxDecorator.setMarginWidth(3);

	if(StringUtils.isNotEmpty(propertyValue)){
		updateByKeysTextBox.setText(propertyValue);
		updateByKeysTextBoxDecorator.hide();
	}
	
	attachButtonListner(selectKeysButton);
	
	
	updateByKeysTextBox.addModifyListener(new ModifyListener() {
		
		@Override
		public void modifyText(ModifyEvent event) {
			Text textBox=(Text)event.widget;
			if(StringUtils.isBlank(textBox.getText())){
				updateByKeysTextBoxDecorator.show();
			}else{
				updateByKeysTextBoxDecorator.hide();
			}
		}
	});
	
}
 
Example 5
Project: Hydrograph   File: FilterOperationClassUtility.java   View Source Code Vote up 6 votes
/**
 * 
 * Open selection dialog for schema files, File selection restricted to ".schema" extension. 
 * @param filterExtension
 * @param fileName
 */
private void browseSchemaSelectionDialog(String filterExtension, Text fileName) {
	String externalSchemaTextBoxValue = "";
	ExternalSchemaFileSelectionDialog dialog = new ExternalSchemaFileSelectionDialog("Project",
			"Select Schema File (.schema or.xml)",  new String[]{filterExtension,Extensions.XML.toString()}, this);
	if (dialog.open() == IDialogConstants.OK_ID) {
		String file = fileNameTextBoxValue;
		IResource resource = (IResource) dialog.getFirstResult();
		String path[] = resource.getFullPath().toString().split("/");
		if (file.isEmpty()) {
			for (int i = 1; i < path.length; i++) {
				externalSchemaTextBoxValue = externalSchemaTextBoxValue + path[i] + "/";
			}
		} else {
			for (int i = 1; i < path.length; i++) {
				if (!path[i].endsWith(".schema") && !path[i].endsWith(".xml")) {
					externalSchemaTextBoxValue = externalSchemaTextBoxValue + path[i] + "/";
				}
			}
			externalSchemaTextBoxValue = externalSchemaTextBoxValue + file;
		}
		fileName.setText(externalSchemaTextBoxValue);
	}
}
 
Example 6
Project: convertigo-eclipse   File: HttpTriggerXpathEditorComposite.java   View Source Code Vote up 6 votes
/**
 * This method initializes this
 * 
 */
private void initialize() {
	XpathTrigger trigger = (parent.getTrigger() instanceof XpathTrigger)?(XpathTrigger)parent.getTrigger():null;
       GridData gridData2 = new GridData();
       gridData2.horizontalAlignment = GridData.FILL;
       gridData2.grabExcessHorizontalSpace = true;
       gridData2.verticalAlignment = GridData.CENTER;
       GridLayout gridLayout = new GridLayout();
       gridLayout.numColumns = 2;
       this.setLayout(gridLayout);
       xpath_label = new Label(this, SWT.NONE);
       xpath_label.setText("Waiting for Xpath");
       xpath_txt = new Text(this, SWT.BORDER);
       xpath_txt.setText( (trigger!=null)? trigger.getXPath():"");
       xpath_txt.setLayoutData(gridData2);
       xpath_txt.setSize(600, 50);
}
 
Example 7
Project: pgcodekeeper   File: SQLEditor.java   View Source Code Vote up 6 votes
@Override
protected Control createDialogArea(Composite parent) {
    Composite comp = (Composite) super.createDialogArea(parent);
    Text filed = new Text(comp, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL
            | SWT.READ_ONLY | SWT.MULTI);
    filed.setText(text);
    filed.setBackground(getShell().getDisplay().getSystemColor(
            SWT.COLOR_LIST_BACKGROUND));
    filed.setFont(JFaceResources.getTextFont());
    PixelConverter pc = new PixelConverter(filed);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.widthHint = pc.convertWidthInCharsToPixels(80);
    gd.heightHint = pc.convertHeightInCharsToPixels(30);
    filed.setLayoutData(gd);
    return comp;
}
 
Example 8
Project: n4js   File: ExportSelectionPage.java   View Source Code Vote up 5 votes
/**
 * @param parent
 * @param composite
 */
private void createErrorGroup(Composite parent) {
	Composite errorGroup = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 1;
	errorGroup.setLayout(layout);
	errorGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	errorGroup.setFont(parent.getFont());
	errorText = new Text(errorGroup, SWT.READ_ONLY | SWT.WRAP | SWT.MULTI | SWT.BORDER);
	errorText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	errorText.setText("asldfjlasjflkj");
}
 
Example 9
Project: eZooKeeper   File: GridTextInput.java   View Source Code Vote up 5 votes
/**
 * Constructor.
 *
 * @param parent The parent {@link Composite}.
 * @param type The {@link Type}.
 * @param name The {@link GridTextInput} name.
 * @param labelText The {@link Label} text.
 * @param labelStyle The {@link Label} style.
 * @param labelLayoutData The {@link Label} {@link GridData layout data}.
 * @param textText The {@link Text} text.
 * @param textStyle The {@link Text} style.
 * @param textLayoutData The {@link Text} {@link GridData layout data}.
 */
public GridTextInput(Composite parent, Type type, String name, String labelText, int labelStyle,
        GridData labelLayoutData, String textText, int textStyle, GridData textLayoutData) {

    _Type = type;

    _DefaultTextValue = textText;

    if (_DefaultTextValue != null && _Type.isInteger()) {
        if (!isValidIntegerText(_DefaultTextValue)) {
            throw new IllegalArgumentException("Invalid integer value: " + _DefaultTextValue);
        }
    }

    _Name = name;

    if (labelText != null) {
        _Label = new Label(parent, labelStyle);
        _Label.setText(labelText);
        _Label.setLayoutData(labelLayoutData);
        _Label.pack();
    }

    _Text = new Text(parent, textStyle);
    if (textText != null) {
        _Text.setText(textText);
    }
    _Text.setLayoutData(textLayoutData);

    if (_Type.isInteger()) {
        _Text.setTextLimit(10);
    }

    _Text.setData(this);

}
 
Example 10
Project: gw4e.project   File: GraphModelPropertyPage.java   View Source Code Vote up 5 votes
/**
 * Create the Text that will hold the Requirement coming from the graphml file
 * @param panel
 * @param file
 */
protected void createrequirementSection(Composite panel, IFile file) {
	Label label = createLabel(panel, MessageUtil.getString("Requirements")); //$NON-NLS-1$
	Text t = new Text(panel, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
	t.setData(GW4E_FILE_REQUIREMENT_TEXT_ID,GW4E_FILE_REQUIREMENT_TEXT_ID );
	Set<String> requirements = null;
	String reqMessage = "";
	try {
		requirements = GraphWalkerFacade.getRequirement(file);
		String newline = System.getProperty("line.separator");
		if (requirements == null || requirements.size() == 0) {
			reqMessage = MessageUtil.getString("NoRequirements");
		} else {
			StringBuffer sb = new StringBuffer();

			for (String req : requirements) {
				sb.append(req).append(newline);
			}
			t.setText(sb.toString());
			reqMessage = requirements.size() + " " + MessageUtil.getString("requirementsfound");
		}
	} catch (Exception e) {
		ResourceManager.logException(e);
		t.setText(e.getMessage());
	}
	t.setEditable(false);
	GridDataFactory.fillDefaults().grab(true, true).hint(150, 150).applyTo(t);

	createLabel(panel, MessageUtil.getString("requirementMessage")); //$NON-NLS-1$
	label = createLabel(panel, reqMessage);
	fillExcessHorizontalSpace(label);
}
 
Example 11
Project: eZooKeeper   File: ZooKeeperServerModelFormPage.java   View Source Code Vote up 5 votes
@Override
protected Control createContents(Composite parent) {

    this.getShell().setText(_Command);

    ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.V_SCROLL);
    scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    scrolledComposite.setExpandHorizontal(true);
    Text text = new Text(scrolledComposite, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP);
    text.setText(_Result);
    text.pack();
    scrolledComposite.setContent(text);

    return scrolledComposite;
}
 
Example 12
Project: convertigo-eclipse   File: CicsConnectorComposite.java   View Source Code Vote up 5 votes
protected void initialize() {
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData.grabExcessHorizontalSpace = true;
	gridData.grabExcessVerticalSpace = true;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	cicsData = new Text(this, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
	cicsData.setEditable(false);
	cicsData.setBackground(new Color(null,253,253,244));
	cicsData.setFont(new Font(null,"Courier New",10,1));
	cicsData.setLayoutData(gridData);
	cicsData.setText("");
	this.setLayout(new GridLayout());
	setSize(new Point(300, 200));
}
 
Example 13
Project: Hydrograph   File: FilterOperationClassUtility.java   View Source Code Vote up 5 votes
/**
	 * Open selection dialog for Java files, File selection restricted to ".java" extension.
	 * @param filterExtension
	 * @param fileName
	 */
	public static void browseJavaSelectionDialog(String filterExtension, Text fileName) {
		ResourceFileSelectionDialog dialog = new ResourceFileSelectionDialog(
				"Project", "Select Java Class (.java)", new String[] { filterExtension });
		if (dialog.open() == IDialogConstants.OK_ID) {
			IResource resource = (IResource) dialog.getFirstResult();
			String filePath = resource.getRawLocation().toOSString();
			java.nio.file.Path path =Paths.get(filePath); 
			String classFile=path.getFileName().toString();
			String name = "";
			try(BufferedReader reader= new BufferedReader(new FileReader(filePath))){ 
				String firstLine= reader.readLine();
				if(firstLine.contains(Constants.PACKAGE)){
					name= firstLine.replaceFirst(Constants.PACKAGE, "").replace(";", "");
					if(!name.equalsIgnoreCase("")){
						name=name+"."+classFile.substring(0, classFile.lastIndexOf('.'));
					}
					
				}else{
					name=classFile.substring(0, classFile.lastIndexOf('.'));
				}
				
			} catch (IOException e) { 
				logger.error("Unable to read file " + filePath,e );
			}
			fileName.setText(name.trim());
			filePath = resource.getRawLocation().toOSString();
			fileName.setData("path", resource.getFullPath().toString());
}
	}
 
Example 14
Project: Hydrograph   File: JobRunPreferenceComposite.java   View Source Code Vote up 5 votes
/**
 * Create console buffer widget
 * @param bufferSize
 */
private void createConsoleBufferWidget(String bufferSize){
	HydroGroup hydroGroup = new HydroGroup(this, SWT.NONE);
	
	hydroGroup.setHydroGroupText(Messages.HYDROGRAPH_CONSOLE_PREFERANCE_PAGE_GROUP_NAME);
	hydroGroup.setLayout(new GridLayout(1, false));
	hydroGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
	hydroGroup.getHydroGroupClientArea().setLayout(new GridLayout(2, false));
	
	Label label = new Label(hydroGroup.getHydroGroupClientArea(), SWT.NONE);
	
	label.setText(Messages.PREFERANCE_CONSOLE_BUFFER_SIZE);
	
	textWidget = new Text(hydroGroup.getHydroGroupClientArea(), SWT.BORDER);
	textWidget.setText(bufferSize);
	textWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
	textWidget.setTextLimit(6);
	
	attachConsoleBufferValidator();
	
	Composite purgeComposite = new Composite(hydroGroup.getHydroGroupClientArea(), SWT.NONE);
	purgeComposite.setLayout(new GridLayout(2, false));
	purgeComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1));
	
	Label lblNote = new Label(purgeComposite, SWT.TOP | SWT.WRAP);
	lblNote.setText(Messages.PREFERANCE_PAGE_NOTE);
	FontData fontData = lblNote.getFont().getFontData()[0];
	Font font = new Font(purgeComposite.getDisplay(), new FontData(fontData.getName(), fontData.getHeight(), SWT.BOLD));
	lblNote.setFont(font);
	Label lblmsg = new Label(purgeComposite, SWT.TOP | SWT.WRAP);
	lblmsg.setText(Messages.UI_PERFORMANCE_NOTE_IN_CASE_OF_CHANGE_IN_BUFFER_SIZE);
	
}
 
Example 15
Project: vertigo-chroma-kspplugin   File: VertigoPropertyPage.java   View Source Code Vote up 5 votes
private void addPathSection(Composite parent) {
	Composite composite = createDefaultComposite(parent);

	// Label for path field
	Label pathLabel = new Label(composite, SWT.NONE);
	pathLabel.setText(PATH_TITLE);

	// Path text field
	Text pathValueText = new Text(composite, SWT.WRAP | SWT.READ_ONLY);
	pathValueText.setText(getProject().getFullPath().toString());
}
 
Example 16
Project: Hydrograph   File: FilterOperationClassUtility.java   View Source Code Vote up 5 votes
/**
 * Check if file exist on local file system. 
 * @param jobFilePath
 * @param textBox
 * @return
 */
private boolean isFileExistsOnLocalFileSystem(IPath jobFilePath, Text textBox) {
	jobFilePath=jobFilePath.removeFileExtension().addFileExtension(Constants.XML_EXTENSION_FOR_IPATH);
	try {
		if (ResourcesPlugin.getWorkspace().getRoot().getFile(jobFilePath).exists()){
			return true;
		}
		else if (jobFilePath.toFile().exists()){
			return true;
		}
	} catch (Exception exception) {
		logger.error("Error occured while cheking file on local file system", exception);
	}
	MessageBox messageBox = new MessageBox(Display.getCurrent().getActiveShell(), SWT.ICON_WARNING | SWT.YES
			| SWT.NO);
	messageBox.setMessage(jobFilePath.lastSegment()+Messages.FILE_DOES_NOT_EXISTS);
	messageBox.setText(jobFilePath.toString() +Messages.NOT_EXISTS);
	int response = messageBox.open();
	if (response == SWT.YES) {
		jobFilePath=jobFilePath.removeFileExtension().addFileExtension(Constants.JOB_EXTENSION_FOR_IPATH);
		textBox.setText(jobFilePath.toString().substring(1));
	}
	else{
		textBox.setText("");
	}
	return false;
}
 
Example 17
Project: convertigo-eclipse   File: SiteClipperConnectorComposite.java   View Source Code Vote up 5 votes
@Override
protected void initialize() {
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData.grabExcessHorizontalSpace = true;
	gridData.grabExcessVerticalSpace = true;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	httpData = new Text(this, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
	httpData.setLayoutData(gridData);
	httpData.setText("");
	this.setLayout(new GridLayout());
	setSize(new Point(300, 200));
	
}
 
Example 18
Project: convertigo-eclipse   File: HttpConnectorComposite.java   View Source Code Vote up 5 votes
protected void initialize() {
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData.grabExcessHorizontalSpace = true;
	gridData.grabExcessVerticalSpace = true;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	httpData = new Text(this, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
	httpData.setLayoutData(gridData);
	httpData.setText("");
	this.setLayout(new GridLayout());
	setSize(new Point(300, 200));
}
 
Example 19
Project: Hydrograph   File: EvaluateDialog.java   View Source Code Vote up 5 votes
private void createSearchTextBox(Composite fieldTableComposite) {
	searchTextBox = new Text(fieldTableComposite, SWT.BORDER);
	searchTextBox.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
	searchTextBox.setForeground(CustomColorRegistry.INSTANCE.getColorFromRegistry( 128,128,128));
	searchTextBox.setText(Constants.DEFAULT_SEARCH_TEXT);
	ExpressionEditorUtil.INSTANCE.addFocusListenerToSearchTextBox(searchTextBox);
	searchTextBox.addModifyListener(new ModifyListener() {
		
		@Override
		public void modifyText(ModifyEvent e) {
			evalDialogFieldTable.getTableViewer().resetFilters();
			if(!StringUtils.equals(Constants.DEFAULT_SEARCH_TEXT, searchTextBox.getText())){
				ViewerFilter filter=new ViewerFilter() {
					@Override
					public boolean select(Viewer viewer, Object parentElement, Object element) {
						if(element!=null && element instanceof FieldNameAndValue){
							FieldNameAndValue fieldNameAndValue=(FieldNameAndValue) element;
							if(StringUtils.containsIgnoreCase(fieldNameAndValue.getFieldName(),searchTextBox.getText()) ){
								return true;
							}
						}
						return false;
					}
				};
				ViewerFilter[] filters={filter};
				evalDialogFieldTable.getTableViewer().setFilters(filters);
			}
		}
	});
}
 
Example 20
Project: convertigo-eclipse   File: NewProjectWizardComposite11.java   View Source Code Vote up 4 votes
protected void initialize() {
	Label urlDescription = new Label(this, SWT.NONE);
	urlDescription.setText("Please enter a valid target host url :");
	GridData data0 = new GridData ();
	data0.horizontalAlignment = GridData.FILL;
	data0.grabExcessHorizontalSpace = true;
	data0.horizontalSpan = 2;
	urlDescription.setLayoutData (data0);
	
	targetUrl = new Text(this, SWT.NONE);
	targetUrl.setText("http://www.convertigo.com");
	GridData data1 = new GridData ();
	data1.horizontalAlignment = GridData.FILL;
	data1.grabExcessHorizontalSpace = true;
	data1.horizontalSpan = 2;
	targetUrl.setLayoutData (data1);

	GridData gridData4 = new GridData();
	gridData4.verticalIndent = 5;
	gridData4.grabExcessHorizontalSpace = false;
	
	Label label6 = new Label(this, SWT.NONE);
	label6.setText("Trust all certificates");
	label6.setLayoutData(gridData4);
	
	GridData gridData5 = new GridData();
	gridData5.verticalIndent = 5;
	gridData5.horizontalIndent = 2;

	trustCertificates = new Button(this, SWT.CHECK);
	trustCertificates.setLayoutData(gridData5);

	if (modifyListener != null) {
		targetUrl.addModifyListener(modifyListener);
		trustCertificates.addSelectionListener(selectionListener);
	}
	
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 2;
	this.setLayout(gridLayout);
	//setSize(new Point(402, 99));
}