public class GrammarWindow extends XJWindow implements AutoCompletionMenuDelegate, ATEPanelDelegate, XJUndoDelegate, InspectorDelegate, GrammarEngineDelegate, FindAndReplaceDelegate, GoToRuleDelegate, GoToMenuDelegate, FindMenuDelegate, XJNotificationObserver
| Modifier and Type | Class and Description |
|---|---|
protected class |
GrammarWindow.AfterParseOperations
This class is used to perform after parsing operations in another
thread than the main event thread.
|
class |
GrammarWindow.BottomTabbedPaneMouseListener |
protected class |
GrammarWindow.ConsoleStatus |
alreadyBecomeVisible, delegate, desktopDefaultMenuBar, desktopFrame, dirty, mainMenuBar, undoEngine| Constructor and Description |
|---|
GrammarWindow() |
addDocument, clearDocuments, closeDocuments, getDocument, getDocumentForPath, getDocuments, handleMenuEvent, hasDirtyDocument, hasDocuments, hasDocumentsWithFileAssociated, isAuxiliaryWindow, reloadDocuments, saveAll, selectDocument, setDocument, shouldAppearsInWindowMenubringToFront, 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, 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 final SyntaxDiagramTab syntaxDiagramTab
public final InterpreterTab interpreterTab
public final ConsoleTab consoleTab
public final EditorRules editorRules
public final DecisionDFAEngine decisionDFAEngine
public final GoToHistory goToHistory
public AutoCompletionMenu autoCompletionMenu
public final EditorIdeas editorIdeas
public final EditorTips editorTips
public final EditorInspector editorInspector
public ATEPanel textEditor
public void assemble()
public String autosaveName()
autosaveName in class XJFramepublic void setDefaultSize()
setDefaultSize in class XJFramepublic void windowActivated()
windowActivated in class XJWindowpublic void windowDocumentPathDidChange(XJDocument doc)
windowDocumentPathDidChange in class XJWindowpublic void becomingVisibleForTheFirstTime()
becomingVisibleForTheFirstTime in class XJFramepublic 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 SyntaxDiagramTab getSyntaxDiagramTab()
public InterpreterTab getInterpreterTab()
public ConsoleTab getConsoleTab()
public GrammarWindowTab getSelectedTab()
public void addTab(GrammarWindowTab tab)
public boolean documentWillSave()
public DebuggerTab getDebuggerTab()
public DebugMenu getDebugMenu()
public ActionRefactor getActionRefactor()
public GoToMenu getGoToMenu()
public void applyPrefs()
public void applyFont()
public ATETextPane getTextPane()
getTextPane in interface FindAndReplaceDelegategetTextPane in interface GoToMenuDelegatepublic ATEPanel getTextEditor()
getTextEditor in interface FindAndReplaceDelegategetTextEditor in interface FindMenuDelegategetTextEditor in interface GoToMenuDelegatepublic void gotoToRule(String grammar, String name)
gotoToRule in interface GrammarEngineDelegatepublic void toggleSyntaxColoring()
public boolean isSyntaxColored()
public void toggleRulesSorting()
public boolean isRulesSorted()
public void toggleSyntaxDiagram()
public boolean isSyntaxDiagramDisplayed()
public void toggleIdeas()
public boolean isIdeasEnabled()
public void changeUpdate()
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 enableTextPaneUndo()
public void disableTextPaneUndo()
public void undoManagerWillUndo(boolean redo)
undoManagerWillUndo in interface XJUndoDelegatepublic void undoManagerDidUndo(boolean redo)
undoManagerDidUndo in interface XJUndoDelegatepublic void loadText(String text)
public void setText(String text)
setText in interface FindAndReplaceDelegatepublic String getText()
getText in interface FindAndReplaceDelegatepublic String getGrammarFileName()
getGrammarFileName in interface GrammarEngineDelegatepublic String getGrammarText()
getGrammarText in interface GrammarEngineDelegatepublic void reportError(String error)
reportError in interface GrammarEngineDelegatepublic void reportError(Exception e)
reportError in interface GrammarEngineDelegatepublic org.antlr.Tool getANTLRTool()
getANTLRTool in interface GrammarEngineDelegatepublic void engineAnalyzeCompleted()
engineAnalyzeCompleted in interface GrammarEngineDelegatepublic void createFile(String name)
createFile in interface InspectorDelegatepublic void createRuleAtIndex(boolean lexer,
String name,
String content)
createRuleAtIndex in interface InspectorDelegatepublic void deleteRuleAtCurrentPosition()
deleteRuleAtCurrentPosition in interface InspectorDelegatepublic void removeLeftRecursion()
removeLeftRecursion in interface InspectorDelegatepublic void convertLiteralsToSingleQuote()
convertLiteralsToSingleQuote in interface InspectorDelegatepublic void replaceText(int leftIndex,
int rightIndex,
String text)
replaceText in interface InspectorDelegatepublic void selectTextRange(int start,
int end)
selectTextRange in interface FindMenuDelegatepublic void setDebuggerLocation(int index)
public int getDebuggerLocation()
public int getSelectionLeftIndexOnTokenBoundary()
public int getSelectionRightIndexOnTokenBoundary()
public boolean isFileWritable()
public boolean isFileExists()
public String getFileFolder()
public String getTokenVocabFile(String tokenVocabName)
getTokenVocabFile in interface GrammarEngineDelegatepublic String getFilePath()
public String getFileName()
getFileName in interface InspectorDelegatepublic String getOutputPath()
public GrammarEngine getGrammarEngine()
getGrammarEngine in interface GoToMenuDelegatepublic List<ElementRule> getRules()
public List<ElementRule> getSortedRules()
public List<ElementRule> getNaturalRules()
public EditorRules getEditorRules()
getEditorRules in interface FindMenuDelegatepublic void addUsagesTab(Usages usage)
addUsagesTab in interface FindMenuDelegatepublic List<ATEToken> getTokens()
getTokens in interface FindMenuDelegatepublic List<ATELine> getLines()
getLines in interface GoToMenuDelegatepublic void goToHistoryRememberCurrentPosition()
goToHistoryRememberCurrentPosition in interface GoToMenuDelegatepublic ElementReference getCurrentReference()
public ElementReference getReferenceAtPosition(int pos)
public ElementImport getImportAtPosition(int pos)
public ATEToken getCurrentToken()
getCurrentToken in interface FindMenuDelegatepublic ATEToken getTokenAtPosition(int pos, boolean fromRight)
public ElementRule getCurrentRule()
public void setCaretPosition(int position)
setCaretPosition in interface GoToMenuDelegatepublic int getCaretPosition()
getCaretPosition in interface GoToMenuDelegatepublic void updateVisualization(boolean immediate)
public void updateInformation()
public void updateCursorInfo()
public FindAndReplace getFindAndReplace()
getFindAndReplace in interface FindMenuDelegatepublic GoToRule getGoToRule()
getGoToRule in interface GoToMenuDelegatepublic boolean goToRule(String ruleName)
goToRule in interface GoToRuleDelegatepublic void goToDeclaration()
goToDeclaration in interface GoToMenuDelegatepublic void goToDeclaration(Jumpable ref)
goToDeclaration in interface GoToMenuDelegatepublic List<String> getRulesStartingWith(String match)
getRulesStartingWith in interface GoToRuleDelegatepublic void rulesCaretPositionDidChange()
public void rulesDidChange()
public JPopupMenu rulesGetContextualMenu(List selectedObjects)
public void ateEngineBeforeParsing()
ateEngineBeforeParsing in interface ATEPanelDelegatepublic void ateEngineAfterParsing()
ateEngineAfterParsing in interface ATEPanelDelegatepublic void changeDone()
public boolean ensureDocumentSaved()
public void consolePrint(String s, int level)
public void clearConsoleStatus()
public void setHighlightedReference(Jumpable highlightedReference)
public Jumpable getHighlightedReference()
public void notificationFire(Object source, String name)
notificationFire in interface XJNotificationObserverpublic void setEditable(boolean flag)
public void componentDidAwake()
public void componentActivated()
public void componentDidHide()
public void componentDocumentContentChanged()
public List<String> autoCompletionMenuGetMatchingWordsForPartialWord(String partialWord)
autoCompletionMenuGetMatchingWordsForPartialWord in interface AutoCompletionMenuDelegatepublic void autoCompletionMenuWillDisplay()
autoCompletionMenuWillDisplay in interface AutoCompletionMenuDelegatepublic void ateChangeUpdate(int offset,
int length,
boolean insert)
ateChangeUpdate in interface ATEPanelDelegatepublic void ateAutoIndent(int offset,
int length)
ateAutoIndent in interface ATEPanelDelegatepublic void ateMousePressed(Point point)
ateMousePressed in interface ATEPanelDelegatepublic void ateMouseExited()
ateMouseExited in interface ATEPanelDelegatepublic void ateMouseMoved(MouseEvent event)
ateMouseMoved in interface ATEPanelDelegatepublic void ateInvokePopUp(Component component, int x, int y)
ateInvokePopUp in interface ATEPanelDelegatepublic void ateCaretUpdate(int index)
ateCaretUpdate in interface ATEPanelDelegatepublic void findTokensToIgnore(boolean reset)
public void print()
public void showProgress(String title, XJDialogProgressDelegate delegate)
public void hideProgress()
public void goToBackward()
goToBackward in interface GoToMenuDelegatepublic void goToForward()
goToForward in interface GoToMenuDelegatepublic void find()
find in interface FindMenuDelegatepublic ContextualMenuFactory createContextualMenuFactory()
public JPopupMenu getContextualMenu(int textIndex)
public Set<Integer> getBreakpoints()
getBreakpoints in interface GoToMenuDelegatepublic void refreshMainMenuBar()
public void selectInterpreterTab()
public void selectConsoleTab()
public void selectDebuggerTab()
Copyright © 2013. All rights reserved.