Bug 127861 [DataBinding] Mark API provisional
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest.java
final Shell promptShell = new Shell(shell, SWT.DIALOG_TRIM);
		{
			Label prompt = new Label(promptShell, SWT.WRAP);
			
			prompt.setText("Enter a the new item name");
			final Text promptText = new Text(promptShell, SWT.BORDER);
			promptText.setText(currentSelection.getName());
			
			Composite buttonBar = new Composite(promptShell, SWT.NONE);
			{
				Button okay = new Button(buttonBar, SWT.PUSH);
				okay.addSelectionListener(new SelectionAdapter() {
					/* (non-Javadoc)
					 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
					 */
					public void widgetSelected(SelectionEvent e) {
						currentSelection.setName(promptText.getText());
						promptShell.close();
					}
				});
				
				okay.setText("Okay");
				GridLayoutFactory.fillDefaults().numColumns(1).generateLayout(buttonBar);
			}
			GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(buttonBar);
		}
		
		GridLayoutFactory.fillDefaults().margins(LayoutConstants.getMargins()).generateLayout(promptShell);
		
		promptShell.pack();