mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 17:20:44 +00:00
Marking parent nodes as modified (bold) too - TreeItem now has isModified method
This commit is contained in:
@@ -53,4 +53,15 @@ public class FolderItem implements TreeItem {
|
||||
public String toString() {
|
||||
return str;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
for(TreeItem ti:subItems){
|
||||
if(ti.isModified()){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,4 +42,11 @@ public class HeaderItem implements TreeItem {
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
return false; //??
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -172,4 +172,16 @@ public class SWFList implements List<SWF>, SWFContainerItem {
|
||||
public List<SWF> subList(int i, int i1) {
|
||||
return swfs.subList(i, i1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
for(SWF s:swfs){
|
||||
if(s.isModified()){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -25,4 +25,6 @@ import com.jpexs.decompiler.flash.SWF;
|
||||
public interface TreeItem {
|
||||
|
||||
public SWF getSwf();
|
||||
|
||||
public boolean isModified();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user