Package org.eclipse.core.runtime.preferences

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.clear()


  public void setOptions(Map newOptions) {

    IEclipsePreferences projectPreferences = getEclipsePreferences();
    try {
      if (newOptions == null){
        projectPreferences.clear();
      } else {
        Iterator entries = newOptions.entrySet().iterator();
        while (entries.hasNext()){
          Map.Entry entry = (Map.Entry) entries.next();
          String key = (String) entry.getKey();
View Full Code Here


    try {
      IEclipsePreferences defaultPreferences = getDefaultPreferences();
      IEclipsePreferences instancePreferences = getInstancePreferences();

      if (newOptions == null){
        instancePreferences.clear();
      } else {
        Enumeration keys = newOptions.keys();
        while (keys.hasMoreElements()){
          String key = (String)keys.nextElement();
          if (!this.optionNames.contains(key)) continue; // unrecognized option
View Full Code Here

   
    private void writeProperties() {
        IEclipsePreferences node = getProjectPreferences(UI_STATE_NODE_ID);  
        try {
            // remove any old entries
            node.clear();
            for (Entry<String, String> entry : properties.entrySet()) {
                node.put(entry.getKey(), entry.getValue());
            }
            node.flush();
        } catch (BackingStoreException e) {
View Full Code Here

      IEclipsePreferences defaultPreferences = getDefaultPreferences();
      IEclipsePreferences instancePreferences = getInstancePreferences();

      if (newOptions == null){
        try {
          instancePreferences.clear();
        } catch(BackingStoreException e) {
          // ignore
        }
      } else {
        Enumeration keys = newOptions.keys();
View Full Code Here

    IEclipsePreferences projectPreferences = getEclipsePreferences();
    if (projectPreferences == null) return;
    try {
      if (newOptions == null){
        projectPreferences.clear();
      } else {
        Iterator entries = newOptions.entrySet().iterator();
        JavaModelManager javaModelManager = JavaModelManager.getJavaModelManager();
        while (entries.hasNext()){
          Map.Entry entry = (Map.Entry) entries.next();
View Full Code Here

    IEclipsePreferences projectPreferences = getEclipsePreferences();
    if (projectPreferences == null) return;
    try {
      if (newOptions == null){
        projectPreferences.clear();
      } else {
        Iterator entries = newOptions.entrySet().iterator();
        JavaModelManager javaModelManager = JavaModelManager.getJavaModelManager();
        while (entries.hasNext()){
          Map.Entry entry = (Map.Entry) entries.next();
View Full Code Here

    IEclipsePreferences defaultPreferences = getDefaultPreferences();
    IEclipsePreferences instancePreferences = getInstancePreferences();

    if (newOptions == null){
      try {
        instancePreferences.clear();
      } catch(BackingStoreException e) {
        // ignore
      }
    } else {
      Enumeration keys = newOptions.keys();
View Full Code Here

    IEclipsePreferences projectPreferences = getEclipsePreferences();
    if (projectPreferences == null) return;
    try {
      if (newOptions == null){
        projectPreferences.clear();
      } else {
        Iterator entries = newOptions.entrySet().iterator();
        JavaModelManager javaModelManager = JavaModelManager.getJavaModelManager();
        while (entries.hasNext()){
          Map.Entry entry = (Map.Entry) entries.next();
View Full Code Here

    IEclipsePreferences defaultPreferences = getDefaultPreferences();
    IEclipsePreferences instancePreferences = getInstancePreferences();

    if (newOptions == null){
      try {
        instancePreferences.clear();
      } catch(BackingStoreException e) {
        // ignore
      }
    } else {
      Enumeration keys = newOptions.keys();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.