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

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">
		name="Coffee Java Properties" 
		<resolve variable="MYCOFFEE" args="">
		    <equals value="cona"/>

<extension point="org.eclipse.core.variables.dynamicVariables">
       description="Coffee time"

In my 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: Mon Feb 17 21:26:10 GMT 2020

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

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

Back to the top