use of org.talend.designer.runtime.visualization.internal.ui.properties.thread.ThreadSashForm in project tdi-studio-se by Talend.
the class ThreadDumpEditorActionContributor method setActiveEditor.
/*
* @see EditorActionBarContributor#setActiveEditor(IEditorPart)
*/
@Override
public void setActiveEditor(IEditorPart targetEditor) {
if (!(targetEditor instanceof ThreadDumpEditor)) {
return;
}
ThreadDumpEditor threadDump = (ThreadDumpEditor) targetEditor;
ThreadSashForm sashForm = threadDump.getThreadSashForm();
for (ToggleOrientationAction action : orientationActions) {
action.setSashForm(sashForm);
if (action.isChecked()) {
action.run();
}
}
}
use of org.talend.designer.runtime.visualization.internal.ui.properties.thread.ThreadSashForm in project tdi-studio-se by Talend.
the class ThreadDumpEditor method createThreadsPage.
/**
* Creates the threads page.
*/
private void createThreadsPage() {
threadSashForm = new ThreadSashForm(getContainer(), getEditorSite().getActionBars());
threadSashForm.setInput(new IThreadInput() {
@Override
public IThreadElement[] getThreadListElements() {
return threadListElements.toArray(new IThreadElement[0]);
}
});
int page = addPage(threadSashForm);
setPageText(page, Messages.threadsTabLabel);
setPageImage(page, getThreadImage());
threadSashForm.refresh();
}
Aggregations