Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void executeInt4(AbstractModel r, int lvl) {
- DiagramEditor editor = DiagramEditor.getActiveEditor();
- int level = lvl + 1;
- List<AbstractModel> abs = new ArrayList<>();
- List<AbstractModel> ch = r.getChildren();
- for(AbstractModel c : ch) {
- if (!(c instanceof TypeModel) && !(c instanceof FieldModel)
- && !(c instanceof MethodModel)) {
- abs.add(c);
- }
- }
- int length = abs.size();
- if(length == 0) {
- r.setLocation(200,level*(-150));
- editor.checkDirty();
- }
- else {
- AutoArrangeCommand auto = new AutoArrangeCommand();
- for(int i = 0; i < length; i++) {
- auto.executeInt4(abs.get(i), level);
- }
- r.setLocation(200, level*(-150));
- editor.checkDirty();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement