private void onSkillButtonClicked(){
  if (skillTree == null) {
    Intent i=new Intent(getContext(),SkillTreeListActivity.class);
    i.putExtra(ASBActivity.EXTRA_FROM_TALISMAN_EDITOR,true);
    i.putExtra(ASBActivity.EXTRA_TALISMAN_SKILL_INDEX,skillIndex - 1);
    parent.startActivityForResult(i,ASBActivity.REQUEST_CODE_CREATE_TALISMAN);
  }
 else {
    setSkillTree(null);
  }
}

private void onSkillButtonClicked ( ) { if ( skillTree == null ) { Intent i = new Intent ( getContext ( ) , SkillTreeListActivity . class ) ; i . putExtra ( ASBActivity . EXTRA_FROM_TALISMAN_EDITOR , true ) ; i . putExtra ( ASBActivity . EXTRA_TALISMAN_SKILL_INDEX , skillIndex - 1 ) ; parent . startActivityForResult ( i , ASBActivity . REQUEST_CODE_CREATE_TALISMAN ) ; } else { setSkillTree ( null ) ; } }
called when the user clicks the button next to the skill tree .
