@@ -0,0 +1,1339 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage com.eas.designer.application.query.completion;%0A%0Aimport com.bearsoft.rowset.metadata.Fields;%0Aimport com.eas.client.model.gui.IconCache;%0Aimport java.util.Map.Entry;%0Aimport org.openide.util.NbBundle;%0A%0A/**%0A *%0A * @author mg%0A */%0Apublic class TableSqlCompletionItem extends SqlCompletionItem %7B%0A%0A    protected Fields table;%0A%0A    public TableSqlCompletionItem(Entry%3CString, Fields%3E aTableEntry, int aStartOffset, int aEndOffset) %7B%0A        super(aTableEntry.getKey(), aTableEntry.getValue().getTableDescription(), aStartOffset, aEndOffset);%0A        icon = IconCache.getIcon(%22table.png%22);%0A        rightText = NbBundle.getMessage(TableSqlCompletionItem.class, %22table%22);%0A    %7D%0A%0A    public TableSqlCompletionItem(String aAlias, Fields aTable, int aStartOffset, int aEndOffset) %7B%0A        super(aAlias, aTable != null ? aTable.getTableDescription() : null, aStartOffset, aEndOffset);%0A        icon = IconCache.getIcon(%22table.png%22);%0A        if (aAlias.equalsIgnoreCase(aTable.get(1).getTableName())) %7B%0A            rightText = NbBundle.getMessage(TableSqlCompletionItem.class, %22table%22);%0A        %7D else %7B%0A            rightText = NbBundle.getMessage(TableSqlCompletionItem.class, %22aliasToTable%22) + %22 %22 + aTable.get(1).getTableName();%0A        %7D%0A    %7D%0A%7D%0A

Prepare to strong referencing of stored subqueries