Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » StructuredTextViewerConfigurationXML
StructuredTextViewerConfigurationXML [message #210124] Mon, 10 March 2008 11:58 Go to next message
Eclipse User
Originally posted by: alexjaquet.gmail.com

I still search for a way to implement the content assist of my own xsd
for a StructuredTextEditor.

I thinked to overwrite the StructuredTextSourceViewerConfiguration,
XMLContentAssistProcessor and XMLContentAssistProcessor but when I
configure the source viewer configuration getContentAssistProcessors is
never called.

What do I need ?

Thanks

Alexandre
Re: StructuredTextViewerConfigurationXML [message #210148 is a reply to message #210124] Mon, 10 March 2008 17:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2238
Registered: July 2009
Senior Member
Alexandre Jaquet wrote:
> I still search for a way to implement the content assist of my own xsd
> for a StructuredTextEditor.
>
> I thinked to overwrite the StructuredTextSourceViewerConfiguration,
> XMLContentAssistProcessor and XMLContentAssistProcessor but when I
> configure the source viewer configuration getContentAssistProcessors is
> never called.
>
> What do I need ?

If you're using the org.eclipse.wst.sse.ui.editorConfiguration
extension point's sourceViewerConfigurtation element, your
configuration class should be loaded and used automatically as long
as your files have their own content type and your plugin.xml ties
the two together:

<extension point="org.eclipse.wst.sse.ui.editorConfiguration">
<sourceViewerConfiguration
class="alexander.jaquet.CustomStructuredTextViewerConfiguration "
target="fully.qualified.content-type" />
</extension>


--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: StructuredTextViewerConfigurationXML [message #210169 is a reply to message #210148] Tue, 11 March 2008 04:14 Go to previous messageGo to next message
Eclipse User
Originally posted by: alexjaquet.gmail.com

Hi Nithin

I've configured correctly the extensions point and now the right content
assist processor is called

maybe you know a good example of content assist processos that cover
what I need :

"I need to purpose the content assist for the content of three dtd files
stored inside the src folder"

What I thinked to do is to open the dtd files and then create the
CompletionProposal array.

What do you think ?

Thanks

Alexandre
Re: StructuredTextViewerConfigurationXML [message #892654 is a reply to message #210169] Thu, 28 June 2012 22:04 Go to previous message
rohit chawla is currently offline rohit chawla
Messages: 19
Registered: June 2012
Junior Member
I am facing the same issue. the extended StructuredTextViewerConfiguration never gets invoked?? Following is my plugin.xml. Can someone please tell where I am wrong?

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   
	 <extension
         point="org.eclipse.core.runtime.contentTypes">
         <content-type
            id="com.xyz.ide.core.contentType.dummy"
            base-type="org.eclipse.core.runtime.xml"
            file-extensions="xyz"
            name="apexpage"
            priority="normal"
            default-charset="UTF-8"/>
   </extension>
   
   
   
  <extension
        point="org.eclipse.wst.sse.ui.editorConfiguration">
        <sourceViewerConfigurtation
            class="validation.MyStructuredXMLConfiguration"
            target="com.xyz.ide.core.contentType.dummy"/>
  </extension>
	
</plugin>
Previous Topic:Tomcal server.xml out of sync - any way to refresh ?
Next Topic:use custom xsd with the StructuredTextEditor
Goto Forum:
  


Current Time: Sat Aug 02 04:39:09 EDT 2014

Powered by FUDForum. Page generated in 0.04761 seconds