- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/MagneticConstraint/Actions/DeleteAction.java
r967 r1102 1 1 package org.expeditee.items.MagneticConstraint.Actions; 2 2 3 import org.expeditee.gui.Display IO;3 import org.expeditee.gui.DisplayController; 4 4 import org.expeditee.items.Item; 5 5 import org.expeditee.items.Text; … … 15 15 if(item.getParent() == null || !this.isSpIDERCodePage(item.getParent())) return false; 16 16 if(item == null || ((Text) item).isEmpty()) { 17 final Text temp = Display IO.getCurrentFrame().createNewText(".");17 final Text temp = DisplayController.getCurrentFrame().createNewText("."); 18 18 callback(temp); 19 19 if(temp.getMagnetizedItemRight() != -1) 20 Display IO.setTextCursor((Text) temp.getParent().getItemWithID(temp.getMagnetizedItemRight()), Text.HOME);20 DisplayController.setTextCursor((Text) temp.getParent().getItemWithID(temp.getMagnetizedItemRight()), Text.HOME); 21 21 else if(temp.getMagnetizedItemBottom() != -1) 22 Display IO.setTextCursor((Text) temp.getParent().getItemWithID(temp.getMagnetizedItemBottom()), Text.HOME);22 DisplayController.setTextCursor((Text) temp.getParent().getItemWithID(temp.getMagnetizedItemBottom()), Text.HOME); 23 23 temp.delete(); 24 24 callback(temp); 25 25 return true; 26 } else if(item.getMagnetizedItemRight() != -1 && TextLogic.XIsAfterCharacters((Text) item, Display IO.getMouseX())) {26 } else if(item.getMagnetizedItemRight() != -1 && TextLogic.XIsAfterCharacters((Text) item, DisplayController.getMouseX())) { 27 27 new NextItemAction().exec(item); 28 28 return true; 29 } else if(item.getMagnetizedItemBottom() != -1 && TextLogic.XIsAfterCharacters((Text) item, Display IO.getMouseX())) {29 } else if(item.getMagnetizedItemBottom() != -1 && TextLogic.XIsAfterCharacters((Text) item, DisplayController.getMouseX())) { 30 30 callback(item); 31 31 final Line currentLine = Line.getLineFromToken(item); … … 33 33 if(nextLine != null && Paragraph.getParagraphFromLine(currentLine).contains(nextLine)) { 34 34 currentLine.appendLine(nextLine); 35 Display IO.setTextCursor((Text) item, Text.END);35 DisplayController.setTextCursor((Text) item, Text.END); 36 36 callback(item); 37 37 return true;
Note:
See TracChangeset
for help on using the changeset viewer.