Author: lgiessmann Date: Tue Sep 13 03:21:42 2011 New Revision: 887
Log: gdl-frontend: Widgets: fixed a bug with the commit button's id of http://textgrid.org/serviceregistry/model/types/Hash-Object in the CommitCallback class of Isidorus
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java ============================================================================== --- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java Tue Sep 13 03:20:04 2011 (r886) +++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java Tue Sep 13 03:21:42 2011 (r887) @@ -34,9 +34,10 @@ @Override public void commitTmConstruct(ArrayList<Pair<Construct, TopicMapsTypes>> constructs, String buttonId, TmEngine tmEngine) { try{ - if("hash_object_commit_button_id".equals(buttonId)){ - Window.alert("buttonId: " + buttonId); - this.commitCreatedHashObject(constructs, tmEngine, "edited_hash_object_commit_button_id".equals(buttonId)); + if("creator_hash_object_commit_button_id".equals(buttonId)){ + this.commitCreatedHashObject(constructs, tmEngine, false); + }else if("editor_hash_object_commit_button_id".equals(buttonId)){ + this.commitCreatedHashObject(constructs, tmEngine, true); } else if("environment_commit_button_id".equals(buttonId)){ this.commitCreatedEnvironment(constructs, tmEngine); }