~fredericp/zaluum/rt

« back to all changes in this revision

Viewing changes to org.zaluum.ide.editor/src/org/zaluum/ide/editor/policies/ComposedBoxModelContentsDelegate.java

  • Committer: Frederic Perez Ordeig
  • Date: 2010-04-07 07:55:38 UTC
  • mfrom: (308.1.63 wip-scala)
  • Revision ID: frederic@zaluum.com-20100407075538-muaneuoz134fqu5o
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import org.zaluum.ide.editor.parts.MarkerSelector;
25
25
import org.zaluum.ide.editor.parts.ModelContentsEditPartDelegate;
26
26
import org.zaluum.ide.editor.parts.ModelEditPart;
 
27
import org.zaluum.model.Box;
27
28
import org.zaluum.model.ComposedBox;
28
 
import org.zaluum.model.OpenBox;
29
29
 
30
30
import com.google.common.collect.ImmutableList;
31
31
import com.google.common.collect.Iterables;
38
38
                ModelContentsEditPartDelegate {
39
39
 
40
40
        @Override
41
 
        public List<? extends Object> getChildren(OpenBox currentBox) {
 
41
        public List<? extends Object> getChildren(Box<?> currentBox) {
42
42
                return ImmutableList.copyOf(
43
43
                                Iterables.concat(
44
 
                                                ((ComposedBox) currentBox).getChildren(), 
45
 
                                                currentBox.getPorts(),currentBox.getNotes())
 
44
                                                ((ComposedBox) currentBox).getBoxes(), 
 
45
                                                currentBox.getPorts())
46
46
                                                );
47
47
        }
48
48
 
53
53
        }
54
54
 
55
55
        @Override
56
 
        public boolean isCompatible(OpenBox currentBox) {
 
56
        public boolean isCompatible(Box<?> currentBox) {
57
57
                return (currentBox instanceof ComposedBox);
58
58
        }
59
59