Codota Logo
MultiElementListSelectionDialog
Code IndexAdd Codota to your IDE (free)

How to use
MultiElementListSelectionDialog
in
org.eclipse.jdt.internal.ui.dialogs

Best Java code snippets using org.eclipse.jdt.internal.ui.dialogs.MultiElementListSelectionDialog (Showing top 20 results out of 315)

  • Common ways to obtain MultiElementListSelectionDialog
private void myMethod () {
MultiElementListSelectionDialog m =
  • Codota IconMultiElementListSelectionDialog multiElementListSelectionDialog;multiElementListSelectionDialog.handleSelectionChanged()
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected Control createDialogArea(Composite parent) {
  Composite contents= (Composite) super.createDialogArea(parent);
  createMessageArea(contents);
  createFilterText(contents);
  createFilteredList(contents);
  fCurrentPage= 0;
  setPageData();
  applyDialogFont(contents);
  return contents;
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * @see AbstractElementListSelectionDialog#handleDefaultSelected() 
 */
protected void handleDefaultSelected() {
  if (validateCurrentSelection()) {
    if (fCurrentPage == fNumberOfPages - 1) {
      buttonPressed(IDialogConstants.OK_ID);
    } else {
      buttonPressed(IDialogConstants.NEXT_ID);
    }
  }
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected void createButtonsForButtonBar(Composite parent) {
  fSkipButton= createButton(parent, IDialogConstants.SKIP_ID, IDialogConstants.SKIP_LABEL, false);
  fBackButton= createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false);
  
  // XXX: Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=279425
  boolean HAS_BUG_279425= true;
  fNextButton= createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, !HAS_BUG_279425);
  fFinishButton= createButton(parent, IDialogConstants.OK_ID, IDialogConstants.FINISH_LABEL, HAS_BUG_279425);
  
  createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected void buttonPressed(int buttonId) {
  if (buttonId == IDialogConstants.SKIP_ID) {
    boolean isLastPage= fCurrentPage == fNumberOfPages - 1 ? true : false;
    turnPage(true, true);
    if (isLastPage) {
      buttonPressed(IDialogConstants.OK_ID);
    }
  } else if (buttonId == IDialogConstants.BACK_ID) {
    turnPage(false, false);
  } else if (buttonId == IDialogConstants.NEXT_ID) {
    turnPage(true, false);
  } else {
    super.buttonPressed(buttonId);
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

dialog.setTitle(ActionMessages.OrganizeImportsAction_selectiondialog_title); 
dialog.setMessage(ActionMessages.OrganizeImportsAction_selectiondialog_message);
dialog.setElements(openChoices);
dialog.setComparator(ORGANIZE_IMPORT_COMPARATOR);
if (dialog.open() == Window.OK) {
  Object[] res= dialog.getResult();			
  result= new TypeNameMatch[res.length];
  for (int i= 0; i < res.length; i++) {
origin: org.eclipse/org.eclipse.jdt.ui

protected Label createMessageArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= 0;
  layout.marginWidth= 0;
  layout.horizontalSpacing= 5;
  layout.numColumns= 2;
  composite.setLayout(layout);
  
  GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  composite.setLayoutData(data);
  
  Label messageLabel= super.createMessageArea(composite);
  
  fPageInfoLabel= new Label(composite, SWT.NULL);
  fPageInfoLabel.setText(getPageInfoMessage());
  
  data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  data.horizontalAlignment= GridData.END;
  fPageInfoLabel.setLayoutData(data);
  applyDialogFont(messageLabel);
  return messageLabel;
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  @Override
  protected void handleSelectionChanged() {
    super.handleSelectionChanged();
    // show choices in editor
    doListSelectionChanged(getCurrentPage(), ranges, editor);
  }
};
origin: org.eclipse.jdt/org.eclipse.jdt.ui

dialog.setTitle(ActionMessages.OrganizeImportsAction_selectiondialog_title);
dialog.setMessage(ActionMessages.OrganizeImportsAction_selectiondialog_message);
dialog.setElements(openChoices);
dialog.setComparator(ORGANIZE_IMPORT_COMPARATOR);
if (dialog.open() == Window.OK) {
  Object[] res= dialog.getResult();
  result= new TypeNameMatch[res.length];
  for (int i= 0; i < res.length; i++) {
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected Label createMessageArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= 0;
  layout.marginWidth= 0;
  layout.horizontalSpacing= 5;
  layout.numColumns= 2;
  composite.setLayout(layout);
  GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  composite.setLayoutData(data);
  Label messageLabel= super.createMessageArea(composite);
  fPageInfoLabel= new Label(composite, SWT.NULL);
  fPageInfoLabel.setText(getPageInfoMessage());
  data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  data.horizontalAlignment= GridData.END;
  fPageInfoLabel.setLayoutData(data);
  applyDialogFont(messageLabel);
  return messageLabel;
}
origin: org.eclipse/org.eclipse.ajdt.ui

  protected void handleSelectionChanged() {
    super.handleSelectionChanged();
    // show choices in editor
    doListSelectionChanged(getCurrentPage(), ranges);
  }
};
origin: org.eclipse/org.eclipse.jdt.ui

dialog.setTitle(ActionMessages.OrganizeImportsAction_selectiondialog_title); 
dialog.setMessage(ActionMessages.OrganizeImportsAction_selectiondialog_message);
dialog.setElements(openChoices);
dialog.setComparator(ORGANIZE_IMPORT_COMPARATOR);
if (dialog.open() == Window.OK) {
  Object[] res= dialog.getResult();			
  result= new TypeNameMatch[res.length];
  for (int i= 0; i < res.length; i++) {
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected Control createDialogArea(Composite parent) {
  Composite contents= (Composite) super.createDialogArea(parent);
  createMessageArea(contents);
  createFilterText(contents);
  createFilteredList(contents);
  fCurrentPage= 0;
  setPageData();
  applyDialogFont(contents);
  return contents;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * @see AbstractElementListSelectionDialog#handleDefaultSelected()
 */
@Override
protected void handleDefaultSelected() {
  if (validateCurrentSelection()) {
    if (fCurrentPage == fNumberOfPages - 1) {
      buttonPressed(IDialogConstants.OK_ID);
    } else {
      buttonPressed(IDialogConstants.NEXT_ID);
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected Label createMessageArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= 0;
  layout.marginWidth= 0;
  layout.horizontalSpacing= 5;
  layout.numColumns= 2;
  composite.setLayout(layout);
  GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  composite.setLayoutData(data);
  Label messageLabel= super.createMessageArea(composite);
  fPageInfoLabel= new Label(composite, SWT.NULL);
  fPageInfoLabel.setText(getPageInfoMessage());
  data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  data.horizontalAlignment= GridData.END;
  fPageInfoLabel.setLayoutData(data);
  applyDialogFont(messageLabel);
  return messageLabel;
}
origin: org.eclipse/org.eclipse.jdt.ui

  protected void handleSelectionChanged() {
    super.handleSelectionChanged();
    // show choices in editor
    doListSelectionChanged(getCurrentPage(), ranges, editor);
  }
};
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected void createButtonsForButtonBar(Composite parent) {
  fBackButton= createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false);
  
  // XXX: Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=279425
  boolean HAS_BUG_279425= true;
  fNextButton= createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, !HAS_BUG_279425);
  fFinishButton= createButton(parent, IDialogConstants.OK_ID, IDialogConstants.FINISH_LABEL, HAS_BUG_279425);
  
  createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

dialog.setTitle(ActionMessages.OrganizeImportsAction_selectiondialog_title);
dialog.setMessage(ActionMessages.OrganizeImportsAction_selectiondialog_message);
dialog.setElements(openChoices);
dialog.setComparator(ORGANIZE_IMPORT_COMPARATOR);
if (dialog.open() == Window.OK) {
  Object[] res= dialog.getResult();
  result= new TypeNameMatch[res.length];
  for (int i= 0; i < res.length; i++) {
origin: org.eclipse/org.eclipse.jdt.ui

protected Control createDialogArea(Composite parent) {
  Composite contents= (Composite) super.createDialogArea(parent);
  createMessageArea(contents);
  createFilterText(contents);
  createFilteredList(contents);
  fCurrentPage= 0;
  setPageData();
  
  applyDialogFont(contents);		
  return contents;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * @see AbstractElementListSelectionDialog#handleDefaultSelected()
 */
@Override
protected void handleDefaultSelected() {
  if (validateCurrentSelection()) {
    if (fCurrentPage == fNumberOfPages - 1) {
      buttonPressed(IDialogConstants.OK_ID);
    } else {
      buttonPressed(IDialogConstants.NEXT_ID);
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  protected void handleSelectionChanged() {
    super.handleSelectionChanged();
    // show choices in editor
    doListSelectionChanged(getCurrentPage(), ranges, editor);
  }
};
org.eclipse.jdt.internal.ui.dialogsMultiElementListSelectionDialog

Javadoc

A class to select elements out of a list of elements, organized on multiple pages.

Most used methods

  • getResult
  • handleSelectionChanged
  • open
  • setComparator
    Set the Comparator used to sort the elements in the List.
  • setElements
    Sets the elements to be displayed in the dialog.
  • setMessage
  • setTitle
  • applyDialogFont
  • buttonPressed
  • createButton
  • createFilterText
  • createFilteredList
  • createFilterText,
  • createFilteredList,
  • createMessageArea,
  • getFilter,
  • getInitialElementSelections,
  • getPageInfoMessage,
  • getSelectedElements,
  • getShell,
  • initializeResult,
  • setFilter

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now