The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 152 |
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 74 |
public static void main(String[] args) { showGUI(); } /** * Auto-generated method to display this org.eclipse.swt.widgets.Composite inside a new Shell. */ public static void showGUI() { Display display = Display.getDefault(); Shell shell = new Shell(display); ImportPageComposite inst = new ImportPageComposite(shell, SWT.NULL); Point size = inst.getSize(); shell.setLayout(new FillLayout()); shell.layout(); if (size.x == 0 && size.y == 0) { inst.pack(); shell.pack(); } else { Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y); shell.setSize(shellBounds.width, shellBounds.height); } shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } /** * The default constructor. * * @param parent * the parent composite * @param style * the style of widget to construct * @param mediator * the mediating wizard page */ public MainEntityComposite(Composite parent, int style, MainEntityPage mediator) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 107 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 116 |
ParametersComposite inst = new ParametersComposite(shell, SWT.NULL, null); Point size = inst.getSize(); shell.setLayout(new FillLayout()); shell.layout(); if (size.x == 0 && size.y == 0) { inst.pack(); shell.pack(); } else { Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y); shell.setSize(shellBounds.width, shellBounds.height); } shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } /** * The default constructor. * * @param parent * the parent composite * @param style * the style of widget to construct * @param mediator * the mediating wizard page */ public ParametersComposite(Composite parent, int style, ParametersWizardPage mediator) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 162 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 116 |
PreprocessingPageComposite inst = new PreprocessingPageComposite(shell, SWT.NULL, null); Point size = inst.getSize(); shell.setLayout(new FillLayout()); shell.layout(); if (size.x == 0 && size.y == 0) { inst.pack(); shell.pack(); } else { Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y); shell.setSize(shellBounds.width, shellBounds.height); } shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } /** * The default constructor. * * @param parent * the parent composite * @param style * the style of widget to construct * @param mediator * the mediating wizard page */ public PreprocessingPageComposite(Composite parent, int style, PreprocessingPage mediator) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 182 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 658 |
try { String modelId = template.getModelId(); Map<Integer, Integer> mapping = template.getModelToDataMapping(); IDataLoader loader = modelUtil.getDataLoader(modelId); dataSet = null; monitor.worked(200); Display.getDefault().syncExec(new Runnable() { public void run() { data = validationPage.getData(); errors = validationPage.getErrors(); } }); if (loader instanceof AbstractDataLoaderWithStatistics) { dataSet = ((AbstractDataLoaderWithStatistics)loader).loadData(data, mapping, errors); } else { dataSet = loader.loadData(data, mapping); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorMessageColumnLabelProvider.java | 44 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorTypeContentColumnLabelProvider.java | 92 |
ErrorSeverity type = ((ErrorTypeContent)element).getErrorType().getSeverity(); if (type.equals(ErrorSeverity.ERROR)) { img = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_ERROR_TSK); } else if (type.equals(ErrorSeverity.WARNING)) { img = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_WARN_TSK); } } return img != null ? img : super.getImage(element); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 465 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWithProgressMonitor.java | 102 |
final TabularData data = importerUtil.importData(path, template.getImporterId(), rowsLimit, template .getImporterOptions()); data.registerObserver(importLogger); monitor.worked(1000); // preprocessing wizard.analyzeDataInPreprocessing(data, template, monitor); // conversion if (!wizard.isPreprocessingActive()) { wizard.validateData(data, template, monitor); } monitor.done(); } catch (IOException e) { throw new InvocationTargetException(e); } catch (CoreException e) { throw new InvocationTargetException(e); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 484 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 497 |
public PreprocessingItemContentCellModifier(TableViewer tableViewer, String[] columnNames) { super(); this.tableViewer = tableViewer; this.columnNames = Arrays.asList(columnNames); } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ICellModifier#canModify(java.lang.Object, java.lang.String) */ public boolean canModify(Object element, String property) { return columnNames.indexOf(property) == 0; } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ICellModifier#getValue(java.lang.Object, java.lang.String) */ public Object getValue(Object element, String property) { // Find the index of the column int columnIndex = columnNames.indexOf(property); Object result = ""; //$NON-NLS-1$ if (element instanceof PreprocessingItemContent) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 444 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 613 |
List<BrokenRowInfo> errorsRowsToDelete = new ArrayList<BrokenRowInfo>(); for (BrokenCellInfo error : errs) { BrokenRowInfo errorRowToDelete = error.getBrokenRowInfo(); if (!errorsRowsToDelete.contains(errorRowToDelete)) { errorsRowsToDelete.add(errorRowToDelete); } if (errorRowToDelete.getSourceRow().getRowNumber() == 0) { // disable ignore first line check box when removing first // line ignoreFirstLineChkBox.setEnabled(false); ignoreFirstLineChkBox.setSelection(false); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 225 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 685 |
log.error(ERROR, e); status = false; final Exception ex = e; Display.getDefault().syncExec(new Runnable() { public void run() { MsgBoxHelper.showErrorBox(validationPage.getComposite(), Messages.ImportWizard_8, NLS .bind(Messages.ImportWizard_10, ex.getLocalizedMessage())); } }); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 95 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 214 |
tableViewer.setContentProvider(new ListContentProvider()); TableColumn[] tableColumns = tableViewer.getTable().getColumns(); for (TableColumn column : tableColumns) { column.dispose(); } AbstractColumnSorter sorter = null; int currSorterColumnNo = defaultSorterColumnNo; if (isSortable) { if (currSorterColumnNo < 0 || currSorterColumnNo >= captions.length) { currSorterColumnNo = 0; } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 847 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 862 |
final Action editSelected = new Action() { @Override public void run() { int[] selected = getSelectedErrors(); if (selected.length == 1) { BrokenCellInfo cellInfo = (BrokenCellInfo)errorsTableViewer.getElementAt(selected[0]); if (cellInfo.getColumn() == BrokenCellInfo.WHOLE_ROW_BROKEN) { return; } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 413 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 616 |
BrokenRowInfo errorRowToDelete = error.getBrokenRowInfo(); if (!errorsRowsToDelete.contains(errorRowToDelete)) { errorsRowsToDelete.add(errorRowToDelete); } if (errorRowToDelete.getSourceRow().getRowNumber() == 0) { // disable ignore first line check box when removing first // line ignoreFirstLineChkBox.setEnabled(false); ignoreFirstLineChkBox.setSelection(false); } } deleteRowsWithErrors(errorsRowsToDelete); } |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/ack/AckDataImporter.java | 49 |
pl/edu/agh/cast/data/importer/data/txt/TxtDataImporter.java | 48 |
private static Logger log = Activator.getLogger(); /** * {@inheritDoc} * * @see pl.edu.agh.cast.data.importer.data.IDataImporter#readData(java.io.InputStream, long, java.util.Map, * java.nio.charset.Charset) */ public TabularData readData(InputStream dataIS, long rowsLimit, Map<String, String> options, Charset charset) throws IOException { Charset currCharset = charset; if (currCharset == null) { // when not defined -> use default charset currCharset = Charset.defaultCharset(); } log.debug("Start reading TXT data. Charset: " + currCharset); //$NON-NLS-1$ |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 413 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 448 |
BrokenRowInfo errorRowToDelete = error.getBrokenRowInfo(); if (!errorsRowsToDelete.contains(errorRowToDelete)) { errorsRowsToDelete.add(errorRowToDelete); } if (errorRowToDelete.getSourceRow().getRowNumber() == 0) { // disable ignore first line check box when removing first // line ignoreFirstLineChkBox.setEnabled(false); ignoreFirstLineChkBox.setSelection(false); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/xls/JxlXlsDataImporter.java | 118 |
pl/edu/agh/cast/data/importer/data/xls/PoiXlsDataImporter.java | 82 |
HSSFRow row = sheet.getRow(rowIndex); if (row == null) { continue; } DataRow newRow = readRow(row); if (newRow == null || newRow.size() == 0) { continue; } resultList.add(newRow); } return resultList; } private DataRow readRow(HSSFRow row) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 161 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 644 |
ProjectStore.getInstance().remove(project); log.error("Unable to create project/model", e); //$NON-NLS-1$ Display.getDefault().syncExec(new Runnable() { public void run() { MsgBoxHelper.showErrorBox(validationPage.getComposite(), Messages.ImportWizard_8, Messages.ImportWizard_9); } }); status = false; return; } |
File | Line |
---|---|
pl/edu/agh/cast/data/template/xml/TemplateXmlExporter.java | 52 |
pl/edu/agh/cast/data/template/xml/TemplateXmlImporter.java | 73 |
public TemplateXmlImporter(Class<?>[] classesWithAnnotations) { if (classesWithAnnotations == null) { this.xstream = TemplateXStreamInitializer.createXStreamInstance(); } else { this.xstream = TemplateXStreamInitializer.createXStreamInstance(classesWithAnnotations); } log.debug("TemplateXmlExporter created."); //$NON-NLS-1$ } /** * Constructor. */ public TemplateXmlImporter() { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 535 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 553 |
PreprocessingItemContent item = (PreprocessingItemContent)((TableItem)element).getData(); switch (columnIndex) { case 0: // COMPLETED_COLUMN item.setChecked(((Boolean)value).booleanValue()); break; default: } } tableViewer.refresh(); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 142 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 145 |
public NewTemplateComposite(org.eclipse.swt.widgets.Composite parent, int style, NewTemplateWizardPage mediator) { super(parent, style); this.mediator = mediator; initGUI(); } private void initGUI() { try { GridLayout thisLayout = new GridLayout(); this.setLayout(thisLayout); this.setSize(671, 411); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 269 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 290 |
public void undoPreprecessingChanges(List<? extends IPreprocessingItem> changes, IProgressMonitor monitor) { if (changes == null || changes.isEmpty()) { return; } if (getPreprocessor() != null) { monitor.subTask(Messages.ImportWizard_16); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 173 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 609 |
monitor.worked(500); Display.getDefault().syncExec(new Runnable() { public void run() { path = importPage.getFilePath(); template = importPage.getTemplate(); } }); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 77 |
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 101 |
final List<Template> validTemplates = new ArrayList<Template>(); String templateExtension = Configuration.TEMPLATE_FILE_EXTENSION; for (IResource resource : project.members()) { String fileExtension = resource.getFileExtension(); if (fileExtension != null && fileExtension.equals(templateExtension)) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 406 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 451 |
for (i = 0; i <= width; i += SHRINK_AND_EXPAND_SPEED) { final int index = i; column.getDisplay().syncExec(new Runnable() { public void run() { column.setWidth(index); } }); } if (i - SHRINK_AND_EXPAND_SPEED < width) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 486 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 491 |
} else { for (int i = 0; i < selectedColumns.length; i++) { TableColumn column = dataTableViewer.getTable().getColumn(selectedColumns[i] + 1); TableViewerHelper.getInstance().shrinkColumn(column); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 773 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 778 |
} else { for (int i = 0; i < ignoredColumns.length; i++) { TableColumn column = previewTableViewer.getTable().getColumn(ignoredColumns[i] + 1); TableViewerHelper.getInstance().shrinkColumn(column); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 516 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 533 |
result = String.valueOf(item.getItem().getDataCellsCount()); break; default: break; } } return result; } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ICellModifier#modify(java.lang.Object, java.lang.String, java.lang.Object) */ public void modify(Object element, String property, Object value) { // Find the index of the column int columnIndex = columnNames.indexOf(property); if (element instanceof TableItem) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 152 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 97 |
public static void main(String[] args) { showGUI(); } /** * Auto-generated method to display this org.eclipse.swt.widgets.Composite inside a new Shell. */ public static void showGUI() { Display display = Display.getDefault(); Shell shell = new Shell(display); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 213 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 480 |
Display.getDefault().syncExec(new Runnable() { public void run() { Mapper.getInstance().save(dataSet, projectF); } }); importLogger.finish(project.getLocation().toOSString(), dataSet.getId()); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorCodeColumnLabelProvider.java | 29 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/RowNumberColumnLabelProvider.java | 34 |
public class RowNumberColumnLabelProvider extends ColumnLabelProvider { /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object) */ @Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof BrokenCellInfo) { res = String.valueOf(((BrokenCellInfo)element).getBrokenRowInfo().getSourceRow().getRowNumber() + 1); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 199 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 265 |
TableViewerColumn viewerColumn0 = new TableViewerColumn(itemsTableViewer, SWT.NONE); viewerColumn0.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { return ""; //$NON-NLS-1$ } }); viewerColumn0.getColumn().setText(Messages.PreprocessingPageComposite_6); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 185 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 189 |
selectAllBtn.setText(Messages.PreprocessingPageComposite_1); selectAllBtn.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent event) { handleSelectAllAction(); } }); deselectAllBtn = new Button(operationsComposite, SWT.PUSH | SWT.CENTER); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/export/ExportTemplateActionNavigator.java | 62 |
pl/edu/agh/cast/data/template/export/ExportTemplateButtonAction.java | 46 |
AbstractTemplateUtil.exportTemplate(template, target); onSuccess(target.getAbsolutePath()); } catch (Exception e) { e.printStackTrace(); onError(target.getAbsolutePath(), e); } } } |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/ack/AckDataImporter.java | 49 |
pl/edu/agh/cast/data/importer/data/csv/CsvDataImporter.java | 55 |
private static Logger log = Activator.getLogger(); /** * {@inheritDoc} * * @see pl.edu.agh.cast.data.importer.data.IDataImporter#readData(java.io.InputStream, long, java.util.Map, * java.nio.charset.Charset) */ public TabularData readData(InputStream dataIS, long rowsLimit, Map<String, String> options, Charset charset) throws IOException { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 136 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 145 |
public ValidationPageComposite(Composite parent, int style, ValidationPage mediator) { super(parent, style); this.mediator = mediator; initGUI(); } private void initGUI() { try { GridLayout thisLayout = new GridLayout(); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 163 |
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 228 |
Display.getDefault().syncExec(new Runnable() { public void run() { MsgBoxHelper.showErrorBox(validationPage.getComposite(), Messages.ImportWizard_8, NLS.bind( |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 142 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 625 |
if (project == null) { Display.getDefault().syncExec(new Runnable() { public void run() { projectName = importPage.getProjectName(); } }); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListContentProvider.java | 40 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/TabularDataContentProvider.java | 40 |
return data.getAllRows().toArray(); } return null; } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { // TODO Auto-generated method stub } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, * java.lang.Object) */ public void inputChanged(Viewer arg0, Object arg1, Object arg2) { // TODO Auto-generated method stub } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 246 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 360 |
private void setPreprocessingActive() { String templateName = importPageComposite.getSelectedTemplateName(); if (templateName == null) { return; } Template template = templates.get(templateName); if (template != null) { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/Template.java | 298 |
pl/edu/agh/cast/data/template/Template.java | 489 |
if (!getImporterOptions().equals(other.getImporterOptions())) { return false; } return true; } /** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = prime; result = prime * result + importerId.hashCode(); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 833 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 862 |
final Action defaultValueSelected = new Action() { @Override public void run() { int[] selected = getSelectedErrors(); if (selected.length == 1) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 385 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 437 |
public ExpandColumnThread(int width, TableColumn column) { super(); this.width = width; this.column = column; } /** * {@inheritDoc} * * @see java.lang.Thread#run() */ @Override public void run() { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 150 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 632 |
project = ProjectUtil.getInstance().createAndActivateProject(projectName, Platform.getLocation().addTrailingSeparator().append(projectName)); store.init(project); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/Template.java | 196 |
pl/edu/agh/cast/data/template/Template.java | 220 |
this(name, modelId, importerId, importerOptions, null, modelToDataMapping, columnsParameters, description); } /** * Constructor. * * @param name * the template name * @param modelId * the template model identifier * @param importerId * the template importer identifier * @param importerOptions * the importer options * @param modelToDataMapping * the model to data mapping * @param description * the template description */ public Template(String name, String modelId, String importerId, Map<String, String> importerOptions, Map<Integer, Integer> modelToDataMapping, String description) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 408 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 463 |
column.getDisplay().syncExec(new Runnable() { public void run() { column.setWidth(index); } }); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 217 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 289 |
TableViewerColumn viewerColumn2 = new TableViewerColumn(itemsTableViewer, SWT.NONE); viewerColumn2.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { return String.valueOf(((PreprocessingItemContent)element).getItem().getDataCellsCount()); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 105 |
pl/edu/agh/cast/data/ui/logging/ImportLogFileDialog.java | 164 |
public static void main(String[] args) { try { Display display = Display.getDefault(); Shell shell = new Shell(display); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/DataRowIndexColumnLabelProvider.java | 45 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListColumnLabelProvider.java | 80 |
@Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof DataRow) { DataRow row = (DataRow)element; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 775 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 488 |
TableColumn column = dataTableViewer.getTable().getColumn(selectedColumns[i] + 1); TableViewerHelper.getInstance().expandColumn(column); } } else { for (int i = 0; i < selectedColumns.length; i++) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 458 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPage.java | 163 |
IRunnableWithProgress op = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { monitor.beginTask(Messages.PreprocessingPage_0, 3000); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 206 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 474 |
monitor.beginTask(Messages.ImportWizard_7, 3000); dataSet.setId(DataImporter.getName(path)); model.addDataSet(dataSet); dataSet.setModel(model); final IProject projectF = project; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 208 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 274 |
TableViewerColumn viewerColumn1 = new TableViewerColumn(itemsTableViewer, SWT.NONE); viewerColumn1.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { return ((PreprocessingItemContent)element).getItem().getItemName(); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/DataRowEditingSupport.java | 120 |
pl/edu/agh/cast/data/ui/importer/wizard/DataRowEditingSupport.java | 136 |
protected void setValue(Object element, Object value) { if (element instanceof DataRow) { DataRow row = (DataRow)element; if (columnIdx < row.size()) { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/Template.java | 257 |
pl/edu/agh/cast/data/template/Template.java | 469 |
} /** * {@inheritDoc} * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) { // the same object return true; } if (!(obj instanceof TemplateFormat)) { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/ColumnsParametersConverter.java | 94 |
pl/edu/agh/cast/data/template/ModelToDataMappingConverter.java | 76 |
Map<Integer, Integer> modelToDataMapping = new HashMap<Integer, Integer>(); while (reader.hasMoreChildren()) { reader.moveDown(); if (reader.getNodeName().equals(COLUMN_ELEM)) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/template/NewTemplateWizardPage.java | 239 |
pl/edu/agh/cast/data/ui/template/NewTemplateWizardPage.java | 288 |
public String getSamplePrototypeContent() { IDataImporter importer = getDataImporterInstance(); NewTemplateWizard wizard = (NewTemplateWizard)getWizard(); String filePath = wizard.getPrototypeFilePath(); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 199 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 202 |
deselectAllBtn.setText(Messages.PreprocessingPageComposite_2); deselectAllBtn.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent event) { handleDeselectAllAction(); } }); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 178 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPage.java | 190 |
new ProgressMonitorDialog(CastApplication.getDisplay().getActiveShell()).run(true, false, op); } catch (InvocationTargetException e) { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/export/ExportTemplateActionNavigator.java | 77 |
pl/edu/agh/cast/data/ui/importer/action/ImportWizardActionNavigator.java | 45 |
public void selectionChanged(IAction action, ISelection selection) { if (selection instanceof IStructuredSelection) { IStructuredSelection sSelection = (IStructuredSelection)selection; |
File | Line |
---|---|
pl/edu/agh/cast/data/template/ColumnsParametersConverter.java | 123 |
pl/edu/agh/cast/data/template/ModelToDataMappingConverter.java | 93 |
} /** * {@inheritDoc} * * @see com.thoughtworks.xstream.converters.ConverterMatcher#canConvert(java.lang.Class) */ @SuppressWarnings("unchecked") public boolean canConvert(Class clazz) { return Map.class.isAssignableFrom(clazz); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/template/NewTemplateWizardPage.java | 123 |
pl/edu/agh/cast/data/ui/template/NewTemplateWizardPage.java | 137 |
public String getPreprocessorDescription() { IConfigurationElement preprocessorElem = preprocessorConfigurations.get(templateComposite .getSelectedPreprocessor()); if (preprocessorElem == null) { // no / wrong preprocessor selected return ""; //$NON-NLS-1$ |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/TabularDataContentProvider.java | 43 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/TemplateTreeContentProvider.java | 85 |
} /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { // TODO Auto-generated method stub } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, * java.lang.Object) */ public void inputChanged(Viewer arg0, Object arg1, Object arg2) { // TODO Auto-generated method stub } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/RowNumberColumnLabelProvider.java | 34 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/WrongCellColumnLabelProvider.java | 31 |
public class WrongCellColumnLabelProvider extends ColumnLabelProvider { /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object) */ @Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof BrokenCellInfo) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListContentProvider.java | 43 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/TemplateTreeContentProvider.java | 85 |
} /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { // TODO Auto-generated method stub } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, * java.lang.Object) */ public void inputChanged(Viewer arg0, Object arg1, Object arg2) { // TODO Auto-generated method stub } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ColumnNumberColumnLabelProvider.java | 31 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/RowNumberColumnLabelProvider.java | 34 |
public class ErrorCodeColumnLabelProvider extends ColumnLabelProvider { /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object) */ @Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof BrokenCellInfo) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 462 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 774 |
for (BrokenRowInfo errorRowToDelete : errorsRowsToDelete) { // remove from model errors.removeBrokenRowInfo(errorRowToDelete); // remove from data table dataTableViewer.remove(errorRowToDelete.getSourceRow()); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 679 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 688 |
} catch (ParserConfigurationException e) { MessageDialog.openError(button.getShell(), Messages.ImportPageComposite_6, Messages.ImportPageComposite_7); } catch (SAXException e) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 428 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 174 |
while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } |
File | Line |
---|---|
pl/edu/agh/cast/data/template/Template.java | 186 |
pl/edu/agh/cast/data/template/Template.java | 217 |
public Template(String name, String modelId, String importerId, Map<String, String> importerOptions, Map<Integer, Integer> modelToDataMapping, Map<Integer, ModelColumnParameter[]> columnsParameters, String description) { this(name, modelId, importerId, importerOptions, null, modelToDataMapping, columnsParameters, description); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 122 |
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 149 |
IFile ifile = project.getFile(templateFileName); IPath location = ifile.getLocation(); if (location != null) { File file = location.toFile(); |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/ack/AckDataImporter.java | 57 |
pl/edu/agh/cast/data/importer/data/xls/JxlXlsDataImporter.java | 74 |
public TabularData readData(InputStream dataIS, long rowsLimit, Map<String, String> options, Charset charset) throws IOException { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 408 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 417 |
column.getDisplay().syncExec(new Runnable() { public void run() { column.setWidth(0); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 397 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 416 |
if (i + SHRINK_AND_EXPAND_SPEED > 0) { column.getDisplay().syncExec(new Runnable() { public void run() { column.setWidth(0); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/template/MappingWizardPage.java | 81 |
pl/edu/agh/cast/data/ui/template/ParametersWizardPage.java | 42 |
protected ParametersWizardPage(String pageName, String pageDescription) { super(pageName); setTitle(pageName); setDescription(pageDescription); } /** * Sets the parameters wizard page and parameters composite data. * * @param columnMapping * the mapping of model columns to column indexes * @param data * the tabular data */ public void setData(Map<ModelColumn, Integer> columnMapping, TabularData data) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorCodeColumnLabelProvider.java | 36 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorMessageColumnLabelProvider.java | 60 |
@Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof BrokenCellInfo) { res = ((BrokenCellInfo)element).getErrorInfo().getMessage(); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 210 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 139 |
initGUI(); } private void initGUI() { try { GridLayout thisLayout = new GridLayout(); thisLayout.numColumns = 2; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 302 |
pl/edu/agh/cast/data/ui/template/NewTemplateWizardPage.java | 253 |
if (is != null) { try { is.close(); } catch (IOException e) { // do nothing } } |
File | Line |
---|---|
pl/edu/agh/cast/data/template/ColumnsParametersConverter.java | 81 |
pl/edu/agh/cast/data/template/ModelToDataMappingConverter.java | 62 |
writer.endNode(); } } } /** * {@inheritDoc} * * @see com.thoughtworks.xstream.converters.Converter#unmarshal( * com.thoughtworks.xstream.io.HierarchicalStreamReader, * com.thoughtworks.xstream.converters.UnmarshallingContext) */ public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext contect) { Map<Integer, Integer> modelToDataMapping = new HashMap<Integer, Integer>(); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/ColumnsParametersConverter.java | 58 |
pl/edu/agh/cast/data/template/ModelToDataMappingConverter.java | 50 |
@SuppressWarnings("unchecked") public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingContext context) { Map<Integer, Integer> modelToDataMapping = (Map<Integer, Integer>)value; |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/xls/JxlXlsDataImporter.java | 88 |
pl/edu/agh/cast/data/importer/data/xls/PoiXlsDataImporter.java | 60 |
for (int sheetIndex = 0; sheetIndex < workbook.getNumberOfSheets(); sheetIndex++) { if (rowsLimit <= result.size()) { break; } List<DataRow> sheetRows = readSheet(workbook.getSheetAt(sheetIndex), rowsLimit); |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/csv/CsvDataImporter.java | 68 |
pl/edu/agh/cast/data/importer/data/txt/TxtDataImporter.java | 59 |
Charset currCharset = charset; if (currCharset == null) { // when not defined -> use default charset currCharset = Charset.defaultCharset(); } log.debug("Start reading TXT data. Charset: " + currCharset); //$NON-NLS-1$ |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/ack/AckDataImporter.java | 65 |
pl/edu/agh/cast/data/importer/data/txt/TxtDataImporter.java | 65 |
log.debug("Start reading TXT data. Charset: " + currCharset); //$NON-NLS-1$ InputStreamReader isr = new InputStreamReader(dataIS, currCharset); BufferedReader reader = new BufferedReader(isr); List<String> lines = new ArrayList<String>(); |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/ack/AckDataImporter.java | 60 |
pl/edu/agh/cast/data/importer/data/csv/CsvDataImporter.java | 68 |
Charset currCharset = charset; if (currCharset == null) { // when not defined -> use default charset currCharset = Charset.defaultCharset(); } log.debug("Start reading CSV data. Charset: " + currCharset); //$NON-NLS-1$ |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/IDataImporter.java | 47 |
pl/edu/agh/cast/data/importer/data/xls/JxlXlsDataImporter.java | 74 |
public TabularData readData(InputStream dataIS, long rowsLimit, Map<String, String> options, Charset charset) throws IOException { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListColumnLabelProvider.java | 81 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListLabelProvider.java | 50 |
public String getColumnText(Object element, int columnIndex) { String res = ""; //$NON-NLS-1$ if (element instanceof DataRow) { DataRow row = (DataRow)element; if (columnIndex < row.size()) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 525 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 539 |
mediator.validateRow(row); dataTableViewer.update(row, null); errorsTableViewer.refresh(); updateStats(); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 342 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 426 |
templateNameExists.setVisible(false); this.layout(); } catch (Exception e) { e.printStackTrace(); } } /** * Notifies when importer options are modified. */ public void notifyOptionsChange() { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 260 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 97 |
TableColumn[] tableColumns = tableViewer.getTable().getColumns(); for (TableColumn column : tableColumns) { column.dispose(); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityPage.java | 50 |
pl/edu/agh/cast/data/ui/template/MappingWizardPage.java | 81 |
public MappingWizardPage(String pageName, String pageDescription) { super(pageName); setTitle(pageName); setDescription(pageDescription); } /** * {@inheritDoc} * * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl(Composite parent) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 473 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 605 |
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask(Messages.ImportWizard_7, 3000); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 197 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 348 |
validationPage.restoreIgnoredRows(); String modelId = tmpl.getModelId(); IDataLoader loader = modelUtil.getDataLoader(modelId); if (loader == null) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 679 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 691 |
} catch (SAXException e) { MessageDialog.openError(button.getShell(), Messages.ImportPageComposite_6, Messages.ImportPageComposite_7); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 445 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 342 |
createDiagramChkBox.setSize(-1, -1); this.layout(); } catch (Exception e) { e.printStackTrace(); } } /** * Sets the validation page composite data. * *@param dat * the data to import * @param tmpl * the import template * @param errs * the errors information */ public void setData(TabularData dat, Template tmpl, BrokenDataInfo errs) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 486 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPage.java | 190 |
new ProgressMonitorDialog(CastApplication.getDisplay().getActiveShell()).run(true, false, op); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 483 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 490 |
} }; new ProgressMonitorDialog(CastApplication.getDisplay().getActiveShell()).run(true, false, op2); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPage.java | 460 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWithProgressMonitor.java | 98 |
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { monitor.beginTask(Messages.ImportWizard_1, 3000); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 281 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 216 |
TableColumn[] tableColumns = itemsTableViewer.getTable().getColumns(); for (TableColumn column : tableColumns) { column.dispose(); } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 170 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 174 |
operationsComposite = new Composite(this, SWT.NONE); GridLayout operationsCompositeLayout = new GridLayout(); operationsCompositeLayout.makeColumnsEqualWidth = true; operationsCompositeLayout.marginHeight = 0; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 134 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 473 |
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask(Messages.ImportWizard_7, 3000); |
File | Line |
---|---|
pl/edu/agh/cast/data/template/export/AbstractExportTemplateAction.java | 62 |
pl/edu/agh/cast/data/ui/importer/action/ImportWizardAction.java | 65 |
} catch (CoreException e) { MsgBoxHelper.showErrorBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.ImportWizardAction_2, NLS.bind(Messages.ImportWizardAction_3, e.getMessage())); |
File | Line |
---|---|
pl/edu/agh/cast/data/importer/data/IDataImporter.java | 47 |
pl/edu/agh/cast/data/importer/data/xls/AbstractXlsDataImporter.java | 60 |
public abstract TabularData readData(InputStream dataIS, long rowsLimit, Map<String, String> options, Charset charset) throws IOException; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 398 |
pl/edu/agh/cast/data/ui/utils/TableViewerHelper.java | 463 |
column.getDisplay().syncExec(new Runnable() { public void run() { column.setWidth(index); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ColumnNumberColumnLabelProvider.java | 38 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorMessageColumnLabelProvider.java | 60 |
@Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof BrokenCellInfo) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/TemplateInfo.java | 124 |
pl/edu/agh/cast/data/ui/template/ModelInfo.java | 88 |
FontData fd = new FontData(); fd.setStyle(SWT.BOLD); fd.setHeight(9); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 182 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 186 |
selectAllBtnLData.horizontalAlignment = GridData.FILL; selectAllBtnLData.grabExcessHorizontalSpace = true; selectAllBtn.setLayoutData(selectAllBtnLData); selectAllBtn.setText(Messages.PreprocessingPageComposite_1); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/ErrorMessageColumnLabelProvider.java | 52 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListColumnLabelProvider.java | 72 |
this(columnNumber, null); } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object) */ @Override public String getText(Object element) { String res = ""; //$NON-NLS-1$ if (element instanceof DataRow) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/provider/DataRowIndexColumnLabelProvider.java | 46 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListLabelProvider.java | 50 |
public String getColumnText(Object element, int columnIndex) { String res = ""; //$NON-NLS-1$ if (element instanceof DataRow) { DataRow row = (DataRow)element; |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 249 |
pl/edu/agh/cast/data/ui/template/NewTemplateComposite.java | 426 |
createDiagramChkBox.setSize(-1, -1); this.layout(); } catch (Exception e) { e.printStackTrace(); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 179 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/TabularDataContentProvider.java | 40 |
return ((List)element).toArray(); } return null; } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { // TODO Auto-generated method stub } /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, * java.lang.Object) */ public void inputChanged(Viewer arg0, Object arg1, Object arg2) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/MainEntityComposite.java | 173 |
pl/edu/agh/cast/data/ui/importer/wizard/provider/ListContentProvider.java | 30 |
public class ListContentProvider implements IStructuredContentProvider { /** * {@inheritDoc} * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @SuppressWarnings("unchecked") public Object[] getElements(Object element) { if (element instanceof List) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 609 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 645 |
monitor.worked(200); Display.getDefault().syncExec(new Runnable() { public void run() { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 493 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPage.java | 190 |
new ProgressMonitorDialog(CastApplication.getDisplay().getActiveShell()).run(true, false, op); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 366 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 645 |
monitor.worked(500); Display.getDefault().syncExec(new Runnable() { public void run() { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 275 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 296 |
getPreprocessor().undoChanges(changes, importLogger); monitor.worked(1000); } else { log.warn(Messages.ImportWizard_17); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 178 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportWizard.java | 493 |
new ProgressMonitorDialog(CastApplication.getDisplay().getActiveShell()).run(true, false, op2); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportWithProgressMonitor.java | 98 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPage.java | 165 |
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { monitor.beginTask(Messages.PreprocessingPage_0, 3000); |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 445 |
pl/edu/agh/cast/data/ui/importer/wizard/PreprocessingPageComposite.java | 249 |
previewTableViewer.setUseHashlookup(true); this.layout(); } catch (Exception e) { e.printStackTrace(); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 413 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 426 |
allColumnsChkBox.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 355 |
pl/edu/agh/cast/data/ui/template/ParametersComposite.java | 197 |
possibleValuesTable.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 340 |
pl/edu/agh/cast/data/ui/importer/wizard/ImportPageComposite.java | 426 |
showPreviewChkBox.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 265 |
pl/edu/agh/cast/data/ui/importer/wizard/ValidationPageComposite.java | 228 |
deleteBtn.setSize(-1, -1); deleteBtn.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent event) { |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ErrorTypesDialog.java | 109 |
pl/edu/agh/cast/data/ui/logging/ImportLogFileDialog.java | 168 |
ImportLogFileDialog inst = new ImportLogFileDialog(shell, "dataSetId"); //$NON-NLS-1$ inst.open(); } catch (Exception e) { e.printStackTrace(); } } |
File | Line |
---|---|
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 162 |
pl/edu/agh/cast/data/ui/importer/wizard/ConversionWithProgressMonitor.java | 189 |
monitor.subTask(Messages.ImportWizard_6); Display.getDefault().syncExec(new Runnable() { public void run() { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/Template.java | 185 |
pl/edu/agh/cast/data/template/Template.java | 217 |
public Template(String name, String modelId, String importerId, Map<String, String> importerOptions, |
File | Line |
---|---|
pl/edu/agh/cast/data/template/ModelToDataMappingConverter.java | 61 |
pl/edu/agh/cast/data/template/TemplateFormatConverter.java | 56 |
writer.setValue(option.getValue()); writer.endNode(); } } } /** * {@inheritDoc} * * @see com.thoughtworks.xstream.converters.Converter#unmarshal( * com.thoughtworks.xstream.io.HierarchicalStreamReader, * com.thoughtworks.xstream.converters.UnmarshallingContext) */ public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext contect) { |
File | Line |
---|---|
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 87 |
pl/edu/agh/cast/data/template/AbstractTemplateUtil.java | 112 |