/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
/** * load preferences from a shareable format (VCM-wise) */ private IEclipsePreferences loadPreferences() { IEclipsePreferences preferences = null; IPath projectMetaLocation = getPluginWorkingLocation(); if (projectMetaLocation != null) { File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile(); if (prefFile.exists()) { // load preferences from file InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(prefFile)); preferences = Platform.getPreferencesService().readPreferences(in); } catch (CoreException e) { // problems loading preference store - quietly ignore } catch (IOException e) { // problems loading preference store - quietly ignore } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore problems with close } } } // one shot read, delete old preferences prefFile.delete(); return preferences; } } return null; }
try { IExportedPreferences prefs; prefs = service.readPreferences(fis); PreferenceTransferElement[] transfers = super.getTransfers(); IPreferenceFilter[] filters = new IPreferenceFilter[transfers.length];
IExportedPreferences prefs = service.readPreferences(fis);