Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » enabledWhen - resolve variable (dynamicVariables) - doesn't work(creating an eclipse plugin)
icon5.gif  enabledWhen - resolve variable (dynamicVariables) - doesn't work [message #1716237] Wed, 02 December 2015 12:02
Zoe Eldrich is currently offline Zoe EldrichFriend
Messages: 2
Registered: December 2015
Junior Member
Hello!

I tried to make an eclipse plugin and I had some difficulties.

First of all I created two extension points:

<extension point="org.eclipse.ui.propertyPages">
	<page 
		id="com.coffee.projectPage" 
		name="Coffee Java Properties" 
		class="com.coffee.cona.properties.CoffeePropertyPage"> 
		<enabledWhen>
		<resolve variable="MYCOFFEE" args="">
		    <equals value="cona"/>
		</resolve>
		</enabledWhen>
	</page> 
</extension>

<extension point="org.eclipse.core.variables.dynamicVariables">
    <variable 
       name="MYCOFFEE"
       resolver="com.coffee.properties.CoffeeTimeResolver"
       description="Coffee time"
       supportsArgument="true">
    </variable> 
  </extension>



In my com.coffee.properties.CoffeeTimeResolver I wrote:

...
...

public class CoffeeTimeResolver implements IDynamicVariableResolver {

 public String resolveValue(IDynamicVariable variable, String argument){
  return "cona";
...
...



But it doesn't work! En Eclipse console I see this message:

!MESSAGE The variable MYCOFFEE is not defined

Where I was wrong?

Many thanks in advance!
Previous Topic:Mars - JS validation in JSP
Next Topic:Compiling error
Goto Forum:
  


Current Time: Fri Apr 26 19:25:38 GMT 2024

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

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

Back to the top