]> gerrit.simantics Code Review - simantics/platform.git/blob - diagram/renaming/NameEntry.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / diagram / renaming / NameEntry.java
1 package org.simantics.modeling.ui.diagram.renaming;
2
3 import org.simantics.db.Resource;
4
5 /**
6  * @author Hannu Niemistö
7  */
8 public class NameEntry implements Comparable<NameEntry> {
9     Resource resource;
10     String oldName;
11     String newName;
12     String namingPrefix;
13     
14     public NameEntry(Resource resource, String oldName, String newName, String namingPrefix) {
15         this.resource = resource;
16         this.oldName = oldName;
17         this.newName = newName;
18         this.namingPrefix = namingPrefix;
19     }
20
21     @Override
22     public int compareTo(NameEntry other) {
23         return oldName.compareTo(other.oldName);
24     }
25 }