public static DependencyLoop[] findLoops(IPlugin root) { return findLoops(root, null); }
public static DependencyLoop [] findLoops(IPlugin root) { return findLoops(root, null); }
public static DependencyLoop [] findLoops(IPlugin root, IPlugin [] candidates) { return findLoops(root, candidates, false); }
public static DependencyLoop[] findLoops(IPlugin root, IPlugin[] candidates) { return findLoops(root, candidates, false); }
public static DependencyLoop [] findLoops(IPlugin root, IPlugin [] candidates, boolean onlyCandidates) { Vector loops = new Vector(); Vector path = new Vector(); findLoops(loops, path, root, candidates, onlyCandidates, new Vector()); return (DependencyLoop[])loops.toArray(new DependencyLoop[loops.size()]); }
public static DependencyLoop[] findLoops(IPlugin root, IPlugin[] candidates, boolean onlyCandidates) { Vector<DependencyLoop> loops = new Vector<>(); Vector<IPlugin> path = new Vector<>(); findLoops(loops, path, root, candidates, onlyCandidates, new Vector<String>()); return loops.toArray(new DependencyLoop[loops.size()]); }
/** * */ private void findLoops() { fLoops = NO_LOOPS; if (fInput != null && fInput instanceof IPluginModel) { BusyIndicator.showWhile(PDEPlugin.getActiveWorkbenchShell().getDisplay(), () -> { IPlugin plugin = ((IPluginModel) fInput).getPlugin(); DependencyLoop[] loops = DependencyLoopFinder.findLoops(plugin); if (loops.length > 0) { fLoops = loops; } }); } if (fShowLoops != null) fShowLoops.setEnabled(fLoops != NO_LOOPS); }
protected void doFindLoops() { IBaseModel model = getPage().getModel(); if (model instanceof IPluginModel) { IPlugin plugin = ((IPluginModel) model).getPlugin(); DependencyLoop[] loops = DependencyLoopFinder.findLoops(plugin); if (loops.length == 0) MessageDialog.openInformation(PDEPlugin.getActiveWorkbenchShell(), PDEUIMessages.DependencyAnalysisSection_loops, PDEUIMessages.DependencyAnalysisSection_noCycles); // else { LoopDialog dialog = new LoopDialog(PDEPlugin.getActiveWorkbenchShell(), loops); dialog.open(); } } }