Examples of exportPreferences()


Examples of org.eclipse.core.runtime.preferences.IPreferencesService.exportPreferences()

          MessageDialog.openError(getControl().getShell(), new String(), e.getLocalizedMessage());
          return false;
        }
        IPreferencesService service = Platform.getPreferencesService();
        try {
          service.exportPreferences(service.getRootNode(), transfers,
              fos);
        } catch (CoreException e) {
          WorkbenchPlugin.log(e.getMessage(), e);
          MessageDialog.openError(getControl().getShell(), new String(), e.getLocalizedMessage());
          return false;
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService.exportPreferences()

        // write the prefs to a byte array
        IPreferencesService service = Platform.getPreferencesService();
        IEclipsePreferences node = service.getRootNode();
        ByteArrayOutputStream stm = new ByteArrayOutputStream();
        try {
            service.exportPreferences(node, stm, null);
        } catch (CoreException e) {
            writer.println("Error reading preferences " + e.toString());//$NON-NLS-1$   
        }

        // copy the prefs from the byte array to the writer
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.