@Override protected IDialogSettings getDialogSettings() { return new DialogSettings("org.eclipse.pde.internal.ui.search.dialogs.FilteredTargetRepoIUSelectionDialog"); //$NON-NLS-1$ }
@Override public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
@Override public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8"));//$NON-NLS-1$ load(reader); reader.close(); }
Node n = l.item(i); if (root == n.getParentNode()) { DialogSettings s = new DialogSettings("NoName");//$NON-NLS-1$ s.load(document, (Element) n); addSection(s);
@Override public void put(String key, float value) { put(key, String.valueOf(value)); }
@Override public void save(String fileName) throws IOException { try (XMLWriter writer = new XMLWriter(new FileOutputStream(fileName))) { save(writer); } }
Node n = l.item(i); if (root == n.getParentNode()) { DialogSettings s = new DialogSettings("NoName");//$NON-NLS-1$ s.load(document, (Element) n); addSection(s);
public void put(String key, int value) { put(key, String.valueOf(value)); }
@Override public void save(String fileName) throws IOException { FileOutputStream stream = new FileOutputStream(fileName); XMLWriter writer = new XMLWriter(stream); save(writer); writer.close(); }
private DialogSettings createEmptySettings() { return new DialogSettings("Workbench"); //$NON-NLS-1$ }
Node n = l.item(i); if (root == n.getParentNode()) { DialogSettings s = new DialogSettings("NoName");//$NON-NLS-1$ s.load(document, (Element) n); addSection(s);
public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
public void put(String key, boolean value) { put(key, String.valueOf(value)); }
public void save(String fileName) throws IOException { FileOutputStream stream = new FileOutputStream(fileName); XMLWriter writer = new XMLWriter(stream); save(writer); writer.close(); }
public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8"));//$NON-NLS-1$ load(reader); reader.close(); }
/** * Returns the refactoring wizard's dialog settings. * * @return the refactoring wizard's dialog settings or <code>null</code> * if no settings are associated with the refactoring wizard dialog */ protected IDialogSettings getRefactoringSettings() { IDialogSettings settings= getDialogSettings(); if (settings == null) return null; IDialogSettings result= settings.getSection(REFACTORING_SETTINGS); if (result == null) { result= new DialogSettings(REFACTORING_SETTINGS); settings.addSection(result); } return result; } }
@Override public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
@Override public void put(String key, int value) { put(key, String.valueOf(value)); }
@Override public void save(Writer writer) throws IOException { final XMLWriter xmlWriter = new XMLWriter(writer); save(xmlWriter); xmlWriter.flush(); }
@Override public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, StandardCharsets.UTF_8)); load(reader); reader.close(); }