Java Code Examples for org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField#doFillIntoGrid()

The following examples show how to use org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField#doFillIntoGrid() . 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: ClientBundleResourceDialog.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
private void createFileControls(Composite parent, int nColumns) {
  fileField = new StringButtonDialogField(fieldAdapter);
  fileField.setLabelText("File:");
  fileField.setButtonLabel("Browse...");
  fileField.doFillIntoGrid(parent, nColumns);
  Text text = fileField.getTextControl(null);
  LayoutUtil.setWidthHint(text, getMaxFieldWidth());
  LayoutUtil.setHorizontalGrabbing(fileField.getTextControl(null));
  fileField.postSetFocusOnDialogField(parent.getDisplay());
}
 
Example 2
Source File: ClientBundleResourceDialog.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
private void createResourceTypeControls(Composite parent, int nColumns) {
  resourceTypeField = new StringButtonDialogField(fieldAdapter);
  resourceTypeField.setLabelText("Resource type:");
  resourceTypeField.setButtonLabel("Browse...");
  resourceTypeField.doFillIntoGrid(parent, nColumns);
  Text text = resourceTypeField.getTextControl(null);
  LayoutUtil.setWidthHint(text, getMaxFieldWidth());

  // Set up auto-completion
  JavaTypeCompletionProcessor resourceTypeCompletionProcessor = new JavaTypeCompletionProcessorWithAutoActivation();
  resourceTypeCompletionProcessor.setPackageFragment(pckgFragment);
  ControlContentAssistHelper.createTextContentAssistant(text,
      resourceTypeCompletionProcessor);
  TextFieldNavigationHandler.install(text);
}
 
Example 3
Source File: AddResourcesToClientBundleDialog.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
private void createClientBundleTypeControls(Composite parent, int nColumns) {
  clientBundleTypeField = new StringButtonDialogField(fieldAdapter);
  clientBundleTypeField.setLabelText("ClientBundle:");
  clientBundleTypeField.setButtonLabel("Browse...");
  clientBundleTypeField.doFillIntoGrid(parent, nColumns);
  Text text = clientBundleTypeField.getTextControl(null);
  LayoutUtil.setWidthHint(text, getMaxFieldWidth());

  // Set up auto-completion
  resourceTypeCompletionProcessor = new JavaTypeCompletionProcessorWithAutoActivation();
  ControlContentAssistHelper.createTextContentAssistant(text,
      resourceTypeCompletionProcessor);
  TextFieldNavigationHandler.install(text);
}
 
Example 4
Source File: AddResourcesToClientBundleDialog.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
private void createProjectControls(Composite parent, int nColumns) {
  projectField = new StringButtonDialogField(fieldAdapter);
  projectField.setLabelText("Project:");
  projectField.setButtonLabel("Browse...");
  projectField.doFillIntoGrid(parent, nColumns);
  Text text = projectField.getTextControl(null);
  LayoutUtil.setWidthHint(text, getMaxFieldWidth());
  LayoutUtil.setHorizontalGrabbing(projectField.getTextControl(null));
}