org.eclipse.jdt.internal.ui.wizards.dialogfields.IStringButtonAdapter Java Examples

The following examples show how to use org.eclipse.jdt.internal.ui.wizards.dialogfields.IStringButtonAdapter. 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: NewAsyncRemoteServiceInterfaceCreationWizardPage.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 6 votes vote down vote up
public NewAsyncRemoteServiceInterfaceCreationWizardPage(
    ITypeBinding syncTypeBinding) {
  super();
  this.syncTypeBinding = syncTypeBinding;
  syncTypeDialogField = new StringButtonDialogField(
      new IStringButtonAdapter() {
        public void changeControlPressed(DialogField field) {
          // Purposely ignored
        }
      });
  syncTypeDialogField.setButtonLabel("Browse...");
  syncTypeDialogField.setLabelText("Synchronous type:");
  syncTypeDialogField.setEnabled(false);
  syncTypeDialogField.setText(syncTypeBinding.getQualifiedName());
  ImageDescriptor imageDescriptor = GWTPlugin.getDefault().getImageRegistry().getDescriptor(
      GWTImages.NEW_ASYNC_INTERFACE_LARGE);
  setImageDescriptor(imageDescriptor);
  setDescription("Create a new asynchronous remote service interface");
}
 
Example #2
Source File: SourceFolderSelectionDialogButtonField.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
public SourceFolderSelectionDialogButtonField(String descriptionLabel, String browseLabel, IStringButtonAdapter adapter) {
	super(adapter);
	setContentAssistProcessor(new JavaSourcePackageFragmentRootCompletionProcessor());
	setLabelText(descriptionLabel);
	setButtonLabel(browseLabel);
	setDialogFieldListener(this);
}
 
Example #3
Source File: PackageFragmentSelection.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
public PackageFragmentSelection(SourceFirstPackageSelectionDialogField field, String packageLabel, String browseLabel,
	String statusHint, IStringButtonAdapter adapter) {
	super(adapter);
	fDialogField= field;
	setLabelText(packageLabel);
	setButtonLabel(browseLabel);
	setStatusWidthHint(statusHint);
	fCurrPackageCompletionProcessor= new JavaPackageCompletionProcessor();
}
 
Example #4
Source File: VariablePathDialogField.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public VariablePathDialogField(IStringButtonAdapter adapter) {
	super(adapter);
}