Changeset 244
- Timestamp:
- 08/21/08 11:21:14 (16 years ago)
- Location:
- trunk/src/org/expeditee/dnd
- Files:
-
- 1 added
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/dnd/FileImporter.java
r238 r244 1 package org.expeditee.i o;1 package org.expeditee.importer; 2 2 3 3 import java.awt.Point; -
trunk/src/org/expeditee/dnd/FilePathImporter.java
r238 r244 1 package org.expeditee.i o;1 package org.expeditee.importer; 2 2 3 3 import java.awt.Point; … … 5 5 import java.io.IOException; 6 6 7 import org.expeditee.FrameDNDTransferHandler;8 7 9 8 /** -
trunk/src/org/expeditee/dnd/FrameDNDTransferHandler.java
r238 r244 1 package org.expeditee ;1 package org.expeditee.importer; 2 2 3 3 import java.awt.Point; … … 16 16 import org.expeditee.gui.Browser; 17 17 import org.expeditee.gui.DisplayIO; 18 import org.expeditee.gui.FrameGraphics; 18 19 import org.expeditee.gui.MessageBay; 19 import org.expeditee.io.FileImporter;20 import org.expeditee.io.FilePathImporter;21 20 import org.expeditee.items.Text; 22 21 … … 49 48 50 49 // TODO: Image 50 _standardFileImporters.add(new ImageImporter()); 51 51 _standardFileImporters.add(new FilePathImporter()); // Filepath importer as last resort 52 52 … … 207 207 * The location in the current ecpeditee frame of where to drop the text item. 208 208 */ 209 public static voidimportString(String text, Point expediteeDropPoint) {209 public static Text importString(String text, Point expediteeDropPoint) { 210 210 211 211 assert(DisplayIO.getCurrentFrame() != null); … … 216 216 217 217 DisplayIO.getCurrentFrame().addItem(importedTextItem); 218 219 } 220 221 private void importFileList(List<? extends File> files, Point expediteeDropPoint) throws IOException { 218 FrameGraphics.requestRefresh(true); 219 220 return importedTextItem; 221 } 222 223 public void importFileList(List<? extends File> files, Point expediteeDropPoint) throws IOException { 222 224 223 225 Point currentPoint = expediteeDropPoint.getLocation(); … … 227 229 importFile(fileToImport, currentPoint); 228 230 229 currentPoint.y += 30; 231 currentPoint.y += 30; //TODO this needs to relate to the bottom of the item that was created 230 232 231 233 // TODO: Better placement strategy
Note:
See TracChangeset
for help on using the changeset viewer.