Package org.eclipse.php.internal.ui.folding

Examples of org.eclipse.php.internal.ui.folding.PHPFoldingStructureProviderDescriptor


  }

  void updateListDependencies() {
    String id = fStore
        .getString(PreferenceConstants.EDITOR_FOLDING_PROVIDER);
    PHPFoldingStructureProviderDescriptor desc = (PHPFoldingStructureProviderDescriptor) fProviderDescriptors
        .get(id);
    IPHPFoldingPreferenceBlock prefs;

    if (desc == null) {
      // safety in case there is no such descriptor
      String message = PHPUIMessages.FoldingConfigurationBlock_error_not_exist;
      PHPUiPlugin.log(new Status(IStatus.WARNING, PHPUiPlugin
          .getPluginId(), IStatus.OK, message, null));
      prefs = new ErrorPreferences(message);
    } else {
      prefs = (IPHPFoldingPreferenceBlock) fProviderPreferences.get(id);
      if (prefs == null) {
        try {
          prefs = desc.createPreferences();
          fProviderPreferences.put(id, prefs);
        } catch (CoreException e) {
          PHPUiPlugin.log(e);
          prefs = new ErrorPreferences(e.getLocalizedMessage());
        }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.folding.PHPFoldingStructureProviderDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.