public void handleEvent( Event e ) { StyledTextCompReplace stReplace = new StyledTextCompReplace( styledText.getShell(), styledText ); stReplace.open(); } } );
public void handleEvent( Event e ) { StyledTextCompFind stFind = new StyledTextCompFind( styledText.getShell(), styledText, BaseMessages.getString( PKG, "WidgetDialog.Styled.FindString", strTabName ) ); stFind.open(); } } );
private void openErrorDialog(Exception e) { Shell shell= getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, JavaTextMessages.ParameterGuessingProposal_error_msg, e.getMessage()); }
private void openErrorDialog(final Exception e) { final Shell shell = getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, "parameter guessing error", e.getMessage()); //$NON-NLS-1$ }
private void openErrorDialog(Exception e) { Shell shell= getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, JavaTextMessages.ParameterGuessingProposal_error_msg, e.getMessage()); }
@Override public void keyReleased(KeyEvent e) { if ((e.stateMask == SWT.CTRL || e.stateMask == SWT.COMMAND) && (e.keyCode == 'a' || e.keyCode == 'A')) consoleText.setSelection(new Point(0, consoleText.getText().length())); if ((e.stateMask == SWT.CTRL || e.stateMask == SWT.COMMAND) && (e.keyCode == 'c' || e.keyCode == 'C')) copyToClipboard(); if ((e.stateMask == SWT.CTRL || e.stateMask == SWT.COMMAND) && (e.keyCode == 'w' || e.keyCode == 'W')) consoleText.getShell().close(); } });
private void handleException(ITextViewer viewer, Exception e, IRegion region) { JavaPlugin.log(e); openErrorDialog(viewer.getTextWidget().getShell(), e); fSelectedRegion= region; }
@Override public void apply(IDocument document) { try { String variable= fVariable.getType().equals("dollar") ? "$$" : "${" + fVariable.getType() + '}'; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ document.replace(fOffset, fLength, variable); fSelection= new Point(fOffset + variable.length(), 0); } catch (BadLocationException e) { Shell shell= fViewer.getTextWidget().getShell(); MessageDialog.openError(shell, TemplatesMessages.TemplateVariableProposal_error_title, e.getMessage()); } }
private void handleException(ITextViewer viewer, Exception e, IRegion region) { JavaPlugin.log(e); openErrorDialog(viewer.getTextWidget().getShell(), e); fSelectedRegion= region; }
public void apply(IDocument document) { try { String variable= fVariable.getType().equals("dollar") ? "$$" : "${" + fVariable.getType() + '}'; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ document.replace(fOffset, fLength, variable); fSelection= new Point(fOffset + variable.length(), 0); } catch (BadLocationException e) { Shell shell= fViewer.getTextWidget().getShell(); MessageDialog.openError(shell, TextEditorTemplateMessages.TemplateVariableProposal_error_title, e.getMessage()); } }
private void handleException(ITextViewer viewer, Exception e, IRegion region) { JavaPlugin.log(e); openErrorDialog(viewer.getTextWidget().getShell(), e); fSelectedRegion= region; }
@Override public void apply(IDocument document) { try { String variable= fVariable.getType().equals("dollar") ? "$$" : "${" + fVariable.getType() + '}'; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ document.replace(fOffset, fLength, variable); fSelection= new Point(fOffset + variable.length(), 0); } catch (BadLocationException e) { Shell shell= fViewer.getTextWidget().getShell(); MessageDialog.openError(shell, TemplatesMessages.TemplateVariableProposal_error_title, e.getMessage()); } }
private void openErrorDialog(final BadLocationException e) { final Shell shell = getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, "Failed", e.getMessage()); //$NON-NLS-1$ }
private void openErrorDialog(final BadLocationException e) { final Shell shell = getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, "Failed", e.getMessage()); }
private IHandlerActivation activateHandler(TextViewer viewer, int operation, String actionDefinitionId) { IHandler handler = createActionHandler(viewer, operation, actionDefinitionId); return handlerService.activateHandler(actionDefinitionId, handler, // new ActiveShellExpression(viewer.getTextWidget().getShell())); }
private void openErrorDialog(BadLocationException e) { Shell shell= getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, JavaTextMessages.FilledArgumentNamesMethodProposal_error_msg, e.getMessage()); }
private void openErrorDialog(final BadLocationException e) { final Shell shell = getTextViewer().getTextWidget().getShell(); MessageDialog.openError(shell, "Failed to guess method parameters", e.getMessage()); }
private void openErrorDialog(BadLocationException e) { Shell shell= getTextViewer().getTextWidget().getShell(); String message= e.getMessage(); MessageDialog.openError(shell, JavaTextMessages.FilledArgumentNamesMethodProposal_error_msg, message == null ? e.toString() : message); }
private void openErrorDialog(BadLocationException e) { Shell shell= getTextViewer().getTextWidget().getShell(); String message= e.getMessage(); MessageDialog.openError(shell, JavaTextMessages.FilledArgumentNamesMethodProposal_error_msg, message == null ? e.toString() : message); }
/** * Jumps to the line. */ protected void gotoLine(int line) { IDocument document= fTextViewer.getDocument(); try { int start= document.getLineOffset(line); int length= document.getLineLength(line); fTextViewer.getTextWidget().setSelection(start, start + length); fTextViewer.revealRange(start, length); } catch (BadLocationException x) { ConsolePlugin.errorDialog(fTextViewer.getTextWidget().getShell(), ConsoleMessages.TextViewerGotoLineAction_Go_To_Line_1, ConsoleMessages.TextViewerGotoLineAction_Exceptions_occurred_attempt_to_go_to_line_2, x); // } }