Package fr.adrienbrault.idea.symfony2plugin.profiler

Source Code of fr.adrienbrault.idea.symfony2plugin.profiler.SymfonyWebProfilerPane

package fr.adrienbrault.idea.symfony2plugin.profiler;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ex.ToolWindowEx;
import com.intellij.ui.content.Content;
import com.intellij.ui.content.ContentManager;

public class SymfonyWebProfilerPane {

    private Project project;
    protected SymfonyWebProfilerPane(Project project) {
        this.project = project;
    }

    public void setup(ToolWindowEx toolWindow) {

        ContentManager contentManager = toolWindow.getContentManager();
        Content content = contentManager.getFactory().createContent(new Symfony2WebProfilerForm(this.project).createComponent(), null, true);
        contentManager.addContent(content);
        contentManager.setSelectedContent(content, true);

    }

}
TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.profiler.SymfonyWebProfilerPane

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.