/** * Displays information in the status line why a line move is not possible */ private void showStatus() { IEditorStatusLine status= (IEditorStatusLine) fSharedState.fEditor.getAdapter(IEditorStatusLine.class); if (status == null) return; status.setMessage(false, JavaEditorMessages.Editor_MoveLines_IllegalMove_status, null); }
/** * Displays information in the status line why a line move is not possible */ private void showStatus() { IEditorStatusLine status= fSharedState.fEditor.getAdapter(IEditorStatusLine.class); if (status == null) return; status.setMessage(false, JavaEditorMessages.Editor_MoveLines_IllegalMove_status, null); }
/** * Displays information in the status line why a line move is not possible */ private void showStatus() { IEditorStatusLine status= fSharedState.fEditor.getAdapter(IEditorStatusLine.class); if (status == null) return; status.setMessage(false, JavaEditorMessages.Editor_MoveLines_IllegalMove_status, null); }
public Object getAdapter(Class key) { if (key.equals(ITextOperationTarget.class)) { // use our own wrapper around the one returned by the superclass return new AJTextOperationTarget((ITextOperationTarget) super .getAdapter(key)); } if (key.equals(IAnnotationAccess.class)) { Object o = super.getAdapter(key); if (o instanceof IAnnotationAccessExtension) { if (annotationAccessWrapper == null) { annotationAccessWrapper = new AnnotationAccessWrapper(); } annotationAccessWrapper .setWrapped((IAnnotationAccessExtension) o); return annotationAccessWrapper; } return o; } if (key.equals(IContextProvider.class)) { return AspectJUIHelp.getHelpContextProvider(this, IAJHelpContextIds.ASPECTJ_EDITOR); } return super.getAdapter(key); }
/** * Ends the compound change. */ public void endCompoundEdit() { if (!fEditInProgress || fEditor == null) return; fExitStrategy.disarm(); IRewriteTarget target= (IRewriteTarget)fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.endCompoundChange(); } fResult= null; fEditInProgress= false; } }
/** * Ends the compound change. */ public void endCompoundEdit() { if (!fEditInProgress || fEditor == null) return; fExitStrategy.disarm(); IRewriteTarget target= fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.endCompoundChange(); } fResult= null; fEditInProgress= false; } }
/** * Ends the compound change. */ public void endCompoundEdit() { if (!fEditInProgress || fEditor == null) return; fExitStrategy.disarm(); IRewriteTarget target= fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.endCompoundChange(); } fResult= null; fEditInProgress= false; } }
/** * Ends the compound change. */ public void beginCompoundEdit() { if (fEditInProgress || fEditor == null) return; fEditInProgress= true; fExitStrategy.arm(fEditor.getViewer()); IRewriteTarget target= fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.beginCompoundChange(); } } /**
/** * Ends the compound change. */ public void beginCompoundEdit() { if (fEditInProgress || fEditor == null) return; fEditInProgress= true; fExitStrategy.arm(fEditor.getViewer()); IRewriteTarget target= fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.beginCompoundChange(); } } /**
/** * Ends the compound change. */ public void beginCompoundEdit() { if (fEditInProgress || fEditor == null) return; fEditInProgress= true; fExitStrategy.arm(fEditor.getViewer()); IRewriteTarget target= (IRewriteTarget)fEditor.getAdapter(IRewriteTarget.class); if (target != null) { target.beginCompoundChange(); } } /**
if (editor.getInsertMode() != ITextEditorExtension3.SMART_INSERT || !editor.isEditable()) return; ITextEditorExtension2 extension= (ITextEditorExtension2)editor.getAdapter(ITextEditorExtension2.class); if (extension != null && !extension.validateEditorInputState()) return; final SmartBackspaceManager manager= (SmartBackspaceManager) editor.getAdapter(SmartBackspaceManager.class); if (manager != null && JavaPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_BACKSPACE)) { TextEdit e1= new ReplaceEdit(command.offset, command.text.length(), document.get(command.offset, command.length));
if (editor.getInsertMode() != ITextEditorExtension3.SMART_INSERT || !editor.isEditable()) return; ITextEditorExtension2 extension= editor.getAdapter(ITextEditorExtension2.class); if (extension != null && !extension.validateEditorInputState()) return; final SmartBackspaceManager manager= editor.getAdapter(SmartBackspaceManager.class); if (manager != null && JavaPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_BACKSPACE)) { TextEdit e1= new ReplaceEdit(command.offset, command.text.length(), document.get(command.offset, command.length));
if (editor.getInsertMode() != ITextEditorExtension3.SMART_INSERT || !editor.isEditable()) return; ITextEditorExtension2 extension= editor.getAdapter(ITextEditorExtension2.class); if (extension != null && !extension.validateEditorInputState()) return; final SmartBackspaceManager manager= editor.getAdapter(SmartBackspaceManager.class); if (manager != null && JavaPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_BACKSPACE)) { TextEdit e1= new ReplaceEdit(command.offset, command.text.length(), document.get(command.offset, command.length));