From d324df3b25d47a307147ffd894247abf7c6901d4 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Wed, 21 Apr 2004 06:15:23 +0000 Subject: [PATCH] Implement documentSetup and documentCreation extension point for CDT --- core/org.eclipse.cdt.ui/ChangeLog | 12 ++ core/org.eclipse.cdt.ui/plugin.properties | 5 +- core/org.eclipse.cdt.ui/plugin.xml | 23 ++- .../internal/ui/editor/CDocumentFactory.java | 34 +++++ .../ui/editor/CDocumentSetupParticipant.java | 37 +++++ .../editor/PartiallySynchronizedDocument.java | 132 ++++++++++++++++++ 6 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentFactory.java create mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentSetupParticipant.java create mode 100644 core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/PartiallySynchronizedDocument.java diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index bfeb2486f58..0152b825956 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,15 @@ +2004-04-20 Alain Magloire + + In Eclipse-3.0 things changes to set partition scanner + on the Document Provider, it is now an extension point. + Implement "documentCreation" and "documentSetup" extension points. + + * plugin.xml + * plugin.properties + * src/org/eclipse/cdt/internal/ui/editor/CDocumentFactory.java + * src/org/eclipse/cdt/internal/ui/editor/CDocumentSetupParticipant.java + * src/org/eclipse/cdt/internal/ui/editor/PartiallySynchronizedDocument.java + 2004-04-20 David Inglis Work in progress CPath UI changes diff --git a/core/org.eclipse.cdt.ui/plugin.properties b/core/org.eclipse.cdt.ui/plugin.properties index d2c7bf047dd..200af0f347a 100644 --- a/core/org.eclipse.cdt.ui/plugin.properties +++ b/core/org.eclipse.cdt.ui/plugin.properties @@ -150,4 +150,7 @@ HideCFiles.description= Hides all C files HideHeaderFiles.label= Header files HideHeaderFiles.description= Hides all Header files -WorkInProgress.name=Work In Progress \ No newline at end of file +WorkInProgress.name=Work In Progress + +cDocumentFactory=C Document Factory +cDocumentSetupParticipant=C Document Setup Participant \ No newline at end of file diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml index 2ebebd86820..9ddbdc982b2 100644 --- a/core/org.eclipse.cdt.ui/plugin.xml +++ b/core/org.eclipse.cdt.ui/plugin.xml @@ -205,6 +205,27 @@ + + + + + + + + + + + @@ -623,7 +644,7 @@ id="org.eclipse.cdt.ui.CSearchResultPage"> -