Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » StructuredTextViewerConfigurationXML
StructuredTextViewerConfigurationXML [message #210124] Mon, 10 March 2008 15:58 Go to next message
Eclipse UserFriend
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 21:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Re: StructuredTextViewerConfigurationXML [message #210169 is a reply to message #210148] Tue, 11 March 2008 08:14 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 29 June 2012 02:04 Go to previous message
rohit chawla is currently offline rohit chawlaFriend
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: Wed Apr 24 19:41:06 GMT 2024

Powered by FUDForum. Page generated in 0.04029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top