Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Add propertysheet contributions to existing html editor
Add propertysheet contributions to existing html editor [message #538523] Mon, 07 June 2010 16:21 Go to next message
Eclipse User
Originally posted by: adataylo.cisco.com

I've used this:

<extension point="org.eclipse.wst.sse.ui.editorConfiguration">
<provisionalConfiguration
type="contentassistprocessor" .../>

to get some content assist options into the existing .html, and .jsp
editors (i.e. it's not a new editor based upon html).

However, it appears that only the 1st propertySheetConfiguration
extension found is used (comment from method
ExtendedConfigurationBuilder.getConfiguration):

/**
* Returns a configuration for the given extensionType matching the
* targetID, if one is available. If more than one configuration is
* defined, the first one found is returned.
*
* @param extensionType
* @param targetID
* @return a configuration object, if one was defined
*/

My question is how do I get new propertysheet contributions into the
editor without clobbering other contributions?

Thanks,
Adam
Re: Add propertysheet contributions to existing html editor [message #539219 is a reply to message #538523] Wed, 09 June 2010 23:32 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2250
Registered: July 2009
Senior Member
You can't, you'll have to declare your own extension to org.eclipse.ui.editors and specify that as your target ID.

As a side note, the contentassistprocessor provisional configuration is deprecated in favor of supplying a proposal computer in Helios (https://bugs.eclipse.org/258999).


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Add propertysheet contributions to existing html editor [message #539454 is a reply to message #539219] Thu, 10 June 2010 14:44 Go to previous messageGo to next message
Eclipse User
Originally posted by: adataylo.cisco.com

On 6/9/2010 8:32 PM, Nitin Dahyabhai wrote:
> You can't, you'll have to declare your own extension to
> org.eclipse.ui.editors and specify that as your target ID.
>
> As a side note, the contentassistprocessor provisional configuration is
> deprecated in favor of supplying a proposal computer in Helios
> (https://bugs.eclipse.org/258999).

If I wanted to go to the trouble of creating a new extension to sse
which allows this functionality and contribute this back, is there any
reason to suspect that this would be rejected? For example does the
idea of what I suggest go against the fundamental goals of this project?
Re: Add propertysheet contributions to existing html editor [message #539455 is a reply to message #539219] Thu, 10 June 2010 14:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: adataylo.cisco.com

On 6/9/2010 8:32 PM, Nitin Dahyabhai wrote:
> You can't, you'll have to declare your own extension to
> org.eclipse.ui.editors and specify that as your target ID.
>
> As a side note, the contentassistprocessor provisional configuration is
> deprecated in favor of supplying a proposal computer in Helios
> (https://bugs.eclipse.org/258999).

If I wanted to go to the trouble of creating a new extension to sse
which allows this functionality and contribute this back, is there any
reason to suspect that this would be rejected? For example does the
idea of what I suggest go against the fundamental goals of this project?
Re: Add propertysheet contributions to existing html editor [message #539684 is a reply to message #539454] Fri, 11 June 2010 16:25 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2250
Registered: July 2009
Senior Member
On 6/10/2010 2:44 PM, adam taylor wrote:
> On 6/9/2010 8:32 PM, Nitin Dahyabhai wrote:
>> You can't, you'll have to declare your own extension to
>> org.eclipse.ui.editors and specify that as your target ID.
>>
>> As a side note, the contentassistprocessor provisional configuration is
>> deprecated in favor of supplying a proposal computer in Helios
>> (https://bugs.eclipse.org/258999).
>
> If I wanted to go to the trouble of creating a new extension to sse
> which allows this functionality and contribute this back, is there any
> reason to suspect that this would be rejected? For example does the idea
> of what I suggest go against the fundamental goals of this project?


I think I'd have to understand what you're proposing, but if it has
anything to do with adding a "priority" field to the editorConfiguration
extension point, I'd reject it as the list of target IDs searched
already forms a prioritized list. But like I said, I'd need some
clarification on what's being proposed.

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


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:web-fragment.xml causes nested jar on deployment
Next Topic:Unable to copy saaj.jar
Goto Forum:
  


Current Time: Thu Aug 21 22:05:39 EDT 2014

Powered by FUDForum. Page generated in 0.01683 seconds