private void saveLibrariesLocation() throws IOException, IllegalArgumentException { try { String str = SHARED_LIBRARIES_MODEL.getText(0, SHARED_LIBRARIES_MODEL.getLength()).trim(); if (str.length() == 0) { str = null; } String old = project.getAntProjectHelper().getLibrariesLocation(); if ((old == null && str == null) || (old != null && old.equals(str))) { //ignore, nothing changed.. } else { project.getAntProjectHelper().setLibrariesLocation(str); ProjectManager.getDefault().saveProject(project); } } catch (BadLocationException x) { Exceptions.printStackTrace(x); } }
new Object[0]); antHelper.setLibrariesLocation(librariesLocation); copyRequiredLibraries(antHelper, refHelper, projectDirectory);
private void saveLibrariesLocation() throws IOException, IllegalArgumentException { try { String str = SHARED_LIBRARIES_MODEL.getText(0, SHARED_LIBRARIES_MODEL.getLength()).trim(); if (str.length() == 0) { str = null; } String old = project.getAntProjectHelper().getLibrariesLocation(); if ((old == null && str == null) || (old != null && old.equals(str))) { //ignore, nothing changed.. } else { project.getAntProjectHelper().setLibrariesLocation(str); ProjectManager.getDefault().saveProject(project); } } catch (BadLocationException x) { Exceptions.printStackTrace(x); } }
private void saveLibrariesLocation() throws IOException, IllegalArgumentException { try { String str = SHARED_LIBRARIES_MODEL.getText(0, SHARED_LIBRARIES_MODEL.getLength()).trim(); if (str.length() == 0) { str = null; } String old = project.getAntProjectHelper().getLibrariesLocation(); if ((old == null && str == null) || (old != null && old.equals(str))) { //ignore, nothing changed.. } else { project.getAntProjectHelper().setLibrariesLocation(str); ProjectManager.getDefault().saveProject(project); } } catch (BadLocationException x) { Exceptions.printStackTrace(x); } }
private void saveLibrariesLocation() throws IOException, IllegalArgumentException { try { String str = SHARED_LIBRARIES_MODEL.getText(0, SHARED_LIBRARIES_MODEL.getLength()).trim(); if (str.length() == 0) { str = null; } String old = project.getAntProjectHelper().getLibrariesLocation(); if ((old == null && str == null) || (old != null && old.equals(str))) { //ignore, nothing changed.. } else { project.getAntProjectHelper().setLibrariesLocation(str); ProjectManager.getDefault().saveProject(project); } } catch (BadLocationException x) { ErrorManager.getDefault().notify(x); } }
project.getAntProjectHelper().setLibrariesLocation(relativized); } else { project.getAntProjectHelper().setLibrariesLocation(file.getAbsolutePath()); project.getAntProjectHelper().setLibrariesLocation(PropertyUtils.resolveFile(FileUtil.toFile(project.getProjectDirectory()), original.absolutesRelPath).getAbsolutePath());
project.getAntProjectHelper().setLibrariesLocation(relativized); } else { project.getAntProjectHelper().setLibrariesLocation(file.getAbsolutePath()); project.getAntProjectHelper().setLibrariesLocation(PropertyUtils.resolveFile(FileUtil.toFile(project.getProjectDirectory()), original.absolutesRelPath).getAbsolutePath());
project.getAntProjectHelper().setLibrariesLocation(relativized); } else { project.getAntProjectHelper().setLibrariesLocation(file.getAbsolutePath()); project.getAntProjectHelper().setLibrariesLocation(PropertyUtils.resolveFile(FileUtil.toFile(project.getProjectDirectory()), original.absolutesRelPath).getAbsolutePath());