Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.workbench.screens.testscenario.client.handler;
 
 import java.util.List;
 
        extends DefaultNewResourceHandler {
    @Inject
    @Inject
    @Inject
    @Override
    public String getDescription() {
    }
    @Override
    public IsWidget getIcon() {
    }
    @Override
    public List<Pair<String, ? extends IsWidget>> getExtensions() {
        final Package activePackage = .getActivePackage();
        this..setPath( ( activePackage == null ? null : activePackage.getPackageTestResourcesPath() ) );
        return this.;
    }
    @Override
    public void createfinal Package pkg,
                        final String baseFileName,
                        final NewResourcePresenter presenter ) {
        .call(
                getSuccessCallbackpresenter ),
                                                                                        buildFileName,
                                                                                                       baseFileName ),
                                                                                        new Scenario(),
                                                                                        "" );
    }
    @Override
    public void acceptPathfinal Path path,
                            final Callback<BooleanVoidcallback ) {
        if ( path == null ) {
            callback.onSuccessfalse );
        } else {
            .callnew RemoteCallback<Package>() {
                @Override
                public void callbackfinal Package pkg ) {
                    boolean accept = ( pkg == null ? false : pkg.getPackageTestResourcesPath() != null );
                    callback.onSuccessaccept );
                }
            } ).resolvePackagepath );
        }
    }
New to GrepCode? Check out our FAQ X