// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.designer.core.ui.hierarchy;
import java.util.List;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IWorkbenchPart;
import org.talend.core.model.process.IProcess2;
/**
* A JobHierarchyViewer that looks like the job hierarchy view of VA/job: Starting form root job down to the element in
* focus, then all subjobs from this element. Used by the JobHierarchyViewPart which has to provide a
* JobHierarchyLifeCycle on construction.
*/
public class TraditionalJobHierarchyViewer extends JobHierarchyViewer {
public TraditionalJobHierarchyViewer(Composite parent, JobHierarchyLifeCycle lifeCycle, IWorkbenchPart part) {
super(parent, new TraditionalJobHierarchyContentProvider(lifeCycle), lifeCycle, part);
}
/*
* @see TypeHierarchyViewer#updateContent
*/
public void updateContent(boolean expand) {
}
/**
* Content provider for the 'traditional' job hierarchy.
*/
public static class TraditionalJobHierarchyContentProvider extends JobHierarchyContentProvider {
public TraditionalJobHierarchyContentProvider(JobHierarchyLifeCycle provider) {
super(provider);
}
protected void getJobsInHierarchy(IProcess2 process, List res) {
}
}
}