public class TextService extends BaseService implements DocumentEventSender
| Modifier and Type | Class and Description |
|---|---|
static class |
TextService.Open |
static class |
TextService.OpenGeneric<T extends TextService.OpenGeneric> |
static class |
TextService.OpenSyntaxStyle<T extends TextService.OpenGeneric> |
static class |
TextService.RecentTextFilesList
Список недавних файлов
|
static class |
TextService.TextDocumentSwitcher
Переключение между документами
|
BaseService.OnStart, BaseService.OnStop, BaseService.UiAction, BaseService.UiActionBase, BaseService.UiActionField, BaseService.UiActionMethod, BaseService.UiMenuactionFieldSet, actionMethodSet, initUiActionsSuccess, MENU_FIELD_NAME, runningstartCallLevel, startStopSync, stopCallLevelserviceEventQueue| Constructor and Description |
|---|
TextService() |
buttonGroup, getActionFieldSet, getActionMethodSet, getActionsService, getButtonGroup, getMenuService, getStartableMethodsList, getStartableMethodsMap, getStoppableMethodsList, getStoppableMethodsMap, initUiActionError, initUiActions, isRunning, onStart, onStopfireStarted, fireStarting, fireStopped, fireStopping, getServiceByStopper, getServiceDependencies, isDetectCycleStart, isDetectCycleStop, onResolvedDependencies, start, stop, stopByDependencyaddServiceEvent, addServiceListener, addServiceListener, findFirstService, findServices, findServices, findServices, fireServiceEvent, fireServiceEvents, getConsole, getFieldDependencies, getInitDependenciesCallCount, getServiceListeners, getUnresolvedDependencies, hasServiceListener, init, initDependencies, instances, isResolvedDependencies, listeners, onInitServicesEnd, removeServiceListener, resolveDependecyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitaddServiceEvent, addServiceListener, addServiceListener, fireServiceEvents, getServiceListeners, hasServiceListener, removeServiceListenerprotected Action togglePaintTabLinesAction
protected Action toggleAntiAliasingEnabledAction
protected Action toggleCloseCurlyBracesAction
protected Action toggleCloseMarkupTagsAction
protected Action toggleEOLMarkersVisibleAction
protected Action toggleFractionalFontMetricsEnabledAction
protected Action toggleHyperlinksEnabledAction
protected Action toggleAutoIndentEnabledAction
protected Action toggleWhitespaceVisibleAction
protected Action toggleBracketMatchingEnabledAction
protected Action toggleClearWhitespaceLinesEnabledAction
protected Action toggleCodeFoldingEnabledAction
protected Action toggleAnimateBracketMatchingAction
protected Action toggleLineWrapAction
protected Action toggleMarkAllOnOccurrenceSearchesAction
protected Action toggleMarkOccurrencesAction
protected Action toggleTabsEmulatedsAction
protected Action toggleHighlightCurrentLineAction
protected Action toggleRenameTitleOnFileChangedAction
protected Action eolAsIsAction
protected Action eolDefaultAction
protected Action eolLinuxAction
protected Action eolWindowsAction
protected Action eolMacAction
protected Action eolOtherAction
protected Action tabSize1Action
protected Action tabSize2Action
protected Action tabSize3Action
protected Action tabSize4Action
protected Action tabSize5Action
protected Action tabSize6Action
protected Action tabSize7Action
protected Action tabSize8Action
protected volatile Map<String,Pair<String,Action>> registeredSetSyntaxActions
protected Action incBaseFontAction
protected Action decBaseFontAction
protected Action selectBaseFontAction
protected Action saveFileAction
protected volatile WeakHashMap<File,Date> fileBGChangedNotifySended
public DockingService getDockingService()
public DocumentService getDocumentService()
public TimerService getTimerService()
public Notify getNotify()
public MapDB2Service getMapDB2Service()
public PropertiesService getPropertiesService()
public FileDialogService getFileDialogService()
public TextServiceConf getTextServiceConf()
protected void reinitConfWithMapDB(MapDB2Service mdb)
public boolean hasDocumentListener(DocumentListener listener)
DocumentEventSenderhasDocumentListener in interface DocumentEventSenderlistener - подписчикpublic Set<DocumentListener> getDocumentListeners()
DocumentEventSendergetDocumentListeners in interface DocumentEventSenderpublic Closeable addDocumentListener(DocumentListener listener)
DocumentEventSenderaddDocumentListener in interface DocumentEventSenderlistener - подписичкpublic Closeable addDocumentListener(DocumentListener listener, boolean weakLink)
DocumentEventSenderaddDocumentListener in interface DocumentEventSenderlistener - подписичкweakLink - true - добавляет подписчика как weak ссылку / false- как hard ссылкуpublic void removeDocumentListener(DocumentListener listener)
DocumentEventSenderremoveDocumentListener in interface DocumentEventSenderlistener - подписичикpublic void fireDocumentEvent(DocumentEvent event)
DocumentEventSenderfireDocumentEvent in interface DocumentEventSenderevent - событиеpublic void removeAllDocumentListeners()
DocumentEventSenderremoveAllDocumentListeners in interface DocumentEventSenderpublic void addDocumentEvent(DocumentEvent ev)
DocumentEventSenderaddDocumentEvent in interface DocumentEventSenderev - событиеpublic void fireDocumentEvents()
DocumentEventSenderfireDocumentEvents in interface DocumentEventSenderpublic Long nextDocumentId()
public TextDocumentFactory getTextFactory()
public bibliothek.gui.dock.common.SingleCDockableFactory getSearchFactory()
public SearchAndReplaceDock getSearchAndReplaceDock()
public void registryDocFactory(DockingService docks)
public TextDocument getActiveTextDocument()
public DockingService.DockableList<TextDocument> getTextDocumentHistory()
public DockingService.DockableList<TextDocument> getTextDocuments()
public void togglePaintTabLines()
public void toggleAntiAliasingEnabled()
public void toggleCloseCurlyBraces()
public void toggleCloseMarkupTags()
public void toggleEOLMarkersVisible()
public void toggleFractionalFontMetricsEnabled()
public void toggleHyperlinksEnabled()
public void toggleAutoIndentEnabled()
public void toggleWhitespaceVisible()
public void toggleBracketMatchingEnabled()
public void toggleClearWhitespaceLinesEnabled()
public void toggleCodeFoldingEnabled()
public void toggleAnimateBracketMatching()
public void toggleLineWrap()
public void toggleMarkAllOnOccurrenceSearches()
public void toggleMarkOccurrences()
public void toggleTabsEmulated()
public void toggleHighlightCurrentLine()
public void toggleRenameTitleOnFileChanged()
public void eolAsIs()
public void eolDefault()
public void eolLinux()
public void eolWindows()
public void eolMac()
public void eolOther()
public void tabSize1()
public void tabSize2()
public void tabSize3()
public void tabSize4()
public void tabSize5()
public void tabSize6()
public void tabSize7()
public void tabSize8()
protected BasicAction createActionSetTextStyntax(String syntaxName)
protected Pair<String,Action> registerActionSetTextStyntax(String syntaxName)
protected void registerSetSyntaxActions()
public void incBaseFont()
public void decBaseFont()
public void selectBaseFont()
public void openFile()
public TextDocument openFile(File file, Charset cs, EndLine endLine)
file - Текстовый файлcs - Кодировка файла (возможно null - тогда Default)endLine - Символы перевода строк (возможно null)public void saveFile()
public void saveAsFile()
public void showDirectoryOfFile()
public void onTextDocumentFocusGained(TextDocument tdoc)
tdoc - текстовый документpublic void onTextDocumentFocusLost(TextDocument tdoc)
public void onTextDocumentCreated(TextDocument tdoc)
tdoc - документpublic void onTextDocumentClosed(TextDocument tdoc)
tdoc - документpublic void onTextDocumentSaved(TextDocument doc, File file, Charset cs)
doc - документfile - файлcs - кодировкаpublic void onTextDocumentOpened(TextDocument doc, File file, Charset cs)
doc - документfile - файлcs - кодировкаpublic void onTextDocumentChanged(TextDocument doc)
protected void addRecentTextFile(TextDocument doc, File file, Charset cs)
doc - документfile - файлcs - кодировкаpublic void removeRecentTextFile(File file)
file - файлpublic void removeRecentTextFile(RecentTextFile rtf)
rtf - файлpublic TextService.RecentTextFilesList getRecentTextFiles()
public MenuContainer getRecentFilesMenu()
protected void onRecentFilesMenuSelected()
public void initRecentFilesMenu()
protected void startCheckFileBGChanges(TimerService ts)
protected void checkFileBGChanges()
public void cloneActiveTextDocument()
public void switchPrevTextDocument()
public void switchTextDocument()
public String[] getThemeNames()
public void setDefaultTheme()
public void setDarkTheme()
public void setEclipseTheme()
public void setIdeaTheme()
public void setMonokaiTheme()
public void setVsTheme()
public void configure()
public void renameTitle()
public void showSearchAndReplace()
public static Icon getCodeDocumentIcon()
public TextService.Open open()
Copyright © 2018. All rights reserved.