function $runCallbacks_0(){
  var $e0, e, handler, next, stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = $runCallbacks_0;
  while ($location_0[stackIndex] = 'AsyncLoader2.java:' + '43' , callbacksHead_0) {
    $location_0[stackIndex] = 'AsyncLoader2.java:' + '44' , handler = ($location_0[stackIndex] = 'GWT.java:' + '164' , sUncaughtExceptionHandler);
    next = ($location_0[stackIndex] = 'AsyncLoader2.java:' + '45' , callbacksHead_0);
    callbacksHead_0 = ($location_0[stackIndex] = 'AsyncLoader2.java:' + '46' , callbacksHead_0).next;
    ($location_0[stackIndex] = 'Cast.java:' + '117' , !($location_0[stackIndex] = 'AsyncLoader2.java:' + '47' , callbacksHead_0)) && ($location_0[stackIndex] = 'AsyncLoader2.java:' + '48' , callbacksTail_0 = null);
    if ($location_0[stackIndex] = 'Cast.java:' + '117' , !($location_0[stackIndex] = 'AsyncLoader2.java:' + '50' , handler)) {
      $onSuccess_0(($location_0[stackIndex] = 'AsyncLoader2.java:' + '51' , next).callback);
    }
     else {
      try {
        $onSuccess_0(($location_0[stackIndex] = 'AsyncLoader2.java:' + '54' , next).callback);
      }
       catch ($e0) {
        $e0 = caught_0(($location_0[stackIndex] = 'AsyncLoader2.java:' + '55' , $e0));
        $stackDepth_0 = stackIndex;
        if (instanceOf($e0, 11)) {
          e = $e0;
          $location_0[stackIndex] = 'LogImplBase.java:' + '295' , $clinit_21();
          $location_0[stackIndex] = 'Log.java:' + '285' , $fatal(($location_0[stackIndex] = 'Log.java:' + '285' , impl), 'Uncaught Exception:', ($location_0[stackIndex] = 'AsyncLoader2.java:' + '56' , e));
        }
         else 
          throw $location_0[stackIndex] = 'AsyncLoader2.java:' + '55' , $e0;
      }
    }
  }
  $stackDepth_0 = stackIndex - 1;
}

function AsyncLoader2_0(){
}

function onLoad_0(){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = onLoad_0;
  instance_3 = new ($location_0[stackIndex] = 'AsyncLoader2.java:' + '13' , AsyncLoader2_0);
  $fragmentHasLoaded(($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '269' , $clinit_55() , ($location_0[stackIndex] = 'AsyncLoader2.java:' + '14' , BROWSER_LOADER)), 2);
  !!($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '131' , $stats) && ($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '101' , $stats(($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '108' , $createStatsEvent('runCallbacks2', 'begin', -1, -1))));
  ($location_0[stackIndex] = 'AsyncLoader2.java:' + '16' , instance_3).runCallbacks();
  !!($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '131' , $stats) && ($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '101' , $stats(($location_0[stackIndex] = 'AsyncFragmentLoader.java:' + '108' , $createStatsEvent('runCallbacks2', 'end', -1, -1))));
  $stackDepth_0 = stackIndex - 1;
}

function AsyncLoader2(){
}

_ = AsyncLoader2_0.prototype = AsyncLoader2.prototype = new Object_0;
_.getClass$ = function getClass_143(){
  var stackIndex, returnTemp;
  $stack_0[stackIndex = ++$stackDepth_0] = getClass_143;
  returnTemp = ($location_0[stackIndex] = 'com.google.gwt.dev.jjs.ast.JProgram:' + '0' , Lcom_google_gwt_lang_asyncloaders_AsyncLoader2_2_classLit);
  $stackDepth_0 = stackIndex - 1;
  return returnTemp;
}
;
_.runCallbacks = function runCallbacks_0(){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = runCallbacks_0;
  $location_0[stackIndex] = 'AsyncLoader2.java:' + '42' , $runCallbacks_0();
  $stackDepth_0 = stackIndex - 1;
}
;
_.castableTypeMap$ = {};
function $setItemSelected(this$static, index){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = $setItemSelected;
  $checkIndex(($location_0[stackIndex] = 'ListBox.java:' + '319' , this$static), index);
  $location_0[stackIndex] = 'OptionElement.java:' + '146' , ($location_0[stackIndex] = 'NodeList.java:' + '44' , ($location_0[stackIndex] = 'DOMImpl.java:' + '335' , ($location_0[stackIndex] = 'UIObject.java:' + '529' , ($location_0[stackIndex] = 'ListBox.java:' + '320' , this$static).element).options)[$location_0[stackIndex] = 'ListBox.java:' + '320' , index]).selected = true;
  $stackDepth_0 = stackIndex - 1;
}

function ListBox_0(){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = ListBox_0;
  ($location_0[stackIndex] = 'ListBox.java:' + '101' , ListBox_1).call(this);
  $stackDepth_0 = stackIndex - 1;
}

