congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OptionalMessageDialog.convertHorizontalDLUsToPixels
Code IndexAdd Tabnine 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)

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 post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Join (org.hibernate.mapping)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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