use of org.talend.designer.runtime.visualization.internal.ui.properties.StackTraceViewer in project tdi-studio-se by Talend.
the class SWTResourcesPage method createSashFormControls.
/*
* @see AbstractSashForm#createSashFormControls(SashForm, IActionBars)
*/
@Override
protected void createSashFormControls(SashForm sashForm, IActionBars actionBars) {
resourceFilteredTree = new SWTResourceFilteredTree(sashForm, actionBars);
TreeViewer resourceViewer = resourceFilteredTree.getViewer();
resourceViewer.setContentProvider(new SWTResourceContentProvider(resourceViewer));
resourceViewer.setLabelProvider(new SWTResourceLabelProvider());
resourceViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
ISelection selection = event.getSelection();
if (selection.isEmpty()) {
selection = null;
}
stackTraceViewer.setInput(selection);
}
});
stackTraceViewer = new StackTraceViewer(sashForm, actionBars);
}
use of org.talend.designer.runtime.visualization.internal.ui.properties.StackTraceViewer in project tdi-studio-se by Talend.
the class ThreadSashForm method createSashFormControls.
/*
* @see AbstractSashForm#createSashFormControls(SashForm, IActionBars)
*/
@Override
protected void createSashFormControls(SashForm sashForm, IActionBars actionBars) {
threadViewer = new ThreadFilteredTree(sashForm, actionBars).getViewer();
threadViewer.setContentProvider(new ThreadContentProvider(threadViewer));
threadViewer.setLabelProvider(new ThreadLabelProvider(threadViewer));
threadViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
ISelection selection = event.getSelection();
if (selection.isEmpty()) {
selection = null;
}
stackTraceViewer.setInput(selection);
}
});
stackTraceViewer = new StackTraceViewer(sashForm, actionBars);
}
Aggregations