_ = ListBox_0.prototype = ListBox.prototype;
var instance_12 = null;
function $onSuccess_0(this$static){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = $onSuccess_0;
  ($location_0[stackIndex] = 'Cast.java:' + '117' , !($location_0[stackIndex] = 'PreferencesModule.java:' + '48' , instance_12)) && (instance_12 = new ($location_0[stackIndex] = 'PreferencesModule.java:' + '49' , PreferencesView_0));
  $provideWidget(($location_0[stackIndex] = 'PreferencesModule.java:' + '51' , instance_12), this$static.val$callback);
  $stackDepth_0 = stackIndex - 1;
}

function $provideWidget(this$static, callback){
  var layout, multiBox, prefEditor, toolsets, ts, ts$iterator, stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = $provideWidget;
  ($location_0[stackIndex] = 'PreferencesView.java:' + '65' , this$static).panel = new MosaicPanel_1(new BoxLayout_2(($location_0[stackIndex] = 'BoxLayout.java:' + '170' , $clinit_838() , ($location_0[stackIndex] = 'PreferencesView.java:' + '65' , VERTICAL))));
  dynamicCast(($location_0[stackIndex] = 'PreferencesView.java:' + '67' , get_17(($location_0[stackIndex] = 'com.google.gwt.dev.jjs.ast.JProgram:' + '0' , Lorg_jboss_bpm_console_client_ApplicationContext_2_classLit))), 233);
  $add_25(($location_0[stackIndex] = 'PreferencesView.java:' + '68' , this$static).panel, new HeaderLabel_0('User Preferences'), new BoxLayoutData_5(($location_0[stackIndex] = 'BoxLayoutData.java:' + '30' , $clinit_841() , ($location_0[stackIndex] = 'PreferencesView.java:' + '68' , HORIZONTAL_0))));
  layout = new ($location_0[stackIndex] = 'PreferencesView.java:' + '70' , MosaicPanel_1)(new GridLayout_0(1));
  $location_0[stackIndex] = 'PreferencesView.java:' + '71' , $add_24(($location_0[stackIndex] = 'PreferencesView.java:' + '71' , layout), new ($location_0[stackIndex] = 'PreferencesView.java:' + '72' , HTML_1)('<b>Default Tool<\/b><br>Select the tool that should be loaded upon login.'));
  $location_0[stackIndex] = 'PreferencesView.java:' + '76' , toolsets = ($location_0[stackIndex] = 'PreferencesView.java:' + '77' , $clinit_1293() , ($location_0[stackIndex] = 'Workspace.java:' + '61' , $clinit_1293()) , ($location_0[stackIndex] = 'Workspace.java:' + '262' , toolSets_0));
  multiBox = new ($location_0[stackIndex] = 'PreferencesView.java:' + '78' , ListBox_0);
  $location_0[stackIndex] = 'SelectElement.java:' + '229' , ($location_0[stackIndex] = 'UIObject.java:' + '529' , ($location_0[stackIndex] = 'PreferencesView.java:' + '79' , multiBox).element).size = 5;
  $location_0[stackIndex] = 'LayoutPanel.java:' + '391' , $insert_0(($location_0[stackIndex] = 'PreferencesView.java:' + '80' , layout), multiBox, ($location_0[stackIndex] = 'WidgetCollection.java:' + '209' , ($location_0[stackIndex] = 'ComplexPanel.java:' + '154' , layout.children).size_0));
  $location_0[stackIndex] = 'PreferencesView.java:' + '84' , prefEditor = ($location_0[stackIndex] = 'CookiePreferences.java:' + '39' , getCookie('workspace.default.tool'));
  for ($location_0[stackIndex] = 'PreferencesView.java:' + '85' , ts$iterator = ($location_0[stackIndex] = 'AbstractList.java:' + '278' , new ($location_0[stackIndex] = 'AbstractList.java:' + '278' , AbstractList$IteratorImpl_0)(($location_0[stackIndex] = 'PreferencesView.java:' + '85' , toolsets))); ($location_0[stackIndex] = 'AbstractList.java:' + '38' , ($location_0[stackIndex] = 'PreferencesView.java:' + '85' , ts$iterator).i) < ($location_0[stackIndex] = 'AbstractList.java:' + '38' , ($location_0[stackIndex] = 'PreferencesView.java:' + '85' , ts$iterator).this$0_0).size_1();) {
    ts = dynamicCast($next_6(($location_0[stackIndex] = 'PreferencesView.java:' + '85' , ts$iterator)), 237);
    $addItem(($location_0[stackIndex] = 'PreferencesView.java:' + '87' , multiBox), ts.getToolSetName());
    $equals_4(($location_0[stackIndex] = 'PreferencesView.java:' + '88' , ts).getToolSetName(), prefEditor) && ($location_0[stackIndex] = 'PreferencesView.java:' + '89' , $setItemSelected(($location_0[stackIndex] = 'PreferencesView.java:' + '89' , multiBox), ($location_0[stackIndex] = 'NodeList.java:' + '52' , ($location_0[stackIndex] = 'DOMImpl.java:' + '335' , ($location_0[stackIndex] = 'UIObject.java:' + '529' , multiBox.element).options).length) - 1));
  }
  $location_0[stackIndex] = 'FocusWidget.java:' + '95' , $addDomHandler(($location_0[stackIndex] = 'PreferencesView.java:' + '92' , multiBox), new ($location_0[stackIndex] = 'PreferencesView.java:' + '93' , PreferencesView$1_0)(multiBox, toolsets), ($location_0[stackIndex] = 'FocusWidget.java:' + '95' , $clinit_134() , ($location_0[stackIndex] = 'ClickEvent.java:' + '27' , $clinit_134()) , ($location_0[stackIndex] = 'ClickEvent.java:' + '36' , TYPE_1)));
  $add_25(($location_0[stackIndex] = 'PreferencesView.java:' + '109' , this$static).panel, layout, new BoxLayoutData_5(HORIZONTAL_0));
  ($location_0[stackIndex] = 'PreferencesView.java:' + '111' , callback).onSuccess(this$static.panel);
  $stackDepth_0 = stackIndex - 1;
}

