Proper removing search results on SWF close

This commit is contained in:
Jindra Petřík
2021-02-23 22:50:48 +01:00
parent 43baf9d178
commit d6cf6a2c8b
9 changed files with 70 additions and 28 deletions

View File

@@ -176,4 +176,9 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult {
return result;
}
@Override
public SWF getSWF() {
return scriptPack.getSwf();
}
}

View File

@@ -87,4 +87,9 @@ public class ActionSearchResult implements ScriptSearchResult {
public String toString() {
return path;
}
@Override
public SWF getSWF() {
return src.getSwf();
}
}

View File

@@ -4,6 +4,6 @@ package com.jpexs.decompiler.flash.search;
*
* @author JPEXS
*/
public interface ScriptSearchResult {
public interface ScriptSearchResult extends SearchResult {
}

View File

@@ -0,0 +1,11 @@
package com.jpexs.decompiler.flash.search;
import com.jpexs.decompiler.flash.SWF;
/**
*
* @author JPEXS
*/
public interface SearchResult {
public SWF getSWF();
}