renaming method addLabel to linkLabel

This commit is contained in:
Claudio Barril 2014-03-09 02:32:19 -03:00
parent e229ed96e4
commit d7cfa0de04
3 changed files with 3 additions and 3 deletions

View File

@ -652,7 +652,7 @@ public class MindmapController extends BaseController {
final Mindmap mindmap = findMindmapById(mindmapId);
final Label label = mindmap.findLabel(labelId);
if (label == null) {
mindmapService.addLabel(mindmap, delegated);
mindmapService.linkLabel(mindmap, delegated);
}
}
}

View File

@ -68,7 +68,7 @@ public interface MindmapService {
void purgeHistory(int mapId) throws IOException;
void addLabel(@NotNull final Mindmap mindmap, @NotNull final Label label);
void linkLabel(@NotNull final Mindmap mindmap, @NotNull final Label label);
void removeLabel(@NotNull final Mindmap mindmap, @NotNull final Label label);
}

View File

@ -88,7 +88,7 @@ public class MindmapServiceImpl
}
@Override
public void addLabel(@NotNull Mindmap mindmap, @NotNull final Label label) {
public void linkLabel(@NotNull Mindmap mindmap, @NotNull final Label label) {
mindmap.addLabel(label);
}