0.9.8:
- Fixed issue with library project names containing characters that aren't compatible with Eclipse path variable. The link between the main project and the library would fail to create.
- Added support for library projects that don't have a source folder called "src". There is now support for any number of source folder, with no name restriction. They can even be in sub folder such as "src/java".
+- Added support for libraries with library dependencies.
- added support for new resource qualifiers: car/desk, night/notnight and navexposed/navhidden
0.9.7:
}
msg = String.format("Unknown error: %1$s", msg);
- AdtPlugin.printErrorToConsole(project, msg);
+ AdtPlugin.logAndPrintError(exception, project.getName(), msg);
markProject(AndroidConstants.MARKER_PACKAGING, msg, IMarker.SEVERITY_ERROR);
}
mIsLibrary = new Button(libraryGroup, SWT.CHECK);
mIsLibrary.setText("Is Library");
- mIsLibrary.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- mLibraryDependencies.setEnabled(!mIsLibrary.getSelection());
- }
- });
mLibraryDependencies = new LibraryProperties(libraryGroup);
mustSaveProp = true;
}
- if (mLibraryDependencies.save(mIsLibrary.getSelection())) {
+ if (mLibraryDependencies.save()) {
mustSaveProp = true;
}
}
mIsLibrary.setSelection(state.isLibrary());
-
mLibraryDependencies.setContent(state);
- mLibraryDependencies.setEnabled(!state.isLibrary());
/*
* APK-SPLIT: This is not yet supported, so we hide the UI
mMatchIcon = AdtPlugin.getImageDescriptor("/icons/match.png").createImage(); //$NON-NLS-1$
mErrorIcon = AdtPlugin.getImageDescriptor("/icons/error.png").createImage(); //$NON-NLS-1$
-
// Layout has 2 column
mTop = new Composite(parent, SWT.NONE);
mTop.setLayout(new GridLayout(2, false));
* {@link #setContent(ProjectState)}.
* <p/>This only saves the data into the {@link ProjectProperties} of the state, but does
* not update the {@link ProjectState} or the list of {@link LibraryState}.
- * @param isLibrary the new library flag of the project.
* @return <code>true</code> if there was actually new data saved in the project state, false
* otherwise.
*/
- boolean save(boolean isLibrary) {
- boolean mustSave = mMustSave || (isLibrary && mState.getLibraries().size() > 0);
- if (mustSave) {
+ boolean save() {
+ boolean mustSave = mMustSave;
+ if (mMustSave) {
// remove all previous library dependencies.
ProjectProperties props = mState.getProperties();
Set<String> keys = props.keySet();
}
// now add the new libraries.
- if (isLibrary == false) {
- int index = 1;
- for (ItemData data : mItemDataList) {
- props.setProperty(ProjectProperties.PROPERTY_LIB_REF + index++,
- data.relativePath);
- }
+ int index = 1;
+ for (ItemData data : mItemDataList) {
+ props.setProperty(ProjectProperties.PROPERTY_LIB_REF + index++,
+ data.relativePath);
}
}
<classpathentry kind="lib" path="libs/jfreechart-1.0.9.jar"/>
<classpathentry kind="lib" path="libs/jcommon-1.0.12.jar"/>
<classpathentry kind="lib" path="libs/jfreechart-1.0.9-swt.jar"/>
- <classpathentry kind="lib" path="libs/ddmlib.jar"/>
- <classpathentry kind="lib" path="libs/ddmuilib.jar"/>
+ <classpathentry kind="lib" path="libs/ddmlib.jar" sourcepath="/ddmlib"/>
+ <classpathentry kind="lib" path="libs/ddmuilib.jar" sourcepath="/ddmuilib"/>
<classpathentry kind="output" path="bin"/>
</classpath>