001    package nl.cwi.sen1.tide.tool.ruleinspector;
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 RuleInspectorFactory
011      implements ProcessToolFactory
012    {
013      public static String NAME = "RuleInspector";
014      private ToolManager manager;
015    
016      //{{{ public RuleInspectorFactory(ToolManager manager)
017    
018      public RuleInspectorFactory(ToolManager manager)
019      {
020        this.manager = manager;
021      }
022    
023      //}}}
024      //{{{ public ProcessTool createTool(DebugProcess process)
025    
026      public ProcessTool createTool(DebugProcess process)
027      {
028        ProcessTool tool = new RuleInspector(manager, process);
029        return tool;
030      }
031    
032      //}}}
033      //{{{ public String getName()
034    
035      public String getName()
036      {
037        return "RuleInspector";
038      }
039    
040      //}}}
041      //{{{ public Icon getIcon()
042    
043      public Icon getIcon()
044      {
045        return null;
046      }
047    
048      //}}}
049    }