I have started integrating mylyn with my bug trackker.

i have to insert one custom part where i want data to be printed in tabular
format.
so for that, i have my class that implements AbstractTaskEditorPage
and createPartDescriptor() method adds all my Coustom part.
now for each coustom part i have my classes that implements
AbstractTaskEditorPart

for example

class MyCoustomPart extends AbstractTaskEditorPart
{
     public createControl()
     {
         Table w_scmFilsTable = a_toolkit.createTable(a_scmComposite,
SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION);
w_scmFilsTable.setLinesVisible(true);
w_scmFilsTable.setHeaderVisible(true);
w_scmFilsTable.setLayout(new GridLayout());
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true,
false).hint(500, SWT.DEFAULT).applyTo(w_scmFilsTable);

for (int i = 0; i < SCM_COLUMNS.length; i++) {
TableColumn w_column = new TableColumn(w_scmFilsTable, SWT.LEFT, i);
w_column.setText(SCM_COLUMNS[i]);
w_column.setWidth(SCM_COLUMN_WIDTH[i]);
}
w_scmFilsTable.setVisible(true);
 TableViewer w_scmTableViewer = new TableViewer(w_scmFilsTable);
 w_scmTableViewer.setColumnProperties(SCM_COLUMNS);
 w_scmTableViewer.add(m_scmFiles);
 w_scmTableViewer.setContentProvider(new SCMContentProvider());
w_scmTableViewer.setLabelProvider(new SCMLabelProvider());
w_scmTableViewer.setInput(getTaskData());
     }
 }


now here in the highlighted code  in yellow i have made one tableviewer for
tabular data and then i have set contentProvider and LabelProvider for
 tableviewer.

but i am unable to get tabular data
plz help.
_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators

Reply via email to