Search in sources :

Example 1 with ThreadSashForm

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();
        }
    }
}
Also used : ToggleOrientationAction(org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction) ThreadSashForm(org.talend.designer.runtime.visualization.internal.ui.properties.thread.ThreadSashForm)

Example 2 with ThreadSashForm

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();
}
Also used : IThreadElement(org.talend.designer.runtime.visualization.IThreadElement) IThreadInput(org.talend.designer.runtime.visualization.internal.ui.properties.thread.IThreadInput) ThreadSashForm(org.talend.designer.runtime.visualization.internal.ui.properties.thread.ThreadSashForm)

Aggregations

ThreadSashForm (org.talend.designer.runtime.visualization.internal.ui.properties.thread.ThreadSashForm)2 IThreadElement (org.talend.designer.runtime.visualization.IThreadElement)1 ToggleOrientationAction (org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction)1 IThreadInput (org.talend.designer.runtime.visualization.internal.ui.properties.thread.IThreadInput)1