public class EditorSettings extends java.lang.Object implements IEditorSettings
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY_MODIFICATION_INFO_ALL |
static java.lang.String |
DISPLAY_MODIFICATION_INFO_NONE |
static java.lang.String |
DISPLAY_MODIFICATION_INFO_SELECTED |
Modifier | Constructor and Description |
---|---|
protected |
EditorSettings(EditorController parent) |
Modifier and Type | Method and Description |
---|---|
char |
getAdvancerChar() |
javax.swing.text.AttributeSet |
getAttributeSet(boolean isSource,
boolean isPlaceholder,
boolean isRemoveText,
SourceTextEntry.DUPLICATE duplicate,
boolean active,
boolean translationExists,
boolean hasNote,
boolean isNBSP)
Choose segment's attributes based on rules.
|
java.lang.String |
getDisplayModificationInfo()
returns the setting for display the modification information or not
Either DISPLAY_MODIFICATION_INFO_NONE,
DISPLAY_MODIFICATION_INFO_SELECTED, DISPLAY_MODIFICATION_INFO_ALL
|
javax.swing.text.AttributeSet |
getModificationInfoAttributeSet()
Returns font attributes for the modification info line.
|
javax.swing.text.AttributeSet |
getOtherLanguageTranslationAttributeSet()
Returns font attributes for other languages translation.
|
javax.swing.text.AttributeSet |
getParagraphStartAttributeSet()
Returns font attributes for paragraph start
|
javax.swing.text.AttributeSet |
getSegmentMarkerAttributeSet()
Returns font attributes for the segment marker.
|
boolean |
isAutoSpellChecking()
need to check spell or not
|
boolean |
isDisplaySegmentSources()
display the segment sources or not
|
boolean |
isDoFontFallback() |
boolean |
isHideDuplicateSegments() |
boolean |
isMarkAutoPopulated() |
boolean |
isMarkBidi()
mark Bidirectional control characters
|
boolean |
isMarkGlossaryMatches() |
boolean |
isMarkLanguageChecker() |
boolean |
isMarkNBSP()
mark non-breakable spaces?
|
boolean |
isMarkNonUniqueSegments() |
boolean |
isMarkNotedSegments() |
boolean |
isMarkParagraphDelimitations() |
boolean |
isMarkTranslated() |
boolean |
isMarkUntranslated() |
boolean |
isMarkWhitespace()
mark whitespace?
|
boolean |
isUseTabForAdvance() |
void |
setAutoSpellChecking(boolean autoSpellChecking) |
void |
setDisplayModificationInfo(java.lang.String displayModificationInfo)
Sets the setting for display the modification information or not
|
void |
setDisplaySegmentSources(boolean displaySegmentSources) |
void |
setDoFontFallback(boolean doFontFalback) |
void |
setMarkAutoPopulated(boolean val) |
void |
setMarkBidi(boolean markBidi) |
void |
setMarkGlossaryMatches(boolean markGlossaryMatches) |
void |
setMarkLanguageChecker(boolean markLanguageChecker) |
void |
setMarkNBSP(boolean markNBSP) |
void |
setMarkNonUniqueSegments(boolean markNonUniqueSegments) |
void |
setMarkNotedSegments(boolean markNotedSegments) |
void |
setMarkParagraphDelimitations(boolean delimitations) |
void |
setMarkTranslated(boolean markTranslated) |
void |
setMarkUntranslated(boolean markUntranslated) |
void |
setMarkWhitespace(boolean markWhitespace) |
void |
setUseTabForAdvance(boolean useTabForAdvance) |
void |
updateTagValidationPreferences()
repaint segments in editor according to new view tag validation options.
|
void |
updateViewPreferences()
repaint segments in editor according to new view options.
|
public static final java.lang.String DISPLAY_MODIFICATION_INFO_NONE
public static final java.lang.String DISPLAY_MODIFICATION_INFO_SELECTED
public static final java.lang.String DISPLAY_MODIFICATION_INFO_ALL
protected EditorSettings(EditorController parent)
public char getAdvancerChar()
public boolean isUseTabForAdvance()
isUseTabForAdvance
in interface IEditorSettings
public void setUseTabForAdvance(boolean useTabForAdvance)
setUseTabForAdvance
in interface IEditorSettings
public boolean isMarkTranslated()
isMarkTranslated
in interface IEditorSettings
public void setMarkTranslated(boolean markTranslated)
setMarkTranslated
in interface IEditorSettings
public boolean isMarkUntranslated()
isMarkUntranslated
in interface IEditorSettings
public boolean isMarkAutoPopulated()
isMarkAutoPopulated
in interface IEditorSettings
public void setMarkAutoPopulated(boolean val)
setMarkAutoPopulated
in interface IEditorSettings
public void setMarkUntranslated(boolean markUntranslated)
setMarkUntranslated
in interface IEditorSettings
public boolean isDisplaySegmentSources()
isDisplaySegmentSources
in interface IEditorSettings
public boolean isMarkNonUniqueSegments()
isMarkNonUniqueSegments
in interface IEditorSettings
public boolean isHideDuplicateSegments()
public boolean isMarkNotedSegments()
isMarkNotedSegments
in interface IEditorSettings
public boolean isMarkNBSP()
isMarkNBSP
in interface IEditorSettings
public boolean isMarkWhitespace()
isMarkWhitespace
in interface IEditorSettings
public boolean isMarkBidi()
isMarkBidi
in interface IEditorSettings
public boolean isDoFontFallback()
isDoFontFallback
in interface IEditorSettings
public void setDisplaySegmentSources(boolean displaySegmentSources)
setDisplaySegmentSources
in interface IEditorSettings
public void setMarkNonUniqueSegments(boolean markNonUniqueSegments)
setMarkNonUniqueSegments
in interface IEditorSettings
public void setMarkNotedSegments(boolean markNotedSegments)
setMarkNotedSegments
in interface IEditorSettings
public void setMarkNBSP(boolean markNBSP)
setMarkNBSP
in interface IEditorSettings
public void setMarkWhitespace(boolean markWhitespace)
setMarkWhitespace
in interface IEditorSettings
public void setMarkParagraphDelimitations(boolean delimitations)
setMarkParagraphDelimitations
in interface IEditorSettings
public boolean isMarkParagraphDelimitations()
isMarkParagraphDelimitations
in interface IEditorSettings
public void setMarkBidi(boolean markBidi)
setMarkBidi
in interface IEditorSettings
public void setDoFontFallback(boolean doFontFalback)
setDoFontFallback
in interface IEditorSettings
public boolean isMarkGlossaryMatches()
isMarkGlossaryMatches
in interface IEditorSettings
public void setMarkGlossaryMatches(boolean markGlossaryMatches)
setMarkGlossaryMatches
in interface IEditorSettings
public boolean isMarkLanguageChecker()
isMarkLanguageChecker
in interface IEditorSettings
public void setMarkLanguageChecker(boolean markLanguageChecker)
setMarkLanguageChecker
in interface IEditorSettings
public java.lang.String getDisplayModificationInfo()
getDisplayModificationInfo
in interface IEditorSettings
public void setDisplayModificationInfo(java.lang.String displayModificationInfo)
setDisplayModificationInfo
in interface IEditorSettings
displayModificationInfo
- Either DISPLAY_MODIFICATION_INFO_NONE ,
DISPLAY_MODIFICATION_INFO_SELECTED ,
DISPLAY_MODIFICATION_INFO_ALLpublic boolean isAutoSpellChecking()
isAutoSpellChecking
in interface IEditorSettings
public void setAutoSpellChecking(boolean autoSpellChecking)
setAutoSpellChecking
in interface IEditorSettings
public void updateViewPreferences()
updateViewPreferences
in interface IEditorSettings
public void updateTagValidationPreferences()
updateTagValidationPreferences
in interface IEditorSettings
public javax.swing.text.AttributeSet getAttributeSet(boolean isSource, boolean isPlaceholder, boolean isRemoveText, SourceTextEntry.DUPLICATE duplicate, boolean active, boolean translationExists, boolean hasNote, boolean isNBSP)
isSource
- is it a source segment or a target segmentisPlaceholder
- is it for a placeholder (OmegaT tag or sprintf-variable etc.) or regular text inside the segment?isremovetext
- is it text that should be removed from translation?duplicate
- is the sourceTextEntry a duplicate or not? values: DUPLICATE.NONE, DUPLICATE.FIRST or DUPLICATE.NEXT.
See sourceTextEntryste.getDuplicate()active
- is it an active segment?translationExists
- does a translation already existisNBSP
- is the text a non-breakable spacepublic javax.swing.text.AttributeSet getParagraphStartAttributeSet()
public javax.swing.text.AttributeSet getModificationInfoAttributeSet()
public javax.swing.text.AttributeSet getSegmentMarkerAttributeSet()
public javax.swing.text.AttributeSet getOtherLanguageTranslationAttributeSet()