Changeset 244


Ignore:
Timestamp:
08/21/08 11:21:14 (16 years ago)
Author:
ra33
Message:
 
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.io;
     1package org.expeditee.importer;
    22
    33import java.awt.Point;
  • trunk/src/org/expeditee/dnd/FilePathImporter.java

    r238 r244  
    1 package org.expeditee.io;
     1package org.expeditee.importer;
    22
    33import java.awt.Point;
     
    55import java.io.IOException;
    66
    7 import org.expeditee.FrameDNDTransferHandler;
    87
    98/**
  • trunk/src/org/expeditee/dnd/FrameDNDTransferHandler.java

    r238 r244  
    1 package org.expeditee;
     1package org.expeditee.importer;
    22
    33import java.awt.Point;
     
    1616import org.expeditee.gui.Browser;
    1717import org.expeditee.gui.DisplayIO;
     18import org.expeditee.gui.FrameGraphics;
    1819import org.expeditee.gui.MessageBay;
    19 import org.expeditee.io.FileImporter;
    20 import org.expeditee.io.FilePathImporter;
    2120import org.expeditee.items.Text;
    2221
     
    4948               
    5049                // TODO: Image
     50                _standardFileImporters.add(new ImageImporter());
    5151                _standardFileImporters.add(new FilePathImporter()); // Filepath importer as last resort
    5252       
     
    207207         *              The location in the current ecpeditee frame of where to drop the text item.
    208208         */
    209         public static void importString(String text, Point expediteeDropPoint) {
     209        public static Text importString(String text, Point expediteeDropPoint) {
    210210               
    211211                assert(DisplayIO.getCurrentFrame() != null);
     
    216216               
    217217                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 {
    222224       
    223225                Point currentPoint = expediteeDropPoint.getLocation();
     
    227229                        importFile(fileToImport, currentPoint);
    228230                       
    229                         currentPoint.y += 30;
     231                        currentPoint.y += 30; //TODO this needs to relate to the bottom of the item that was created
    230232                       
    231233                        // TODO: Better placement strategy
Note: See TracChangeset for help on using the changeset viewer.