function PreferencesView_0(){
}

_ = PreferencesView_0.prototype = PreferencesView.prototype;
_.getClass$ = function getClass_625(){
  var stackIndex, returnTemp;
  $stack_0[stackIndex = ++$stackDepth_0] = getClass_625;
  returnTemp = ($location_0[stackIndex] = 'com.google.gwt.dev.jjs.ast.JProgram:' + '0' , Lorg_jboss_bpm_console_client_PreferencesView_2_classLit);
  $stackDepth_0 = stackIndex - 1;
  return returnTemp;
}
;
_.setController = function setController_0(controller){
}
;
function PreferencesView$1_0(val$multiBox, val$toolsets){
  var stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = PreferencesView$1_0;
  this.val$multiBox = ($location_0[stackIndex] = 'PreferencesView.java:' + '93' , val$multiBox);
  this.val$toolsets = val$toolsets;
  $stackDepth_0 = stackIndex - 1;
}

function PreferencesView$1(){
}

_ = PreferencesView$1_0.prototype = PreferencesView$1.prototype = new Object_0;
_.getClass$ = function getClass_626(){
  var stackIndex, returnTemp;
  $stack_0[stackIndex = ++$stackDepth_0] = getClass_626;
  returnTemp = ($location_0[stackIndex] = 'com.google.gwt.dev.jjs.ast.JProgram:' + '0' , Lorg_jboss_bpm_console_client_PreferencesView$1_2_classLit);
  $stackDepth_0 = stackIndex - 1;
  return returnTemp;
}
;
_.onClick = function onClick_12(clickEvent){
  var title, ts, ts$iterator, stackIndex;
  $stack_0[stackIndex = ++$stackDepth_0] = onClick_12;
  title = ($location_0[stackIndex] = 'PreferencesView.java:' + '97' , $getItemText(($location_0[stackIndex] = 'PreferencesView.java:' + '97' , this.val$multiBox), ($location_0[stackIndex] = 'SelectElement.java:' + '121' , ($location_0[stackIndex] = 'UIObject.java:' + '529' , this.val$multiBox.element).selectedIndex)));
  for ($location_0[stackIndex] = 'PreferencesView.java:' + '98' , ts$iterator = ($location_0[stackIndex] = 'AbstractList.java:' + '278' , new ($location_0[stackIndex] = 'AbstractList.java:' + '278' , AbstractList$IteratorImpl_0)(($location_0[stackIndex] = 'PreferencesView.java:' + '98' , this.val$toolsets))); ($location_0[stackIndex] = 'AbstractList.java:' + '38' , ($location_0[stackIndex] = 'PreferencesView.java:' + '98' , ts$iterator).i) < ($location_0[stackIndex] = 'AbstractList.java:' + '38' , ($location_0[stackIndex] = 'PreferencesView.java:' + '98' , ts$iterator).this$0_0).size_1();) {
    ts = dynamicCast($next_6(($location_0[stackIndex] = 'PreferencesView.java:' + '98' , ts$iterator)), 237);
    $equals_4(($location_0[stackIndex] = 'PreferencesView.java:' + '100' , ts).getToolSetName(), title) && $set_3('workspace.default.tool', ($location_0[stackIndex] = 'PreferencesView.java:' + '102' , ts).getToolSetName());
  }
  $stackDepth_0 = stackIndex - 1;
}
;
_.castableTypeMap$ = {61:1, 80:1};
_.val$multiBox = null;
_.val$toolsets = null;
var Lcom_google_gwt_lang_asyncloaders_AsyncLoader2_2_classLit = createForClass('com.google.gwt.lang.asyncloaders.', 'AsyncLoader2'), Lorg_jboss_bpm_console_client_PreferencesView_2_classLit = createForClass('org.jboss.bpm.console.client.', 'PreferencesView'), Lorg_jboss_bpm_console_client_PreferencesView$1_2_classLit = createForClass('org.jboss.bpm.console.client.', 'PreferencesView$1');
$entry(onLoad_0)();
