/** * Constructs a console with the given name, image descriptor, and lifecycle * * @param name name to display for this console * @param consoleType console type identifier or <code>null</code> * @param imageDescriptor image to display for this console or <code>null</code> * @param autoLifecycle whether lifecycle methods should be called automatically * when this console is added/removed from the console manager */ public TextConsole(String name, String consoleType, ImageDescriptor imageDescriptor, boolean autoLifecycle) { super(name, consoleType, imageDescriptor, autoLifecycle); fDocument = new ConsoleDocument(); fDocument.addPositionCategory(ConsoleHyperlinkPosition.HYPER_LINK_CATEGORY); fPatternMatcher = new ConsolePatternMatcher(this); fDocument.addDocumentListener(fPatternMatcher); fTabWidth = IConsoleConstants.DEFAULT_TAB_SIZE; }
/** * Called by this console's pattern matcher when matching is complete. * <p> * Clients should not call this method. * <p> */ public void matcherFinished() { fMatcherFinished = true; fDocument.removeDocumentListener(fPatternMatcher); checkFinished(); }
protected void completeInitialization() { super.completeInitialization(); addPositionUpdater(new HyperlinkUpdater()); } /* (non-Javadoc)
@Override protected void completeInitialization() { super.completeInitialization(); addPositionUpdater(new HyperlinkUpdater()); } /* (non-Javadoc)
/** * Constructs a console with the given name, image descriptor, and lifecycle * * @param name name to display for this console * @param consoleType console type identifier or <code>null</code> * @param imageDescriptor image to display for this console or <code>null</code> * @param autoLifecycle whether lifecycle methods should be called automatically * when this console is added/removed from the console manager */ public TextConsole(String name, String consoleType, ImageDescriptor imageDescriptor, boolean autoLifecycle) { super(name, consoleType, imageDescriptor, autoLifecycle); fDocument = new ConsoleDocument(); fDocument.addPositionCategory(ConsoleHyperlinkPosition.HYPER_LINK_CATEGORY); fPatternMatcher = new ConsolePatternMatcher(this); fDocument.addDocumentListener(fPatternMatcher); fTabWidth = IConsoleConstants.DEFAULT_TAB_SIZE; }
/** * Called by this console's pattern matcher when matching is complete. * <p> * Clients should not call this method. * <p> */ public void matcherFinished() { fMatcherFinished = true; fDocument.removeDocumentListener(fPatternMatcher); checkFinished(); }