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

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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