diff options
author | Raphael Moll <ralf@android.com> | 2011-05-27 17:40:52 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-05-27 17:40:52 -0700 |
commit | 3ef1ee68a7a8ba3c4c1b8a2df1ba9232b56d153c (patch) | |
tree | c7bb9f6d482f0179bdc29c65c6712417e3c2f0eb /sdkmanager/libs/sdkuilib | |
parent | bb5de8ddcee2e359a5a6a74aef3cda39707fcdcf (diff) | |
parent | bb225a1587c8be054632f6e9d7ed7a46fd14ab09 (diff) | |
download | sdk-3ef1ee68a7a8ba3c4c1b8a2df1ba9232b56d153c.zip sdk-3ef1ee68a7a8ba3c4c1b8a2df1ba9232b56d153c.tar.gz sdk-3ef1ee68a7a8ba3c4c1b8a2df1ba9232b56d153c.tar.bz2 |
Merge "SdkMan2: don't use yellow background anymore."
Diffstat (limited to 'sdkmanager/libs/sdkuilib')
-rwxr-xr-x | sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/PackagesPage.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/PackagesPage.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/PackagesPage.java index 5fc9881..04bf422 100755 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/PackagesPage.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/PackagesPage.java @@ -36,7 +36,6 @@ import org.eclipse.jface.viewers.CheckStateChangedEvent; import org.eclipse.jface.viewers.CheckboxTreeViewer; import org.eclipse.jface.viewers.ColumnLabelProvider; import org.eclipse.jface.viewers.ICheckStateListener; -import org.eclipse.jface.viewers.ITableColorProvider; import org.eclipse.jface.viewers.ITableFontProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.TreeColumnViewerLabelProvider; @@ -47,7 +46,6 @@ import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.graphics.Image; @@ -146,7 +144,6 @@ public class PackagesPage extends UpdaterPage private TreeViewerColumn mColumnApi; private TreeViewerColumn mColumnRevision; private TreeViewerColumn mColumnStatus; - private Color mColorUpdate; private Font mTreeFontItalic; private TreeColumn mTreeColumnName; @@ -482,14 +479,10 @@ public class PackagesPage extends UpdaterPage fontData.setStyle(SWT.ITALIC); mTreeFontItalic = new Font(mTree.getDisplay(), fontData); - mColorUpdate = new Color(mTree.getDisplay(), 0xff, 0xff, 0xcc); - mTree.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { mTreeFontItalic.dispose(); - mColorUpdate.dispose(); mTreeFontItalic = null; - mColorUpdate = null; } }); } @@ -1030,8 +1023,7 @@ public class PackagesPage extends UpdaterPage // ---------------------- - public class PkgCellLabelProvider extends ColumnLabelProvider - implements ITableFontProvider, ITableColorProvider { + public class PkgCellLabelProvider extends ColumnLabelProvider implements ITableFontProvider { private final TreeViewerColumn mColumn; @@ -1146,22 +1138,6 @@ public class PackagesPage extends UpdaterPage } return super.getFont(element); } - - // -- ITableColorProvider - - public Color getBackground(Object element, int columnIndex) { - if (element instanceof PkgItem) { - if (((PkgItem) element).getState() == PkgState.HAS_UPDATE) { - return mColorUpdate; - } - } - return null; - } - - public Color getForeground(Object element, int columnIndex) { - // Not used - return null; - } } private class PkgContentProvider implements ITreeContentProvider { |