org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport
Class CSVImportSource
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.ImportSource
org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.CSVImportSource
- All Implemented Interfaces:
- org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreeContentProvider
public class CSVImportSource
- extends ImportSource
- Author:
- gurcankarakoc, deser
CSVImportSource
public CSVImportSource()
- Constructor.
getChildren
public Object[] getChildren(Object ob)
- Specified by:
getChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
- Specified by:
getChildren
in class ImportSource
- Parameters:
ob
- the object to get the children from
- Returns:
- the children of the given object
- See Also:
ImportSource.getChildren(java.lang.Object)
getElements
public Object[] getElements(Object ob)
- Specified by:
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
- Specified by:
getElements
in interface org.eclipse.jface.viewers.ITreeContentProvider
- Specified by:
getElements
in class ImportSource
- Parameters:
ob
- The object to get the root elements from
- Returns:
- The list of groups, which were read from the specified file.
- See Also:
ImportSource.getElements(java.lang.Object)
getLabel
public String getLabel()
- Specified by:
getLabel
in class ImportSource
- Returns:
- String label.
- See Also:
ImportSource.getLabel()
init
public boolean init(org.eclipse.swt.widgets.Shell shell)
- Specified by:
init
in class ImportSource
- Parameters:
shell
- the shell, which holds the dialog for file selection
- Returns:
- if a file was selected and successfully handled
- See Also:
ImportSource.init(Shell)
getMessage
public String getMessage()
-
- Specified by:
getMessage
in class ImportSource
- Returns:
- Returns a little description of the current ImportSource, e.g.
the server String of an LDAP server or the file of an CSV import.
- See Also:
ImportSource.getMessage()
dispose
public void dispose()
-
- See Also:
IContentProvider.dispose()
inputChanged
public void inputChanged(org.eclipse.jface.viewers.Viewer arg0,
Object arg1,
Object arg2)
-
- See Also:
IContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object,
java.lang.Object)
Copyright © 2015. All Rights Reserved.