Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2010 JBoss Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 import  org.drools.guvnor.client.common.GenericCallback;
 import  org.drools.guvnor.client.common.LoadingPopup;
 import  org.drools.guvnor.client.common.PrettyFormLayout;
 import  org.drools.guvnor.client.rpc.AnalysisReport;
 import  org.drools.guvnor.client.rpc.RepositoryServiceFactory;
 import  org.drools.guvnor.client.rpc.VerificationService;
 import  org.drools.guvnor.client.rpc.VerificationServiceAsync;
 import  com.gwtext.client.util.Format;

Viewer for, well, analysis !

Michael Neale
 public class AnalysisView extends Composite {
     private VerticalPanel layout;
     private String        packageUUID;
     private Constants     constants = GWT.createConstants.class );
     private EditItemEvent edit;
     public AnalysisView(String packageUUID,
                         String packageName,
                         EditItemEvent edit) {
         this. = new VerticalPanel();
         this. = packageUUID;
         this. = edit;
         PrettyFormLayout pf = new PrettyFormLayout();
         VerticalPanel vert = new VerticalPanel();
         String m = Format.format( .AnalysingPackage(),
                                   new String[]{packageName} );
         vert.addnew HTMLm ) );
         Button run = new Button.RunAnalysis() );
         run.addClickListenernew ClickListener() {
             public void onClick(Widget w) {
         } );
         vert.addrun );
         pf.addHeader( "images/analyse_large.png",
                       vert );
         .addpf );
         .addnew Label() );
         .setWidth"100%" );
         initWidget );
     private void runAnalysis() {
         LoadingPopup.showMessage( .AnalysingPackageRunning() );
         VerificationServiceAsync verificationService = GWT.create( VerificationService.class );
         verificationService.analysePackage( ,
                                             new GenericCallback() {
                                                 public void onSuccess(Object data) {
                                                     AnalysisReport rep = (AnalysisReport) data;
                                                     VerifierResultWidget w = new VerifierResultWidgetrep,
                                                     w.setWidth"100%" );
                                                     .remove( 1 );
                                                     .addw );
                                             } );
New to GrepCode? Check out our FAQ X