use of com.liferay.ide.project.ui.migration.IgnoreAlwaysAction in project liferay-ide by liferay.
the class FindBreakingChangesPage method createTableView.
public void createTableView(Composite container) {
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.minimumWidth = 200;
gridData.minimumHeight = 200;
Composite tableComposite = new Composite(container, SWT.NONE);
_problemsViewer = new TableViewer(tableComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.VIRTUAL);
_problemsViewer.getTable().setLayoutData(gridData);
_createColumns(_problemsViewer);
final Table table = _problemsViewer.getTable();
table.setHeaderVisible(true);
_problemsViewer.setContentProvider(ArrayContentProvider.getInstance());
_problemsViewer.setComparer(null);
_comparator = new MigratorComparator();
_problemsViewer.setComparator(_comparator);
MenuManager menuMgr = new MenuManager();
IAction markDoneAction = new MarkDoneAction(_problemsViewer);
IAction markUndoneAction = new MarkUndoneAction(_problemsViewer);
IAction ignoreAction = new IgnoreAction(_problemsViewer);
IAction ignoreAlways = new IgnoreAlwaysAction(_problemsViewer);
IAction autoCorrectAction = new AutoCorrectAction(_problemsViewer);
menuMgr.add(markDoneAction);
menuMgr.add(markUndoneAction);
menuMgr.add(ignoreAction);
menuMgr.add(autoCorrectAction);
menuMgr.add(ignoreAlways);
Menu menu = menuMgr.createContextMenu(table);
table.setMenu(menu);
_problemsViewer.addDoubleClickListener(this);
}
Aggregations