cz.cuni.pogamut.posh.explorer
Class ExplorerFactory

Package class diagram package ExplorerFactory
java.lang.Object
  extended by cz.cuni.pogamut.posh.explorer.ExplorerFactory

public final class ExplorerFactory
extends Object

Factory for creating the crawler explorers. Explorers are GUI elements that display crawled items.

Author:
Honza

Constructor Summary
ExplorerFactory()
           
 
Method Summary
static JComponent createActionsExplorer(org.netbeans.api.project.Project project, CrawlerListener<PrimitiveData>... listeners)
          Create explorer for actions (classes implementing IAction) on classpath of the project.
static Explorer<ActionPattern> createAPExplorer(PoshPlan lapTree)
          Create explorer for action patterns in the @plan.
static Explorer<Competence> createCompetenceExplorer(PoshPlan plan)
          Create explorer for competences in the @plan.
static JComponent createSensesExplorer(org.netbeans.api.project.Project project, CrawlerListener<PrimitiveData>... listeners)
          Create explorer for sense (classes implementing ISense) on classpath of the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerFactory

public ExplorerFactory()
Method Detail

createActionsExplorer

public static JComponent createActionsExplorer(org.netbeans.api.project.Project project,
                                               CrawlerListener<PrimitiveData>... listeners)
Create explorer for actions (classes implementing IAction) on classpath of the project. The crawler for actions is automatically started, no need to start it.

Parameters:
project - Project whose classpath is searched for actions.
listeners - Listeners to be registered with crawler, they are automatically removed, once crawling is finished.
Returns:
Created explorer.

createSensesExplorer

public static JComponent createSensesExplorer(org.netbeans.api.project.Project project,
                                              CrawlerListener<PrimitiveData>... listeners)
Create explorer for sense (classes implementing ISense) on classpath of the project. The crawler for sense is automatically started, no need to start it.

Parameters:
project - Project whose classpath is searched for sense.
listeners - Listeners to be registered with crawler, they are automatically removed, once crawling is finished.
Returns:
Created explorer.

createCompetenceExplorer

public static Explorer<Competence> createCompetenceExplorer(PoshPlan plan)
Create explorer for competences in the @plan.

Parameters:
plan - Plan in which explorer looks for competences.
Returns:
Created explorer

createAPExplorer

public static Explorer<ActionPattern> createAPExplorer(PoshPlan lapTree)
Create explorer for action patterns in the @plan.

Parameters:
plan - Plan in which explorer looks for action patterns.
Returns:
Created explorer


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.