Skip to content

Commit

Permalink
#36087 対応.
Browse files Browse the repository at this point in the history
アトリビュート削除時にtableEditorに値が残らないようにdisposeする
  • Loading branch information
nakag committed Mar 3, 2016
1 parent c4ddfa6 commit 3f84b6d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2011 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
* Copyright 2009-2016 TMD-Maker Project <http://tmdmaker.osdn.jp/>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -267,6 +267,10 @@ public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
if (selectedIndex == -1) {
return;
}
Control oldEditor = tableEditor.getEditor();
if (oldEditor != null) {
oldEditor.dispose();
}
entity.deleteAttribute(selectedIndex);
if (entity.getMaxAttributeIndex() <= selectedIndex) {
selectedIndex--;
Expand Down

0 comments on commit 3f84b6d

Please sign in to comment.