Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 256298
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/editor/PDEFormTextEditorContributor.java (-2 / +2 lines)
Lines 61-73 Link Here
61
61
62
			ITextEditor textEditor = (part instanceof ITextEditor) ? (ITextEditor) part : null;
62
			ITextEditor textEditor = (part instanceof ITextEditor) ? (ITextEditor) part : null;
63
			if (fCorrectionAssist != null)
63
			if (fCorrectionAssist != null)
64
				fCorrectionAssist.setAction(getAction(textEditor, ITextEditorActionConstants.QUICK_ASSIST)); //$NON-NLS-1$
64
				fCorrectionAssist.setAction(getAction(textEditor, ITextEditorActionConstants.QUICK_ASSIST));
65
			if (fHyperlinkAction != null)
65
			if (fHyperlinkAction != null)
66
				fHyperlinkAction.setTextEditor(textEditor);
66
				fHyperlinkAction.setTextEditor(textEditor);
67
			if (fFormatAction != null)
67
			if (fFormatAction != null)
68
				fFormatAction.setTextEditor(textEditor);
68
				fFormatAction.setTextEditor(textEditor);
69
			if (fContentAssist != null)
69
			if (fContentAssist != null)
70
				fContentAssist.setAction(getAction(textEditor, "ContentAssist")); //$NON-NLS-1$
70
				fContentAssist.setAction(getAction(textEditor, ITextEditorActionConstants.CONTENT_ASSIST));
71
		}
71
		}
72
	}
72
	}
73
73
(-)src/org/eclipse/pde/internal/ui/editor/PDESourcePage.java (-11 / +1 lines)
Lines 15-26 Link Here
15
import org.eclipse.core.resources.IMarker;
15
import org.eclipse.core.resources.IMarker;
16
import org.eclipse.core.runtime.CoreException;
16
import org.eclipse.core.runtime.CoreException;
17
import org.eclipse.jdt.ui.JavaUI;
17
import org.eclipse.jdt.ui.JavaUI;
18
import org.eclipse.jface.action.IAction;
19
import org.eclipse.jface.action.IMenuManager;
18
import org.eclipse.jface.action.IMenuManager;
20
import org.eclipse.jface.preference.IPreferenceStore;
19
import org.eclipse.jface.preference.IPreferenceStore;
21
import org.eclipse.jface.text.IDocument;
20
import org.eclipse.jface.text.IDocument;
22
import org.eclipse.jface.text.ITextSelection;
21
import org.eclipse.jface.text.ITextSelection;
23
import org.eclipse.jface.text.source.*;
22
import org.eclipse.jface.text.source.ISourceViewer;
24
import org.eclipse.jface.viewers.*;
23
import org.eclipse.jface.viewers.*;
25
import org.eclipse.pde.core.IBaseModel;
24
import org.eclipse.pde.core.IBaseModel;
26
import org.eclipse.pde.internal.core.text.*;
25
import org.eclipse.pde.internal.core.text.*;
Lines 394-401 Link Here
394
			PDEFormTextEditorContributor textContributor = (PDEFormTextEditorContributor) contributor;
393
			PDEFormTextEditorContributor textContributor = (PDEFormTextEditorContributor) contributor;
395
			setAction(PDEActionConstants.OPEN, textContributor.getHyperlinkAction());
394
			setAction(PDEActionConstants.OPEN, textContributor.getHyperlinkAction());
396
			setAction(PDEActionConstants.FORMAT, textContributor.getFormatAction());
395
			setAction(PDEActionConstants.FORMAT, textContributor.getFormatAction());
397
			if (textContributor.supportsContentAssist())
398
				createContentAssistAction();
399
		}
396
		}
400
397
401
		// Create the quick outline action
398
		// Create the quick outline action
Lines 416-428 Link Here
416
		setAction(PDEActionConstants.COMMAND_ID_QUICK_OUTLINE, action);
413
		setAction(PDEActionConstants.COMMAND_ID_QUICK_OUTLINE, action);
417
	}
414
	}
418
415
419
	private void createContentAssistAction() {
420
		IAction contentAssist = new ContentAssistAction(getBundleForConstructedKeys(), "ContentAssistProposal.", this); //$NON-NLS-1$
421
		contentAssist.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
422
		setAction("ContentAssist", contentAssist); //$NON-NLS-1$
423
		markAsStateDependentAction("ContentAssist", true); //$NON-NLS-1$
424
	}
425
426
	public final void selectionChanged(SelectionChangedEvent event) {
416
	public final void selectionChanged(SelectionChangedEvent event) {
427
		if (event.getSource() == getSelectionProvider())
417
		if (event.getSource() == getSelectionProvider())
428
			return;
418
			return;
(-)META-INF/MANIFEST.MF (-2 / +2 lines)
Lines 81-88 Link Here
81
 org.eclipse.core.runtime;bundle-version="[3.1.0,4.0.0)",
81
 org.eclipse.core.runtime;bundle-version="[3.1.0,4.0.0)",
82
 org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)",
82
 org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)",
83
 org.eclipse.ui.views;bundle-version="[3.2.0,4.0.0)",
83
 org.eclipse.ui.views;bundle-version="[3.2.0,4.0.0)",
84
 org.eclipse.jface.text;bundle-version="[3.2.0,4.0.0)",
84
 org.eclipse.jface.text;bundle-version="[3.5.0,4.0.0)",
85
 org.eclipse.ui.workbench.texteditor;bundle-version="[3.2.0,4.0.0)",
85
 org.eclipse.ui.workbench.texteditor;bundle-version="[3.5.0,4.0.0)",
86
 org.eclipse.ui.editors;bundle-version="[3.2.0,4.0.0)",
86
 org.eclipse.ui.editors;bundle-version="[3.2.0,4.0.0)",
87
 org.eclipse.debug.ui;bundle-version="[3.2.0,4.0.0)",
87
 org.eclipse.debug.ui;bundle-version="[3.2.0,4.0.0)",
88
 org.eclipse.jdt.core;bundle-version="[3.2.0,4.0.0)",
88
 org.eclipse.jdt.core;bundle-version="[3.2.0,4.0.0)",

Return to bug 256298