Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.elexis.eigendiagnosen.data
Class Importer

java.lang.Object
  extended by ch.elexis.util.ImporterPage
      extended by ch.elexis.eigendiagnosen.data.Importer
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

public class Importer
extends ImporterPage


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.util.ImporterPage
ImporterPage.DBBasedImporter, ImporterPage.DirectoryBasedImporter, ImporterPage.FileBasedImporter, ImporterPage.ImporterJob, ImporterPage.ODBCBasedImporter
 
Field Summary
 
Fields inherited from class ch.elexis.util.ImporterPage
log, results
 
Constructor Summary
Importer()
           
 
Method Summary
 org.eclipse.swt.widgets.Composite createPage(org.eclipse.swt.widgets.Composite parent)
          Create the page that will let the user select a file to import.
 org.eclipse.core.runtime.IStatus doImport(org.eclipse.core.runtime.IProgressMonitor monitor)
          The import process starts when the user has selected a file and clicked "OK".
 java.lang.String getDescription()
          return a description to display in the message area of the import dialog
 java.lang.String getTitle()
          return a title to display in the title bar of the import dialog
 
Methods inherited from class ch.elexis.util.ImporterPage
collect, run, setInitializationData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer()
Method Detail

createPage

public org.eclipse.swt.widgets.Composite createPage(org.eclipse.swt.widgets.Composite parent)
Create the page that will let the user select a file to import. For simplicity, we use the default FileBasedImporter of our superclass.

Specified by:
createPage in class ImporterPage
Parameters:
parent - Achtung: Hat schon ein GridlLayout, darf nicht geändert werden.

doImport

public org.eclipse.core.runtime.IStatus doImport(org.eclipse.core.runtime.IProgressMonitor monitor)
                                          throws java.lang.Exception
The import process starts when the user has selected a file and clicked "OK". Warning: We can not read fields of the page created in createPage here! (The page is already disposed when doImport is called). If we have to transfer field values between createPage and doImport, we must override collect(). Our file based importer saves the user input in results[0]

Specified by:
doImport in class ImporterPage
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription()
return a description to display in the message area of the import dialog

Specified by:
getDescription in class ImporterPage

getTitle

public java.lang.String getTitle()
return a title to display in the title bar of the import dialog

Specified by:
getTitle in class ImporterPage

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013