Codota Logo
OptionalMessageDialog.convertHorizontalDLUsToPixels
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain OptionalMessageDialog
private void myMethod () {
OptionalMessageDialog o =
  • Codota IconComposite composite;Layout layout;composite.setLayout(layout)
  • Codota IconLink link;String string;link.setText(string)
  • Codota IconLink link;Object object;link.setLayoutData(object)
  • Smart code suggestions by Codota
}
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.dialogsOptionalMessageDialogconvertHorizontalDLUsToPixels

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
  • convertVerticalDLUsToPixels
  • 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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • runOnUiThread (Activity)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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