skallin / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 0 forks source link

Detect unused CSS in .ui.xml #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a ui binder
2.Add some css classes, some used, some unused

What is the expected output? What do you see instead?
The unused CSS class should appear with a warning (as a private unused method 
in a pava class)
But the CSS classes are displayed identically

What version of the product are you using? On what operating system?
Eclipse Juno SR2
Google Plugin 3.1.0.v201208080121-rel-r42
GWT 2.4.0

Please provide any additional information below.
Example :
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
    xmlns:g="urn:import:com.google.gwt.user.client.ui" >
    <ui:style>
        .used{
            background: green;
        }
        .unused {
            background: red;
        }
    </ui:style>

    <g:VerticalPanel addStyleNames="{style.used}">

             <g:Image ui:field="logo" src="logo.png" />

         <g:Anchor ui:field="link" text="link" />

    </g:VerticalPanel>

</ui:UiBinder>

Original issue reported on code.google.com by wokier on 22 Apr 2013 at 1:59