You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/11/04 14:33:37 UTC

svn commit: r1538600 - /pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java

Author: smartini
Date: Mon Nov  4 13:33:37 2013
New Revision: 1538600

URL: http://svn.apache.org/r1538600
Log:
PIVOT-689, remove direct references to TerraTheme, and use only the generic Theme instead.

Modified:
    pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java?rev=1538600&r1=1538599&r2=1538600&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java Mon Nov  4 13:33:37 2013
@@ -32,21 +32,20 @@ import org.apache.pivot.wtk.TablePane;
 import org.apache.pivot.wtk.Theme;
 import org.apache.pivot.wtk.VerticalAlignment;
 import org.apache.pivot.wtk.Window;
-import org.apache.pivot.wtk.skin.terra.TerraTheme;
 
 public class ColorPaletteTest extends Application.Adapter {
     private Window window = null;
 
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
-        TerraTheme terraTheme = (TerraTheme) Theme.getTheme();
+        Theme theme = Theme.getTheme();
 
         TablePane tablePane = new TablePane();
         tablePane.getColumns().add(new TablePane.Column(1, true));
         tablePane.getColumns().add(new TablePane.Column(1, true));
         tablePane.getColumns().add(new TablePane.Column(1, true));
 
-        int numberOfPaletteColors = terraTheme.getNumberOfPaletteColors();
+        int numberOfPaletteColors = theme.getNumberOfPaletteColors();
         // ArrayList<String> colors = new ArrayList<>(numberOfPaletteColors);
         for (int i = 0; i < numberOfPaletteColors; i++) {
             TablePane.Row row = new TablePane.Row(1, true);