I'm walking through the gwt "StockWatcher" example at the moment. Trying this on IntelliJ though I've got a bit of a strange problem; It seems IntelliJ doesn't find my css classes.
I've added this line to StockWatcher.gwt.xml:
<stylesheet src="css/stockwatcher.css"/>
And my web module has StockWatcher/css/stockwatcher.css:
body {
padding: 10px;
}
.watchListHeader {
background-color: #2062b8;
color: white;
font-style: italic;
}
.watchList {
border: 1px solid silver;
padding: 2px;
margin-bottom: 6px;
}
.watchListNumericColumn {
color: red;
}
In the StockWatcher class:
stockFlexTable.getRowFormatter().addStyleName(0,"watchListHeader");
// no error, but I can't "go to" ----------------^
stockFlexTable.addStyleName("watchList");
// ----------------------------^
stockFlexTable.getCellFormatter().addStyleName(0, 1, "watchListNumericColumn");
// ----------------------------------------------------^
stockFlexTable.getCellFormatter().addStyleName(0, 2, "watchListNumericColumn");
// ----------------------------------------------------^
// On these lines I get "Unknown CSS class"
How can I resolve this? Am I supposed to tell IntelliJ where to look for these css classes? If so, how? Or does IntelliJ only look in some fixed css file? The only "resolution" that the inspection offers is to suppress the warning, which I'd rather not do unless there's no other way.