class NewDependencyPopup {

    public void onOkClicked() {

        if (validator.validate()) {
            callback.callback(dependency);
            view.hide();
        } else {
            validateGroupId();
            validateArtifactId();
            validateVersion();
        }
    }

    @Inject public  NewDependencyPopup(final NewDependencyPopupView view);

}