@Override public CCDataObject data() { CCDataObject myResult = super.data(); CCShaderObject myShaderObject = value(); myResult.put("source", myShaderObject.sourceCode()); return myResult; }
@Override public void data(CCDataObject theData) { CCShaderObject myShaderObject = value(); if (theData.containsKey("source")) { myShaderObject.sourceCode(theData.getString("source")); } else { myShaderObject.sourceCode(""); } onChange(); }