Пример #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;
        }
      }
    }
  }
 private void update() {
   fIdEntry.setValue(
       fInput != null && fInput.getId() != null ? fInput.getId() : "", // $NON-NLS-1$
       true);
   fNameEntry.setValue(
       fInput != null && fInput.getName() != null ? fInput.getName() : "", true); // $NON-NLS-1$
   fSchemaEntry.setValue(
       fInput != null && fInput.getSchema() != null ? fInput.getSchema() : "",
       true); //$NON-NLS-1$
   updateRichText();
 }