Package captureplugin.utils

Examples of captureplugin.utils.DeviceImportAndExport


     
      ExtensionFileFilter filter = new ExtensionFileFilter("tcf", mLocalizer.msg("FileType", "TV-Browser Capture-Device File (*.tcf)"));

      chooser.addChoosableFileFilter(filter);
      if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
        DeviceImportAndExport importer = new DeviceImportAndExport();
       
        DeviceIf device = importer.importDevice(mData, this, chooser.getSelectedFile());
       
        if (device == null) {
          ErrorHandler.handle(importer.getError(), importer.getException());
        } else {
          mData.getDevices().add(device);
        }

        mDeviceList.setListData(new Vector<DeviceIf>(mData.getDevices()));
View Full Code Here


       
        if (!file.getName().endsWith(".tcf")) {
          file = new File(file.getAbsolutePath() + ".tcf");
        }
       
        DeviceImportAndExport export = new DeviceImportAndExport();
       
        DeviceIf device = (DeviceIf) mDeviceList.getSelectedValue();
       
        if (!export.exportDevice(this, device, file)) {
          ErrorHandler.handle(export.getError(), export.getException());
        }

        mDeviceList.setListData(new Vector<DeviceIf>(mData.getDevices()));
      }
    }
View Full Code Here

TOP

Related Classes of captureplugin.utils.DeviceImportAndExport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.