001    package nl.cwi.sen1.tide.tool.stackviewer;
002    
003    import javax.swing.Icon;
004    
005    import nl.cwi.sen1.tide.tool.ProcessTool;
006    import nl.cwi.sen1.tide.tool.ProcessToolFactory;
007    import nl.cwi.sen1.tide.tool.ToolManager;
008    import nl.cwi.sen1.tide.tool.support.DebugProcess;
009    
010    public class StackViewerFactory
011      implements ProcessToolFactory
012    {
013      private ToolManager manager;
014    
015      //{{{ public StackViewerFactory(ToolManager manager)
016    
017      public StackViewerFactory(ToolManager manager)
018      {
019        this.manager = manager;
020      }
021    
022      //}}}
023      //{{{ public ProcessTool createTool(DebugProcess process)
024    
025      public ProcessTool createTool(DebugProcess process)
026      {
027        ProcessTool tool = new StackViewer(manager, process);
028        return tool;
029      }
030    
031      //}}}
032      //{{{ public String getName()
033    
034      public String getName()
035      {
036        return "StackViewer";
037      }
038    
039      //}}}
040      //{{{ public Icon getIcon()
041    
042      public Icon getIcon()
043      {
044        return null;
045      }
046    
047      //}}}
048    }