congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OptionalMessageDialog.isDialogEnabled
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Opens the dialog but only if the user hasn't chosen to hide it.
 *
 * @return the index of the pressed button or {@link SWT#DEFAULT} if the dialog got dismissed
 *         without pressing a button (e.g. via Esc) or {{@link #NOT_SHOWN} if the dialog was not
 *         shown
 */
public static int open(String id, Shell parent, String title, Image titleImage, String message, int dialogType, String[] buttonLabels, int defaultButtonIndex, String checkboxText) {
  if (!isDialogEnabled(id))
    return OptionalMessageDialog.NOT_SHOWN;
  MessageDialog dialog= new OptionalMessageDialog(id, parent, title, titleImage, message, dialogType, buttonLabels, defaultButtonIndex, checkboxText);
  return dialog.open();
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Opens the dialog but only if the user hasn't choosen to hide it.
 * Returns <code>NOT_SHOWN</code> if the dialog was not shown.
 */
public static int open(String id, Shell parent, String title, Image titleImage, String message, int dialogType, String[] buttonLabels, int defaultButtonIndex) {
  if (!isDialogEnabled(id))
    return OptionalMessageDialog.NOT_SHOWN;
  
  MessageDialog dialog= new OptionalMessageDialog(id, parent, title, titleImage, message, dialogType, buttonLabels, defaultButtonIndex);
  return dialog.open();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Opens the dialog but only if the user hasn't chosen to hide it.
 *
 * @return the index of the pressed button or {@link SWT#DEFAULT} if the dialog got dismissed
 *         without pressing a button (e.g. via Esc) or {{@link #NOT_SHOWN} if the dialog was not
 *         shown
 */
public static int open(String id, Shell parent, String title, Image titleImage, String message, int dialogType, String[] buttonLabels, int defaultButtonIndex, String checkboxText) {
  if (!isDialogEnabled(id))
    return OptionalMessageDialog.NOT_SHOWN;
  MessageDialog dialog= new OptionalMessageDialog(id, parent, title, titleImage, message, dialogType, buttonLabels, defaultButtonIndex, checkboxText);
  return dialog.open();
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void showSlowCleanUpDialog(final StringBuilder cleanUpNames) {
  if (OptionalMessageDialog.isDialogEnabled(SlowCleanUpWarningDialog.ID)) {
    Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    new SlowCleanUpWarningDialog(shell, FixMessages.CleanUpPostSaveListener_SlowCleanUpDialog_title, cleanUpNames.toString()).open();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void showSlowCleanUpDialog(final StringBuffer cleanUpNames) {
  if (OptionalMessageDialog.isDialogEnabled(SlowCleanUpWarningDialog.ID)) {
    Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    new SlowCleanUpWarningDialog(shell, FixMessages.CleanUpPostSaveListener_SlowCleanUpDialog_title, cleanUpNames.toString()).open();
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

protected void warnAboutTypeCommentDeprecation() {
  String key= IUIConstants.DIALOGSTORE_TYPECOMMENT_DEPRECATED;
  if (OptionalMessageDialog.isDialogEnabled(key)) {
    TemplateStore templates= JavaPlugin.getDefault().getTemplateStore();
    boolean isOldWorkspace= templates.findTemplate("filecomment") != null && templates.findTemplate("typecomment") != null; //$NON-NLS-1$ //$NON-NLS-2$
    if (!isOldWorkspace) {
      OptionalMessageDialog.setDialogEnabled(key, false);
    }
    String title= NewWizardMessages.NewElementWizard_typecomment_deprecated_title;
    String message= NewWizardMessages.NewElementWizard_typecomment_deprecated_message;
    OptionalMessageDialog.open(key, getShell(), title, null, message, MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0);
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

protected void warnAboutTypeCommentDeprecation() {
  String key= IUIConstants.DIALOGSTORE_TYPECOMMENT_DEPRECATED;
  if (OptionalMessageDialog.isDialogEnabled(key)) {
    TemplateStore templates= JavaPlugin.getDefault().getTemplateStore();
    boolean isOldWorkspace= templates.findTemplate("filecomment") != null && templates.findTemplate("typecomment") != null; //$NON-NLS-1$ //$NON-NLS-2$
    if (!isOldWorkspace) {
      OptionalMessageDialog.setDialogEnabled(key, false);
    }
    String title= NewWizardMessages.NewElementWizard_typecomment_deprecated_title; 
    String message= NewWizardMessages.NewElementWizard_typecomment_deprecated_message; 
    OptionalMessageDialog.open(key, getShell(), title, null, message, MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

protected void warnAboutTypeCommentDeprecation() {
  String key= IUIConstants.DIALOGSTORE_TYPECOMMENT_DEPRECATED;
  if (OptionalMessageDialog.isDialogEnabled(key)) {
    TemplateStore templates= JavaPlugin.getDefault().getTemplateStore();
    boolean isOldWorkspace= templates.findTemplate("filecomment") != null && templates.findTemplate("typecomment") != null; //$NON-NLS-1$ //$NON-NLS-2$
    if (!isOldWorkspace) {
      OptionalMessageDialog.setDialogEnabled(key, false);
    }
    String title= NewWizardMessages.NewElementWizard_typecomment_deprecated_title;
    String message= NewWizardMessages.NewElementWizard_typecomment_deprecated_message;
    OptionalMessageDialog.open(key, getShell(), title, null, message, MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

if (OptionalMessageDialog.isDialogEnabled(PREF_WARN_ABOUT_EMPTY_ASSIST_CATEGORY)) {
  final Shell shell= JavaPlugin.getActiveWorkbenchShell();
  String title= JavaTextMessages.ContentAssistProcessor_all_disabled_title;
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

if (OptionalMessageDialog.isDialogEnabled(PREF_WARN_ABOUT_EMPTY_ASSIST_CATEGORY)) {
  final Shell shell= JavaPlugin.getActiveWorkbenchShell();
  String title= JavaTextMessages.ContentAssistProcessor_all_disabled_title;
origin: org.eclipse/org.eclipse.jdt.ui

if (OptionalMessageDialog.isDialogEnabled(PREF_WARN_ABOUT_EMPTY_ASSIST_CATEGORY)) {
  final Shell shell= JavaPlugin.getActiveWorkbenchShell();
  String title= JavaTextMessages.ContentAssistProcessor_all_disabled_title;
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean performFinish() {
  LibraryHandler libraryHandler= fJarPackageWizardPage.getLibraryHandler();
  fJarPackage.setJarBuilder(libraryHandler.getBuilder(fJarPackage));
  MultiStatus status= new MultiStatus(JavaPlugin.getPluginId(), IStatus.OK, FatJarPackagerMessages.FatJarPackageWizard_JarExportProblems_message, null);
  Object[] elements= fJarPackageWizardPage.getSelectedElementsWithoutContainedChildren(status);
  fJarPackage.setElements(elements);
  if ((libraryHandler.isShowWarning()) && hasArchive(elements)) {
    if (OptionalMessageDialog.isDialogEnabled(IPIssueWarningDialog.ID)) {
      IPIssueWarningDialog dialog= new IPIssueWarningDialog(getShell(), FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_title,
          FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_message);
      if (dialog.open() != Window.OK)
        return false;
    }
  }
  fJarPackageWizardPage.exportAntScript(status);
  if (!executeExportOperation(fJarPackage.createJarExportRunnable(getShell()), status))
    return false;
  // Save the dialog settings
  if (fHasNewDialogSettings) {
    IDialogSettings workbenchSettings= JavaPlugin.getDefault().getDialogSettings();
    IDialogSettings section= workbenchSettings.getSection(DIALOG_SETTINGS_KEY);
    section= workbenchSettings.addNewSection(DIALOG_SETTINGS_KEY);
    setDialogSettings(section);
  }
  fJarPackageWizardPage.finish();
  return true;
}
origin: io.sarl/io.sarl.eclipse

@Override
public boolean performFinish() {
  LibraryHandler libraryHandler= fJarPackageWizardPage.getLibraryHandler();
  fJarPackage.setJarBuilder(libraryHandler.getBuilder(fJarPackage));
  MultiStatus status= new MultiStatus(JavaPlugin.getPluginId(), IStatus.OK, FatJarPackagerMessages.FatJarPackageWizard_JarExportProblems_message, null);
  Object[] elements= fJarPackageWizardPage.getSelectedElementsWithoutContainedChildren(status);
  fJarPackage.setElements(elements);
  if ((libraryHandler.isShowWarning()) && hasArchive(elements)) {
    if (OptionalMessageDialog.isDialogEnabled(IPIssueWarningDialog.ID)) {
      IPIssueWarningDialog dialog= new IPIssueWarningDialog(getShell(), FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_title,
          FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_message);
      if (dialog.open() != Window.OK)
        return false;
    }
  }
  fJarPackageWizardPage.exportAntScript(status);
  if (!executeExportOperation(fJarPackage.createJarExportRunnable(getShell()), status))
    return false;
  // Save the dialog settings
  if (fHasNewDialogSettings) {
    IDialogSettings workbenchSettings= JavaPlugin.getDefault().getDialogSettings();
    IDialogSettings section= workbenchSettings.getSection(DIALOG_SETTINGS_KEY);
    section= workbenchSettings.addNewSection(DIALOG_SETTINGS_KEY);
    setDialogSettings(section);
  }
  fJarPackageWizardPage.finish();
  return true;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public boolean performFinish() {
  LibraryHandler libraryHandler= fJarPackageWizardPage.getLibraryHandler();
  fJarPackage.setJarBuilder(libraryHandler.getBuilder(fJarPackage));
  MultiStatus status= new MultiStatus(JavaPlugin.getPluginId(), IStatus.OK, FatJarPackagerMessages.FatJarPackageWizard_JarExportProblems_message, null);
  Object[] elements= fJarPackageWizardPage.getSelectedElementsWithoutContainedChildren(status);
  fJarPackage.setElements(elements);
  if ((libraryHandler.isShowWarning()) && hasArchive(elements)) {
    if (OptionalMessageDialog.isDialogEnabled(IPIssueWarningDialog.ID)) {
      IPIssueWarningDialog dialog= new IPIssueWarningDialog(getShell(), FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_title,
          FatJarPackagerMessages.FatJarPackageWizard_IPIssueDialog_message);
      if (dialog.open() != Window.OK)
        return false;
    }
  }
  fJarPackageWizardPage.exportAntScript(status);
  if (!executeExportOperation(fJarPackage.createJarExportRunnable(getShell()), status))
    return false;
  // Save the dialog settings
  if (fHasNewDialogSettings) {
    IDialogSettings workbenchSettings= JavaPlugin.getDefault().getDialogSettings();
    IDialogSettings section= workbenchSettings.getSection(DIALOG_SETTINGS_KEY);
    section= workbenchSettings.addNewSection(DIALOG_SETTINGS_KEY);
    setDialogSettings(section);
  }
  fJarPackageWizardPage.finish();
  return true;
}
org.eclipse.jdt.internal.ui.dialogsOptionalMessageDialogisDialogEnabled

Javadoc

Answers whether the optional dialog is enabled and should be shown.

Popular methods of OptionalMessageDialog

  • <init>
  • applyDialogFont
  • clearAllRememberedStates
    Clears all remembered information about hidden dialogs
  • close
  • convertHorizontalDLUsToPixels
  • 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

  • Start an intent from android
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 25 Plugins for Webstorm
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