Skip to content

Commit 0a0e45a

Browse files
committed
have each operation be able to return what objects it is operation on
1 parent c6f8dc7 commit 0a0e45a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/AbstractAddFrom.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import java.io.File;
44
import java.nio.file.NoSuchFileException;
5+
import java.util.ArrayList;
56
import java.util.HashSet;
7+
import java.util.List;
68

79
import com.google.gson.annotations.Expose;
810

@@ -16,6 +18,12 @@ public abstract class AbstractAddFrom implements ICaDoodleOpperation {
1618
public HashSet<String> getNamesAdded() {
1719
return namesAdded;
1820
}
21+
public List<String> getNames(){
22+
ArrayList<String> names= new ArrayList<String>();
23+
names.addAll(getNamesAdded());
24+
return names;
25+
}
26+
1927
public String getName() {
2028
if (name == null) {
2129
setName(RandomStringFactory.generateRandomString());

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/ICaDoodleOpperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public interface ICaDoodleOpperation {
88

99
public String getType();
1010
public List<CSG> process(List<CSG> incoming);
11+
public List<String> getNames();
1112
}

0 commit comments

Comments
 (0)