git-svn-id: https://svn.coded.pt/svn/SIPRP@1194 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Tiago Simão 16 years ago
parent f6fdccf00d
commit 0d427363ac

@ -42,7 +42,5 @@
<classpathentry kind="lib" path="SIPRPSoft/lib/fop.jar"/>
<classpathentry kind="lib" path="common/lib/ashwood-2.0.jar"/>
<classpathentry kind="lib" path="common/lib/cayenne-server-3.0M6.jar"/>
<classpathentry kind="lib" path="SIPRPSoft/lib/evospellchecker.jar"/>
<classpathentry kind="lib" path="SIPRPSoft/lib/jazzy-core.jar"/>
<classpathentry kind="output" path="SIPRPSoft/build/classes"/>
</classpath>

@ -257,7 +257,7 @@ public class GerirNormalizacaoPanel extends JPanel implements LeafUIConstants, C
} );
textCodigo.addCaretListener( this );
textAreaDescricao.addCaretListener( this );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( textAreaDescricao );
SpellChecker.getInstance().attachSpellCheckToComponent( textAreaDescricao );
buttonPortuguesaCriar.addActionListener( new ActionListener()
{
@Override

@ -68,10 +68,10 @@ public class GerirMedidaPanel extends JPanel
{
fieldTextMedida.setWrapStyleWord( true );
fieldTextMedida.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextMedida );
SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextMedida );
fieldTextRequisitosLegais.setWrapStyleWord( true );
fieldTextRequisitosLegais.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextRequisitosLegais );
SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextRequisitosLegais );
scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );

@ -80,8 +80,8 @@ public class GerirMedidaRelatorioPanel extends JPanel
fieldTextMedida.setLineWrap( true );
fieldTextRequisitosLegais.setWrapStyleWord( true );
fieldTextRequisitosLegais.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextRequisitosLegais );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextMedida );
SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextRequisitosLegais );
SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextMedida );
scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );

@ -82,7 +82,7 @@ public class LeafTextAreaEditor extends JPanel
scroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
buttonSave.setMargin( new Insets(0,0,0,0) );
buttonRevert.setMargin( new Insets(0,0,0,0) );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldText );
SpellChecker.getInstance().attachSpellCheckToComponent( fieldText );
}
private void startupLayout( boolean textField )

@ -1,7 +1,7 @@
package siprp;
import com.evolute.modules.spellchecker.EvoSpellChecker;
import com.evolute.modules.spellchecker.EvoSpellChecker.Dictionary;
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
public class SpellChecker
@ -9,11 +9,11 @@ public class SpellChecker
private static SpellChecker instance = null;
private final EvoSpellChecker spellChecker;
// private final EvoSpellChecker spellChecker;
private SpellChecker()
{
this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
// this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
}
public static SpellChecker getInstance()
@ -24,10 +24,11 @@ public class SpellChecker
}
return instance;
}
public EvoSpellChecker getSpellChecker()
public void attachSpellCheckToComponent( JTextComponent fieldTextMedida )
{
return spellChecker;
// TODO Auto-generated method stub
// spellChecker.attachSpellCheckToComponent( fieldTextMedida )
}
}

Loading…
Cancel
Save