public class STWindow extends XJWindow implements AutoCompletionMenuDelegate, XJUndoDelegate, GoToRuleDelegate, FindAndReplaceDelegate, FindMenuDelegate, GoToMenuDelegate
| Modifier and Type | Field and Description |
|---|---|
AutoCompletionMenu |
autoCompletionMenu |
FindAndReplace |
findAndReplace |
GoToHistory |
goToHistory |
GoToRule |
goToRule |
STRulePanel |
stRulesPanel |
ATEPanel |
textEditor |
alreadyBecomeVisible, delegate, desktopDefaultMenuBar, desktopFrame, dirty, mainMenuBar, undoEngine| Constructor and Description |
|---|
STWindow() |
addDocument, clearDocuments, closeDocuments, getDocument, getDocumentForPath, getDocuments, handleMenuEvent, hasDirtyDocument, hasDocuments, hasDocumentsWithFileAssociated, isAuxiliaryWindow, reloadDocuments, saveAll, selectDocument, setDocument, shouldAppearsInWindowMenu, windowDocumentPathDidChangeautosaveName, becomingVisibleForTheFirstTime, bringToFront, center, closeDesktop, customizeEditMenu, customizeHelpMenu, customizeWindowMenu, dirty, dirtyChanged, ensureVisibility, getContentPane, getCurrentUndo, getDelegate, getFocusedJComponent, getGlassPane, getJavaContainer, getLayeredPane, getLocation, getMainMenuBar, getPreferredSize, getRootPane, getSize, getTitle, getUndo, hide, isActive, isCompletelyOnScreen, isMaximized, isVisible, isVisibleOnScreen, menuItemStatusChanged, offsetPosition, pack, performActionOnFocusedJComponent, performClose, performRedo, performUndo, registerUndo, resetDirty, setDefaultCloseOperation, setDefaultSize, setDelegate, setDirty, setLocation, setMainMenuBar, setMaximizable, setPosition, setPreferredSize, setPreferredSize, setResizable, setSize, setSize, setTitle, setVisible, shouldDisplayMainMenuBar, show, showModal, unregisterUndo, updateTitle, windowDeactivatedkeyValueChanged, setEnableKeyValueNotificationaddObserver, addObserverForKey, bindObserverForKey, keyValueChanged, observeValueForKey, removeObserver, removeObserverForKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJavaContainerpublic AutoCompletionMenu autoCompletionMenu
public ATEPanel textEditor
public STRulePanel stRulesPanel
public FindAndReplace findAndReplace
public GoToHistory goToHistory
public GoToRule goToRule
public void setContentPanel(JPanel panel)
public void assemble()
public void refreshMainMenuBar()
public boolean loadStringTemplate(String name)
public STWindowToolbar getToolbar()
public ActionRefactor getActionRefactor()
public GoToMenu getActionGoTo()
public ContextualStringTemplateMenuFactory createContextualStringTemplateMenuFactory()
public JPopupMenu getContextualMenu(int textIndex)
public STWindowMenu getComponentContainerStringTemplateMenu()
public boolean componentDocumentWillSave()
public void customizeFileMenu(XJMenu menu)
customizeFileMenu in interface XJMenuBarCustomizercustomizeFileMenu in class XJFramepublic void customizeMenuBar(XJMainMenuBar menubar)
customizeMenuBar in interface XJMenuBarCustomizercustomizeMenuBar in class XJFramepublic void menuItemState(XJMenuItem item)
menuItemState in interface XJMenuBarDelegatemenuItemState in class XJWindowpublic void handleMenuSelected(XJMenu menu)
handleMenuSelected in interface XJMenuBarDelegatehandleMenuSelected in class XJFramepublic void windowActivated()
windowActivated in class XJWindowpublic int getSimilarTab(GrammarWindowTab tab)
public void setComponent(JPanel panel, GrammarWindowTab tab)
public void create()
protected void createTextEditor()
protected void initAutoCompletion()
protected void initTools()
protected void register()
public void applyPrefs()
public void applyFont()
public String getText()
getText in interface FindAndReplaceDelegatepublic void setText(String text)
setText in interface FindAndReplaceDelegatepublic ATEPanel getTextEditor()
getTextEditor in interface FindAndReplaceDelegategetTextEditor in interface FindMenuDelegategetTextEditor in interface GoToMenuDelegatepublic ATETextPane getTextPane()
getTextPane in interface FindAndReplaceDelegategetTextPane in interface GoToMenuDelegatepublic void setCaretPosition(int pos)
setCaretPosition in interface GoToMenuDelegatepublic int getCaretPosition()
getCaretPosition in interface GoToMenuDelegatepublic GrammarEngine getGrammarEngine()
getGrammarEngine in interface GoToMenuDelegatepublic void goToHistoryRememberCurrentPosition()
goToHistoryRememberCurrentPosition in interface GoToMenuDelegatepublic ElementTemplateReference getCurrentReference()
public ElementTemplateReference getReferenceAtPosition(int pos)
public List<ElementTemplateReference> getReferences()
public void goToBackward()
goToBackward in interface GoToMenuDelegatepublic void goToForward()
goToForward in interface GoToMenuDelegatepublic List<ATELine> getLines()
getLines in interface GoToMenuDelegatepublic void find()
find in interface FindMenuDelegatepublic FindAndReplace getFindAndReplace()
getFindAndReplace in interface FindMenuDelegatepublic GoToRule getGoToRule()
getGoToRule in interface GoToMenuDelegatepublic boolean goToRule(String ruleName)
goToRule in interface GoToRuleDelegatepublic List<String> getRulesStartingWith(String match)
getRulesStartingWith in interface GoToRuleDelegatepublic void goToDeclaration()
goToDeclaration in interface GoToMenuDelegatepublic void goToDeclaration(Jumpable ref)
goToDeclaration in interface GoToMenuDelegatepublic Set<Integer> getBreakpoints()
getBreakpoints in interface GoToMenuDelegatepublic int getFirstDeclarationPosition(String name)
public ATEToken getCurrentToken()
getCurrentToken in interface FindMenuDelegatepublic EditorRules getEditorRules()
getEditorRules in interface FindMenuDelegatepublic List<ElementTemplateRule> getRules()
public void addUsagesTab(Usages usage)
addUsagesTab in interface FindMenuDelegatepublic void selectTextRange(int startIndex,
int endIndex)
selectTextRange in interface FindMenuDelegatepublic List<ATEToken> getTokens()
getTokens in interface FindMenuDelegatepublic ATEToken getTokenAtPosition(int pos, boolean fromRight)
public boolean isRulesSorted()
public void toggleRulesSorting()
public JPopupMenu rulesGetContextualMenu()
public void componentDocumentContentChanged()
public void loadText(String text)
public void beginGroupChange(String name)
public void endGroupChange()
public void enableTextPane(boolean undo)
public void disableTextPane(boolean undo)
public void beginTextPaneUndoGroup(String name)
public void endTextPaneUndoGroup()
public void disableTextPaneUndo()
public void enableTextPaneUndo()
public void undoManagerWillUndo(boolean redo)
undoManagerWillUndo in interface XJUndoDelegatepublic void changeDone()
public void undoManagerDidUndo(boolean redo)
undoManagerDidUndo in interface XJUndoDelegatepublic void notificationPrefsChanged()
public List<String> autoCompletionMenuGetMatchingWordsForPartialWord(String partialWord)
autoCompletionMenuGetMatchingWordsForPartialWord in interface AutoCompletionMenuDelegatepublic void autoCompletionMenuWillDisplay()
autoCompletionMenuWillDisplay in interface AutoCompletionMenuDelegatepublic boolean isFileExists()
public boolean isFileWritable()
public String getFilePath()
public String getFileName()
public void print()
Copyright © 2013. All rights reserved.