Update of /cvsroot/squirrel-sql/sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3839/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion
Modified Files:
CodeCompletionInfoCollection.java
Added Files:
I18NStrings.properties
Log Message:
i18n
Index: CodeCompletionInfoCollection.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CodeCompletionInfoCollection.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CodeCompletionInfoCollection.java 19 Jun 2005 19:36:09 -0000 1.11
--- CodeCompletionInfoCollection.java 19 Oct 2005 19:30:13 -0000 1.12
***************
*** 22,25 ****
--- 22,27 ----
import net.sourceforge.squirrel_sql.client.session.parser.kernel.TableAliasInfo;
import net.sourceforge.squirrel_sql.fw.sql.IProcedureInfo;
+ import net.sourceforge.squirrel_sql.fw.util.StringManager;
+ import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
import javax.swing.*;
***************
*** 28,32 ****
public class CodeCompletionInfoCollection
{
! private Hashtable _completionInfosByCataLogAndSchema = new Hashtable();
private Vector _aliasCompletionInfos = new Vector();
--- 30,38 ----
public class CodeCompletionInfoCollection
{
! private static final StringManager s_stringMgr =
! StringManagerFactory.getStringManager(CodeCompletionInfoCollection.class);
!
!
! private Hashtable _completionInfosByCataLogAndSchema = new Hashtable();
private Vector _aliasCompletionInfos = new Vector();
***************
*** 36,40 ****
private ISession _session;
private static final int MAX_COMPLETION_INFOS = 300;
! private static final String TOO_MANY_COMPLETION_INFOS = "Completion list truncated. Narrow by typing to get missing entries.";
public CodeCompletionInfoCollection(ISession session)
--- 42,48 ----
private ISession _session;
private static final int MAX_COMPLETION_INFOS = 300;
!
! // i18n[codecompletion.listTruncated=Completion list truncated. Narrow by typing to get missing entries.]
! private static final String TOO_MANY_COMPLETION_INFOS = s_stringMgr.getString("codecompletion.listTruncated");
public CodeCompletionInfoCollection(ISession session)
***************
*** 51,55 ****
if(!_session.getSchemaInfo().isLoaded())
{
! String msg = "Code competion infomation is still being loaded.\nTry again later.";
JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);
return;
--- 59,64 ----
if(!_session.getSchemaInfo().isLoaded())
{
! // i18n[codecompletion.beingLoaded=Code competion infomation is still being loaded.\nTry again later.]
! String msg = s_stringMgr.getString("codecompletion.beingLoaded");
JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);
return;
***************
*** 143,147 ****
if(null == autoCorrectProvider)
{
! _session.getMessageHandler().showMessage("Code completion will work better if you use the Syntax plugin. Get it from squirrelsql.org, it's free!");
}
else
--- 152,157 ----
if(null == autoCorrectProvider)
{
! // i18n[codecompletion.useSyntaxPlugin=Code completion will work better if you use the Syntax plugin. Get it from squirrelsql.org, it's free!]
! _session.getMessageHandler().showMessage(s_stringMgr.getString("codecompletion.useSyntaxPlugin"));
}
else
--- NEW FILE: I18NStrings.properties ---
#
#Missing/changed properties generated by I18n Plugin on Wed Oct 19 21:27:34 CEST 2005
#
codecompletion.listTruncated=Completion list truncated. Narrow by typing to get missing entries.
codecompletion.beingLoaded=Code competion infomation is still being loaded.\nTry again later.
codecompletion.useSyntaxPlugin=Code completion will work better if you use the Syntax plugin. Get it from squirrelsql.org, it's free!
|