congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OptionalMessageDialog.convertVerticalDLUsToPixels
Code IndexAdd Tabnine to your IDE (free)

How to use
convertVerticalDLUsToPixels
method
in
org.eclipse.jdt.internal.ui.dialogs.OptionalMessageDialog

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

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

protected Control createCustomArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
  layout.marginWidth= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
  layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
  composite.setLayout(layout);
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  
  fHideDialogCheckBox= new Button(composite, SWT.CHECK | SWT.LEFT);
  fHideDialogCheckBox.setText(CHECKBOX_TEXT);
  fHideDialogCheckBox.addSelectionListener(new SelectionAdapter() {
    public void widgetSelected(SelectionEvent e) {
      setDialogEnabled(fId, !((Button)e.widget).getSelection());
    }
  });
  applyDialogFont(fHideDialogCheckBox);
  return fHideDialogCheckBox;
}

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

@Override
protected Control createCustomArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
  layout.marginWidth= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
  layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
  composite.setLayout(layout);
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  fHideDialogCheckBox= new Button(composite, SWT.CHECK | SWT.LEFT);
  fHideDialogCheckBox.setText(fCheckBoxText);
  fHideDialogCheckBox.addSelectionListener(new SelectionAdapter() {
    @Override
    public void widgetSelected(SelectionEvent e) {
      setDialogEnabled(fId, !((Button)e.widget).getSelection());
    }
  });
  applyDialogFont(fHideDialogCheckBox);
  return fHideDialogCheckBox;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected Control createCustomArea(Composite parent) {
  Composite composite= new Composite(parent, SWT.NONE);
  GridLayout layout= new GridLayout();
  layout.marginHeight= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
  layout.marginWidth= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
  layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
  composite.setLayout(layout);
  composite.setLayoutData(new GridData(GridData.FILL_BOTH));
  fHideDialogCheckBox= new Button(composite, SWT.CHECK | SWT.LEFT);
  fHideDialogCheckBox.setText(fCheckBoxText);
  fHideDialogCheckBox.addSelectionListener(new SelectionAdapter() {
    @Override
    public void widgetSelected(SelectionEvent e) {
      setDialogEnabled(fId, !((Button)e.widget).getSelection());
    }
  });
  applyDialogFont(fHideDialogCheckBox);
  return fHideDialogCheckBox;
}
org.eclipse.jdt.internal.ui.dialogsOptionalMessageDialogconvertVerticalDLUsToPixels

Popular methods of OptionalMessageDialog

  • isDialogEnabled
    Answers whether the optional dialog is enabled and should be shown.
  • <init>
  • applyDialogFont
  • clearAllRememberedStates
    Clears all remembered information about hidden dialogs
  • close
  • convertHorizontalDLUsToPixels
  • createContents
  • createCustomArea
  • getDialogSettings
    Returns this dialog
  • open
    Opens the dialog but only if the user hasn't chosen to hide it.
  • setDialogEnabled
    Sets whether the optional dialog is enabled and should be shown.
  • getButtonLabels
  • setDialogEnabled,
  • getButtonLabels,
  • getReturnCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top plugins for WebStorm
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