import java.util.Comparator;
import java.util.List;
import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import com.vaadin.server.widgetsetutils.ClassPathExplorer;
import com.vaadin.server.widgetsetutils.ClassPathExplorer.LocationInfo;
} catch (FileNotFoundException e) {
// Should not happen since file is checked before this
- e.printStackTrace();
+ getLogger().log(Level.WARNING, "Error updating addons.scss", e);
}
}
+ private static Logger getLogger() {
+ return Logger.getLogger(SASSAddonImportFileCreator.class.getName());
+ }
+
private static List<String> addImport(PrintStream stream, String file,
URL location) {
import java.util.Iterator;
import java.util.List;
import java.util.Set;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
blueSlider.setValue(((Integer) color.getBlue()).doubleValue());
greenSlider.setValue(((Integer) color.getGreen()).doubleValue());
} catch (ValueOutOfBoundsException e) {
- e.printStackTrace();
+ getLogger().log(
+ Level.WARNING,
+ "Unable to set RGB color value to " + color.getRed() + ","
+ + color.getGreen() + "," + color.getBlue(), e);
}
}
saturationSlider.setValue(((Float) (hsv[1] * 100f)).doubleValue());
valueSlider.setValue(((Float) (hsv[2] * 100f)).doubleValue());
} catch (ValueOutOfBoundsException e) {
- e.printStackTrace();
+ getLogger().log(
+ Level.WARNING,
+ "Unable to set HSV color value to " + hsv[0] + "," + hsv[1]
+ + "," + hsv[2], e);
}
}
return color;
}
};
+
+ public static Logger getLogger() {
+ return Logger.getLogger(ColorPickerPopup.class.getName());
+ }
}
\ No newline at end of file