Tabnine Logo
WizardPageSupport
Code IndexAdd Tabnine to your IDE (free)

How to use
WizardPageSupport
in
org.eclipse.jface.databinding.wizard

Best Java code snippets using org.eclipse.jface.databinding.wizard.WizardPageSupport (Showing top 3 results out of 315)

origin: org.eclipse.platform/org.eclipse.jface.databinding

/**
 * Connect the validation result from the given data binding context to the
 * given wizard page. Upon creation, the wizard page support will use the
 * context's validation result to determine whether the page is complete.
 * The page's error message will not be set at this time ensuring that the
 * wizard page does not show an error right away. Upon any validation result
 * change, {@link WizardPage#setPageComplete(boolean)} will be called
 * reflecting the new validation result, and the wizard page's error message
 * will be updated according to the current validation result.
 *
 * @param wizardPage
 * @param dbc
 * @return an instance of WizardPageSupport
 */
public static WizardPageSupport create(WizardPage wizardPage,
    DataBindingContext dbc) {
  return new WizardPageSupport(wizardPage, dbc);
}
origin: org.eclipse.platform/org.eclipse.jface.databinding

  @Override
  protected void handleStatusChanged() {
    super.handleStatusChanged();
    boolean pageComplete = true;
    if (currentStatusStale) {
      pageComplete = false;
    } else if (currentStatus != null) {
      pageComplete = !currentStatus.matches(IStatus.ERROR
          | IStatus.CANCEL);
    }
    ((WizardPage) getDialogPage()).setPageComplete(pageComplete);
  }
}
origin: org.eclipse.mylyn.commons.repositories/ui

WizardPage wizardPage = getContainer(WizardPage.class);
if (wizardPage != null) {
  WizardPageSupport.create(wizardPage, bindingContext);
} else {
  DialogPage page = getContainer(DialogPage.class);
org.eclipse.jface.databinding.wizardWizardPageSupport

Javadoc

Connects the validation result from the given data binding context to the given wizard page, updating the wizard page's completion state and its error message accordingly.

The completion state of the wizard page will only be set to true if all of the following conditions are met:

  • The validation result from the data binding context has none of the severities IStatus#ERROR or IStatus#CANCEL.
  • None of the validation status observables of the data binding context is stale.

Most used methods

  • <init>
  • create
    Connect the validation result from the given data binding context to the given wizard page. Upon cre
  • getDialogPage

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFrame (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now