コード例 #1
0
  private void findMatches(IPluginExtensionPoint point) {
    String fullID = point.getFullId();
    if (fullID == null) return;

    IPluginExtension[] extensions = fModel.getPluginBase().getExtensions();
    for (int i = 0; i < extensions.length; i++) {
      if (fullID.equals(extensions[i].getPoint())) {
        int line = ((ISourceObject) extensions[i]).getStartLine() - 1;
        if (line >= 0) {
          fSearchResult.addMatch(new Match(point, Match.UNIT_LINE, line, 1));
          break;
        }
      }
    }
  }
コード例 #2
0
 private void checkForExtensionPointsUsed(IPluginModelBase model) {
   IPluginExtensionPoint[] extPoints = model.getPluginBase().getExtensionPoints();
   for (int i = 0; i < extPoints.length; i++) {
     findMatches(extPoints[i]);
   }
 }