Changeset 282 for trunk/src/org/expeditee/actions/Misc.java
- Timestamp:
- 08/27/08 09:18:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Misc.java
r278 r282 107 107 * 108 108 */ 109 public static void DeleteFrame() { 110 Frame toDelete = DisplayIO.getCurrentFrame(); 109 public static void DeleteFrame(Frame toDelete) { 111 110 String deletedFrame = toDelete.getName(); 112 111 String deletedFrameNameLowercase = deletedFrame.toLowerCase(); … … 770 769 public static void importFiles(Item item) { 771 770 List<File> files = new LinkedList<File>(); 772 for (String s : item.getText().split("\ n")) {773 File file = new File(s );771 for (String s : item.getText().split("\\s+")) { 772 File file = new File(s.trim()); 774 773 if (file.exists()) { 775 774 files.add(file); … … 784 783 785 784 public static void importFile(Item item) { 786 File file = new File(item.getText() );785 File file = new File(item.getText().trim()); 787 786 if (file.exists()) { 788 787 try { … … 810 809 double curAngle = 0; 811 810 double size = 50F; 812 if (item instanceof Dot&& item.getLines().size() > 0) {811 if (item.isLineEnd() && item.getLines().size() > 0) { 813 812 item = item.getLines().get(0); 814 813 }
Note:
See TracChangeset
for help on using the changeset viewer.