|
Lines 45-65
Link Here
|
| 45 |
import org.eclipse.ant.internal.ui.model.AntProjectNode; |
45 |
import org.eclipse.ant.internal.ui.model.AntProjectNode; |
| 46 |
import org.eclipse.ant.internal.ui.model.IAntModelListener; |
46 |
import org.eclipse.ant.internal.ui.model.IAntModelListener; |
| 47 |
import org.eclipse.ant.internal.ui.preferences.AntEditorPreferenceConstants; |
47 |
import org.eclipse.ant.internal.ui.preferences.AntEditorPreferenceConstants; |
| 48 |
import org.eclipse.core.resources.IFile; |
48 |
|
|
|
49 |
import org.eclipse.swt.custom.StyledText; |
| 50 |
import org.eclipse.swt.events.ShellAdapter; |
| 51 |
import org.eclipse.swt.events.ShellEvent; |
| 52 |
import org.eclipse.swt.graphics.Image; |
| 53 |
import org.eclipse.swt.widgets.Composite; |
| 54 |
import org.eclipse.swt.widgets.Shell; |
| 55 |
|
| 49 |
import org.eclipse.core.runtime.CoreException; |
56 |
import org.eclipse.core.runtime.CoreException; |
| 50 |
import org.eclipse.core.runtime.IProgressMonitor; |
57 |
import org.eclipse.core.runtime.IProgressMonitor; |
| 51 |
import org.eclipse.core.runtime.IStatus; |
58 |
import org.eclipse.core.runtime.IStatus; |
| 52 |
import org.eclipse.core.runtime.NullProgressMonitor; |
59 |
import org.eclipse.core.runtime.NullProgressMonitor; |
| 53 |
import org.eclipse.core.runtime.Status; |
60 |
import org.eclipse.core.runtime.Status; |
| 54 |
import org.eclipse.core.runtime.jobs.Job; |
61 |
import org.eclipse.core.runtime.jobs.Job; |
| 55 |
import org.eclipse.debug.ui.actions.IRunToLineTarget; |
62 |
|
| 56 |
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; |
63 |
import org.eclipse.core.resources.IFile; |
| 57 |
import org.eclipse.jdt.ui.JavaUI; |
64 |
|
| 58 |
import org.eclipse.jdt.ui.actions.IJavaEditorActionDefinitionIds; |
|
|
| 59 |
import org.eclipse.jface.action.IAction; |
65 |
import org.eclipse.jface.action.IAction; |
| 60 |
import org.eclipse.jface.action.IMenuManager; |
66 |
import org.eclipse.jface.action.IMenuManager; |
| 61 |
import org.eclipse.jface.action.Separator; |
67 |
import org.eclipse.jface.action.Separator; |
| 62 |
import org.eclipse.jface.preference.IPreferenceStore; |
68 |
import org.eclipse.jface.preference.IPreferenceStore; |
|
|
69 |
import org.eclipse.jface.util.PropertyChangeEvent; |
| 70 |
import org.eclipse.jface.viewers.IPostSelectionProvider; |
| 71 |
import org.eclipse.jface.viewers.ISelection; |
| 72 |
import org.eclipse.jface.viewers.ISelectionChangedListener; |
| 73 |
import org.eclipse.jface.viewers.ISelectionProvider; |
| 74 |
import org.eclipse.jface.viewers.IStructuredSelection; |
| 75 |
import org.eclipse.jface.viewers.SelectionChangedEvent; |
| 76 |
|
| 63 |
import org.eclipse.jface.text.BadLocationException; |
77 |
import org.eclipse.jface.text.BadLocationException; |
| 64 |
import org.eclipse.jface.text.DocumentEvent; |
78 |
import org.eclipse.jface.text.DocumentEvent; |
| 65 |
import org.eclipse.jface.text.IAutoEditStrategy; |
79 |
import org.eclipse.jface.text.IAutoEditStrategy; |
|
Lines 85-103
Link Here
|
| 85 |
import org.eclipse.jface.text.source.projection.IProjectionListener; |
99 |
import org.eclipse.jface.text.source.projection.IProjectionListener; |
| 86 |
import org.eclipse.jface.text.source.projection.ProjectionSupport; |
100 |
import org.eclipse.jface.text.source.projection.ProjectionSupport; |
| 87 |
import org.eclipse.jface.text.source.projection.ProjectionViewer; |
101 |
import org.eclipse.jface.text.source.projection.ProjectionViewer; |
| 88 |
import org.eclipse.jface.util.PropertyChangeEvent; |
102 |
|
| 89 |
import org.eclipse.jface.viewers.IPostSelectionProvider; |
|
|
| 90 |
import org.eclipse.jface.viewers.ISelection; |
| 91 |
import org.eclipse.jface.viewers.ISelectionChangedListener; |
| 92 |
import org.eclipse.jface.viewers.ISelectionProvider; |
| 93 |
import org.eclipse.jface.viewers.IStructuredSelection; |
| 94 |
import org.eclipse.jface.viewers.SelectionChangedEvent; |
| 95 |
import org.eclipse.swt.custom.StyledText; |
| 96 |
import org.eclipse.swt.events.ShellAdapter; |
| 97 |
import org.eclipse.swt.events.ShellEvent; |
| 98 |
import org.eclipse.swt.graphics.Image; |
| 99 |
import org.eclipse.swt.widgets.Composite; |
| 100 |
import org.eclipse.swt.widgets.Shell; |
| 101 |
import org.eclipse.ui.IEditorInput; |
103 |
import org.eclipse.ui.IEditorInput; |
| 102 |
import org.eclipse.ui.IPageLayout; |
104 |
import org.eclipse.ui.IPageLayout; |
| 103 |
import org.eclipse.ui.IPartService; |
105 |
import org.eclipse.ui.IPartService; |
|
Lines 105-122
Link Here
|
| 105 |
import org.eclipse.ui.IWorkbenchPart; |
107 |
import org.eclipse.ui.IWorkbenchPart; |
| 106 |
import org.eclipse.ui.IWorkbenchWindow; |
108 |
import org.eclipse.ui.IWorkbenchWindow; |
| 107 |
import org.eclipse.ui.PartInitException; |
109 |
import org.eclipse.ui.PartInitException; |
| 108 |
import org.eclipse.ui.editors.text.TextEditor; |
|
|
| 109 |
import org.eclipse.ui.ide.IDE; |
110 |
import org.eclipse.ui.ide.IDE; |
| 110 |
import org.eclipse.ui.part.IShowInTargetList; |
111 |
import org.eclipse.ui.part.IShowInTargetList; |
|
|
112 |
import org.eclipse.ui.views.contentoutline.ContentOutline; |
| 113 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
| 114 |
|
| 111 |
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants; |
115 |
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants; |
| 112 |
import org.eclipse.ui.texteditor.ContentAssistAction; |
|
|
| 113 |
import org.eclipse.ui.texteditor.IDocumentProvider; |
116 |
import org.eclipse.ui.texteditor.IDocumentProvider; |
| 114 |
import org.eclipse.ui.texteditor.IEditorStatusLine; |
117 |
import org.eclipse.ui.texteditor.IEditorStatusLine; |
| 115 |
import org.eclipse.ui.texteditor.ITextEditorActionConstants; |
118 |
import org.eclipse.ui.texteditor.ITextEditorActionConstants; |
| 116 |
import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds; |
|
|
| 117 |
import org.eclipse.ui.texteditor.TextOperationAction; |
119 |
import org.eclipse.ui.texteditor.TextOperationAction; |
| 118 |
import org.eclipse.ui.views.contentoutline.ContentOutline; |
120 |
|
| 119 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
121 |
import org.eclipse.ui.editors.text.TextEditor; |
|
|
122 |
|
| 123 |
import org.eclipse.debug.ui.actions.IRunToLineTarget; |
| 124 |
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; |
| 125 |
|
| 126 |
import org.eclipse.jdt.ui.JavaUI; |
| 127 |
import org.eclipse.jdt.ui.actions.IJavaEditorActionDefinitionIds; |
| 120 |
|
128 |
|
| 121 |
/** |
129 |
/** |
| 122 |
* The actual editor implementation for Eclipse's Ant integration. |
130 |
* The actual editor implementation for Eclipse's Ant integration. |
|
Lines 494-506
Link Here
|
| 494 |
super.createActions(); |
502 |
super.createActions(); |
| 495 |
|
503 |
|
| 496 |
ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.ant.internal.ui.editor.AntEditorMessages"); //$NON-NLS-1$ |
504 |
ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.ant.internal.ui.editor.AntEditorMessages"); //$NON-NLS-1$ |
| 497 |
IAction action = new ContentAssistAction(bundle, "ContentAssistProposal.", this); //$NON-NLS-1$ |
|
|
| 498 |
|
| 499 |
// This action definition is associated with the accelerator Ctrl+Space |
| 500 |
action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); |
| 501 |
setAction("ContentAssistProposal", action); //$NON-NLS-1$ |
| 502 |
|
505 |
|
| 503 |
action = new TextOperationAction(bundle, "ContentFormat.", this, ISourceViewer.FORMAT); //$NON-NLS-1$ |
506 |
IAction action= new TextOperationAction(bundle, "ContentFormat.", this, ISourceViewer.FORMAT); //$NON-NLS-1$ |
| 504 |
action.setActionDefinitionId(IJavaEditorActionDefinitionIds.FORMAT); |
507 |
action.setActionDefinitionId(IJavaEditorActionDefinitionIds.FORMAT); |
| 505 |
setAction("ContentFormat", action); //$NON-NLS-1$ |
508 |
setAction("ContentFormat", action); //$NON-NLS-1$ |
| 506 |
|
509 |
|