public List readProfilesFromString(String profiles) throws CoreException { if (profiles != null && profiles.length() > 0) { byte[] bytes; try { bytes= profiles.getBytes(ENCODING); } catch (UnsupportedEncodingException e) { bytes= profiles.getBytes(); } InputStream is= new ByteArrayInputStream(bytes); try { List res= readProfilesFromStream(new InputSource(is)); if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i)); } } return res; } finally { try { is.close(); } catch (IOException e) { /* ignore */ } } } return null; }
public List<Profile> readProfilesFromString(String profiles) throws CoreException { if (profiles != null && profiles.length() > 0) { byte[] bytes; try { bytes= profiles.getBytes(ENCODING); } catch (UnsupportedEncodingException e) { bytes= profiles.getBytes(); } InputStream is= new ByteArrayInputStream(bytes); try { List<Profile> res= readProfilesFromStream(new InputSource(is)); if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i)); } } return res; } finally { try { is.close(); } catch (IOException e) { /* ignore */ } } } return null; }
public List<Profile> readProfilesFromString(String profiles) throws CoreException { if (profiles != null && profiles.length() > 0) { byte[] bytes; try { bytes= profiles.getBytes(ENCODING); } catch (UnsupportedEncodingException e) { bytes= profiles.getBytes(); } InputStream is= new ByteArrayInputStream(bytes); try { List<Profile> res= readProfilesFromStream(new InputSource(is)); if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i)); } } return res; } finally { try { is.close(); } catch (IOException e) { /* ignore */ } } } return null; }
if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i));
if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i));
if (res != null) { for (int i= 0; i < res.size(); i++) { fProfileVersioner.update((CustomProfile) res.get(i));
fProfileVersioner.update(profile); return profile.getSettings();
fProfileVersioner.update(profile); return profile.getSettings();
fProfileVersioner.update(profile); return profile.getSettings();
return; fProfileVersioner.update(profile); fProfileManager.addProfile(profile);
return; fProfileVersioner.update(profile); fProfileManager.addProfile(profile);
return; fProfileVersioner.update(profile); fProfileManager.addProfile(profile);