@SuppressWarnings("unused")
	protected void saveEditInfor() {
		
		// Action type
		Object typeValueItem = actionsListJlst.getSelectedValue();
		String typeValue = null;
		if (typeValueItem != null ) {
			typeValue = typeValueItem.toString();
		}
		// Title value
		Object titleObject = titleJlst.getSelectedValue();
		int selectedIndex = titleJlst.getSelectedIndex();
		String titleValue = null;
		if (titleObject != null) {
			titleValue = titleObject.toString();
		}
		String title = titleInputEDJtxt.getText()
				, description = descriptionEDJtxa.getText();
		DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm a");
		Date date = new Date();
		
		switch (typeValue) {
		case CASECLAIM:
			if (currentClaim != null) {
				currentClaim.setTitle(title);
				currentClaim.setDescription(description);
				Chat c = new Chat("Edit the Claim: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, currentClaim)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the claim", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getClaimList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the claim", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			
			break;
		case CASESUBCLAIM:
			if (currentCounterClaim != null) {
				currentCounterClaim.setTitle(title);
				currentCounterClaim.setDescription(description);
				Chat c = new Chat("Edit the Sub Claim: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, currentCounterClaim)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the sub claim", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getSubClaimList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the sub claim", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case CASEEVIDENCE:
			if (evidenceCurrent != null) {
				evidenceCurrent.setTitle(title);
				evidenceCurrent.setDescription(description);
				Chat c = new Chat("Edit the Evidence: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, evidenceCurrent)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the evidence", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getEvidenceList("evidence");
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the evidence", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case CASECOUNTERCLAIM:
			if (currentCounterClaim != null) {
				currentCounterClaim.setTitle(title);
				currentCounterClaim.setDescription(description);
				Chat c = new Chat("Edit the Sub Claim: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, currentCounterClaim)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the claim", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getCounterClaimList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the claim", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case "Counter Evidence":
			if (evidenceCurrent != null) {
				evidenceCurrent.setTitle(title);
				evidenceCurrent.setDescription(description);
				Chat c = new Chat("Edit the Counterevidence: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, evidenceCurrent)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the counterevidence", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getEvidenceList("counterevidence");
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the counterevidence", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case CASEBIPOLARQUESTION:
			if (bipolarQuestionCurrent != null) {
				bipolarQuestionCurrent.setTitle(title);
				bipolarQuestionCurrent.setDescription(description);
				Chat c = new Chat("Edit the Bi-polar Questions: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, bipolarQuestionCurrent)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the Bi-polar Questions", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getBipolarQuestionList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the Bi-polar Questions", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case CASERESPONSETOBIPOLAR:
			if (bipolarQuestionCurrent != null) {
				bipolarQuestionCurrent.setTitle(title);
				bipolarQuestionCurrent.setDescription(description);
				Chat c = new Chat("Edit the Response to Bi-polar: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, bipolarQuestionCurrent)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the Response to Bi-polar", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getResponseBipolarList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the Response to Bi-polar", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		case CASECHALLENGE:
			if (challengeCurrent != null) {
				challengeCurrent.setTitle(title);
				challengeCurrent.setDescription(description);
				Chat c = new Chat("Edit the Response to Challenge: " + titleValue, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
				if (action.edit(fileName, challengeCurrent)) {
					JOptionPane.showMessageDialog(this, "You have sucessfully edited the Challenge", "Success", JOptionPane.WARNING_MESSAGE);
					chat.addChat(fileName, c);
					getChallengeList();
					getChatHistory();
				} else {
					JOptionPane.showMessageDialog(this, "You have failed edited the Challenge", "failed", JOptionPane.WARNING_MESSAGE);
				}
			}
			break;
		}
		
	}