public BndEditModel(IDocument document) throws IOException { this(); loadFrom(document); }
public BndEditModel(IDocument document) throws IOException { this(); loadFrom(document); }
public void loadFrom(File file) throws IOException { loadFrom(new BufferedInputStream(new FileInputStream(file))); }
public void loadFrom(IDocument document) throws IOException { InputStream inputStream = new ByteArrayInputStream(document.get().getBytes(ISO_8859_1)); loadFrom(inputStream); }
public void loadFrom(File file) throws IOException { loadFrom(IO.stream(file)); }
public void loadFrom(File file) throws IOException { loadFrom(IO.stream(file)); }
public void loadFrom(IDocument document) throws IOException { try (InputStream in = toEscaped(document.get())) { loadFrom(in); } }
public void loadFrom(IDocument document) throws IOException { try (InputStream in = toEscaped(document.get())) { loadFrom(in); } }
public void loadFrom(IDocument document) throws IOException { InputStream in = toEscaped(document.get()); loadFrom(in); }
public void loadFrom(InputStream inputStream) throws IOException { try { // Clear and load // The reason we skip standalone workspace properties // as parent is that they are copy of the Run file. // and confuse this edit model when you remove a // property. if (this.workspace != null && this.workspace.getLayout() != WorkspaceLayout.STANDALONE) { properties = (Properties) this.workspace.getProperties() .clone(); } else { properties.clear(); } properties.load(inputStream); objectProperties.clear(); changesToSave.clear(); // Fire property changes on all known property names for (String prop : KNOWN_PROPERTIES) { // null values for old and new forced the change to be fired propChangeSupport.firePropertyChange(prop, null, null); } } finally { inputStream.close(); } }
public void loadFrom(IDocument document) throws IOException { InputStream in = toEscaped(document.get()); loadFrom(in); }
public void loadFrom(InputStream inputStream) throws IOException { try { // Clear and load // The reason we skip standalone workspace properties // as parent is that they are copy of the Run file. // and confuse this edit model when you remove a // property. if (this.workspace != null && this.workspace.getLayout() != WorkspaceLayout.STANDALONE) { properties = (Properties) this.workspace.getProperties() .clone(); } else { properties.clear(); } properties.load(inputStream); objectProperties.clear(); changesToSave.clear(); // Fire property changes on all known property names for (String prop : KNOWN_PROPERTIES) { // null values for old and new forced the change to be fired propChangeSupport.firePropertyChange(prop, null, null); } } finally { inputStream.close(); } }
BndEditModel bem = new BndEditModel(getWorkspace()); Document doc = new Document(IO.collect(runFile)); bem.loadFrom(doc);
BndEditModel bem = new BndEditModel(getWorkspace()); Document doc = new Document(IO.collect(runFile)); bem.loadFrom(doc);
createReleaseDir(); BndEditModel model = new BndEditModel(); model.loadFrom(bndFile); Project bndProject = new Project(new Workspace(rootDir), buildProject, bndFile); List<RepositoryPlugin> repositories = bndProject.getPlugins(RepositoryPlugin.class);