public synchronized void save() { IPath stateLocation= JavaPlugin.getDefault().getStateLocation().append(fFileName); File file= stateLocation.toFile(); OutputStream out= null; try { out= new FileOutputStream(file); save(out); } catch (IOException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } catch (TransformerFactoryConfigurationError e) { // The XML library can be misconficgured (e.g. via // -Djava.endorsed.dirs=C:\notExisting\xerces-2_7_1) JavaPlugin.log(e); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { JavaPlugin.log(e); } } }
public synchronized void save() { IPath stateLocation= JavaPlugin.getDefault().getStateLocation().append(fFileName); File file= stateLocation.toFile(); OutputStream out= null; try { out= new FileOutputStream(file); save(out); } catch (IOException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } catch (TransformerFactoryConfigurationError e) { // The XML library can be misconficgured (e.g. via // -Djava.endorsed.dirs=C:\notExisting\xerces-2_7_1) JavaPlugin.log(e); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { JavaPlugin.log(e); } } }
public synchronized void save() { IPath stateLocation= JavaPlugin.getDefault().getStateLocation().append(fFileName); File file= new File(stateLocation.toOSString()); OutputStream out= null; try { out= new FileOutputStream(file); save(out); } catch (IOException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } catch (TransformerFactoryConfigurationError e) { // The XML library can be misconficgured (e.g. via // -Djava.endorsed.dirs=C:\notExisting\xerces-2_7_1) JavaPlugin.log(e); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { JavaPlugin.log(e); } } }