продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package ProjectData.Messages;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Constants;
|
||||
import Common_old.Current;
|
||||
@@ -447,7 +448,7 @@ public class Message extends FileObject {
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
if (Current.HasFile() && Current.getFile().name.equals(file)) {
|
||||
Object o = Current.get(Current.FileGraphElement);
|
||||
Object o = CurrentAnchestor.get(Current.FileGraphElement);
|
||||
return !(o instanceof FileObjectWithMessages) || ((FileObjectWithMessages) o).HasMessage(this);
|
||||
} else return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user