import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbenchPropertyPage;
import org.eclipse.ui.dialogs.PropertyPage;
private IProject mProject;
private SdkTargetSelector mSelector;
- private Button mSplitByDensity;
+ // APK-SPLIT: This is not yet supported, so we hide the UI
+// private Button mSplitByDensity;
public AndroidPropertyPage() {
// pass
mSelector = new SdkTargetSelector(top, targets);
+ /*
+ * APK-SPLIT: This is not yet supported, so we hide the UI
Group g = new Group(top, SWT.NONE);
g.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
g.setLayout(new GridLayout(1, false));
mSplitByDensity = new Button(g, SWT.CHECK);
mSplitByDensity.setText("One APK per density");
+*/
// fill the ui
Sdk currentSdk = Sdk.getCurrent();
if (currentSdk != null && mProject.isOpen()) {
mSelector.setSelection(target);
}
+ /*
+ * APK-SPLIT: This is not yet supported, so we hide the UI
// get the project settings
ApkSettings settings = currentSdk.getApkSettings(mProject);
mSplitByDensity.setSelection(settings.isSplitByDpi());
+ */
}
mSelector.setSelectionListener(new SelectionAdapter() {
Sdk currentSdk = Sdk.getCurrent();
if (currentSdk != null) {
ApkSettings apkSettings = new ApkSettings();
+ /*
+ * APK-SPLIT: This is not yet supported, so we hide the UI
apkSettings.setSplitByDensity(mSplitByDensity.getSelection());
+ */
currentSdk.setProject(mProject, mSelector.getSelected(), apkSettings);
}