public class OrganizeSavedQueriesAction extends BaseFavouriteAction { private FoldersCache _cache; public OrganizeSavedQueriesAction(IApplication app, Resources rsrc, FoldersCache cache) throws IllegalArgumentException { super(app, rsrc); if (cache == null) { throw new IllegalArgumentException("Null FoldersCache passed"); } _cache = cache; } public void actionPerformed(ActionEvent evt) { OrganizeSavedQueriesCommand cmd = new OrganizeSavedQueriesCommand( getApplication(), _cache, getParentFrame(evt)); cmd.execute()
public class ViewSessionScriptsAction extends SquirrelAction { private SessionScriptPlugin _plugin; /** * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IPlugin</TT> passed. */ public ViewSessionScriptsAction(IApplication app, Resources rsrc, SessionScriptPlugin plugin) { super(app, rsrc); if (plugin == null) { throw new IllegalArgumentException("Null IPlugin passed"); } _plugin = plugin; } public void actionPerformed(ActionEvent evt) { ViewSessionScriptsCommand cmd = new ViewSessionScriptsCommand( getApplication(), getParentFrame(evt), _plugin); cmd.execute()
Clone fragments detected by clone detection tool
File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/OrganizeSavedQueriesAction.java File path: /sql12/plugins/sessionscript/src/net/sourceforge/squirrel_sql/plugins/sessionscript/ViewSessionScriptsAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OrganizeSavedQueriesAction extends BaseFavouriteAction 
1
public class ViewSessionScriptsAction extends SquirrelAction
2
{
2
{
3
	private FoldersCache _cache;
3
	private 
4
	public OrganizeSavedQueriesAction(IApplication app, Resources rsrc,
5
										FoldersCache cache)
6
			throws IllegalArgumentException 
4
SessionScriptPlugin _plugin;
5
	/**
6
	 * @throws	IllegalArgumentException
7
	 *			Thrown if a <TT>null</TT> <TT>IPlugin</TT> passed.
8
	 */
9
	public ViewSessionScriptsAction(IApplication app, Resources rsrc,
10
										SessionScriptPlugin plugin)
7
{
11
	{
8
		super(app, rsrc);
12
		super(app, rsrc);
9
		if (cache == null) {
13
		if (plugin == null) {
10
			throw new IllegalArgumentException("Null FoldersCache passed");
14
			throw new IllegalArgumentException("Null IPlugin passed");
11
		}
15
		}
12
		_cache = cache;
16
		_plugin = plugin;
13
	}
17
	}
14

15
	public void actionPerformed(ActionEvent evt) 
18
	public void actionPerformed(ActionEvent evt)
16
{
19
	{
17
		OrganizeSavedQueriesCommand cmd = new OrganizeSavedQueriesCommand(
20
		ViewSessionScriptsCommand cmd = new ViewSessionScriptsCommand(
18
							getApplication(), _cache, getParentFrame(evt));
21
							getApplication(), getParentFrame(evt), _plugin);
19
		cmd.execute()
22
		cmd.execute()
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0