private void localActionHandler(Object source, String command){
if(source == fc){
if(command.equals(JFileChooser.APPROVE_SELECTION)){
File file = fc.getSelectedFile();
if(!file.isDirectory()){
LocalDataHandler handler = (LocalDataHandler)DataHandlerFactory.getDataHandler(localProject);
try {
handler.copy(file, homePath);
} catch (IOException e) {
JOptionPane.showMessageDialog(this,
"Can't copy file \n" + e.getMessage(), "Copy error",
JOptionPane.ERROR_MESSAGE);
}