This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[ui] rounded corners for chrome

  • Loading branch information...
smee committed Mar 16, 2011
1 parent d3ecb9b commit d004495cc85496dbded75916bdc2d35ce45d8cb5
View
@@ -21,8 +21,8 @@ Building
Make sure you have a recent installation of [Java JDK 1.6.0+](http://www.oracle.com/technetwork/java/javase/downloads/index.html) as well as [Maven 2](http://maven.apache.org/download.html). Also there are two more external dependencies:
-* [CEWolf](http://github.com/smee/cewolf): struts 1 graphing component (for statistics graphes)
* [HttpBot](http://github.com/smee/httpbot): scriptable http crawler (importing users from moodle via .csv download)
+* [Flanagan] (http://github.com/smee/flanagan): vast amount of math, statistics etc. (used for test statistics)
### Steps ###
@@ -41,7 +41,7 @@ a:link
.FailureMessage { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; color: #FF0000}
legend { font-family: "Times New Roman", Times, serif; font-size: 15px; color: #0046D5; font-weight: normal; padding-top: 5px; padding-bottom: 5px; }
-fieldset { border: 1px #BFB8BF solid; -moz-border-radius: 15px; padding:10px; background-color: #ffffff; }
+fieldset { border: 1px #BFB8BF solid; -moz-border-radius: 15px; border-radius: 15px; padding:10px; background-color: #ffffff; }
.correction fieldset{
background: url(pics/fade_black_white_bg.jpg);
@@ -122,7 +122,7 @@ a.complexTaskLink:visited { font-family: Arial, Helvetica, sans-serif; font-siz
a.complexTaskLink:active { font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #00327D;}
a.complexTaskLink:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: orange; text-decoration: underline; }
-fieldset.complexTask { border: 1px #BFB8BF solid; -moz-border-radius: 15px; padding-top: 0px; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; background-color: #FFFFFF; }
+fieldset.complexTask { border: 1px #BFB8BF solid; -moz-border-radius: 15px; border-radius: 15px; padding-top: 0px; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; background-color: #FFFFFF; }
legend.complexTask { font-family: "Times New Roman", Times, serif; font-size: 15px; color: #0046D5; font-weight: normal; padding-top: 5px; padding-bottom: 0px; }
.ComplexTaskHint { font-family: Arial, Helvetica, sans-serif; font-size: 10px; border-color: #bfb8bf black black #CCCCCC; background-color: #fafbfc; border-style: dotted; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; padding-top: 2px; padding-bottom: 2px }
select { font-family: Arial, Helvetica, sans-serif; font-size: 12px}
@@ -274,6 +274,7 @@ div.topwatch {
border: 1px solid black;
border-right:none;
-moz-border-radius: 10px 0 0 10px;
+ border-radius: 10px 0 0 10px;
display: none;
padding: 10px 0px 10px 10px;
font-size: 1em;
@@ -49,17 +49,23 @@
public class ComplexTaskHandlingDAOImpl implements ComplexTaskHandlingDAO {
private ComplexTaskFactory complexTaskFactory;
- private JAXBContext jc;
+ /**
+ * Since JAXBContext is thread safe we can just use one global instance to avoid
+ * repeated initialization costs.
+ */
+ private static JAXBContext jc = null;
/**
*
*/
public ComplexTaskHandlingDAOImpl( ComplexTaskFactory complexTaskFactory ) {
this.complexTaskFactory = complexTaskFactory;
- try {
- jc = JAXBContext.newInstance( "de.thorstenberger.taskmodel.complex.jaxb", this.getClass().getClassLoader() );
- } catch (JAXBException e) {
- throw new TaskModelPersistenceException( e );
+ if(jc == null){
+ try {
+ jc = JAXBContext.newInstance( "de.thorstenberger.taskmodel.complex.jaxb", this.getClass().getClassLoader() );
+ } catch (JAXBException e) {
+ throw new TaskModelPersistenceException( e );
+ }
}
}

0 comments on commit d004495

Please sign in to comment.