@Override
public void aDataChanged(int start, int end, AData data) {
	
	//currentASection = aDoc.getASectionThatStartsAt(start);
	if ((data == null) && (currentASection!=null)){
													aDoc.startCompoundEdit();
													aDoc.removeASection(currentASection); 
													aDoc.endCompoundEdit(null);
													currentASection = null;
													}
	 else
	    if ((data != null) && (currentASection!=null)){
	    											aDoc.startCompoundEdit();
	    											aDoc.updateASection(currentASection, data); 
	    											aDoc.endCompoundEdit(null);}
	    else 
	    	 if ((data != null) && (currentASection==null)){
	   		 
	    		 try {
					    currentASection = aDoc.new ASection( aDoc.createPosition(start), aDoc.createPosition(end));
					    currentASection.setAttributes(aDoc.defaultSectionAttributes);
					    aDoc.startCompoundEdit();
					    aDoc.addASection(currentASection, data);
					    aDoc.endCompoundEdit(null);
				 } catch (BadLocationException e) {
					System.out.println("Exception in ControlsPane.aDataChanged():2");
					e.printStackTrace();
				   }
			}
} // aDataChanged()