Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Could not resolve SapphireActionHandler
Could not resolve SapphireActionHandler [message #853818] Mon, 23 April 2012 07:09 Go to previous message
Nepomuk Seiler is currently offline Nepomuk Seiler
Messages: 77
Registered: December 2010
Member
Hi,

I'm trying to add a custom ActionHandler. I've implemented a class with SapphireActionHandler.

However the sdef file says: "Could not resolve implementation class".
I have imported all packages.

<?xml version="1.0" encoding="UTF-8"?>
<definition>
     <import>
          <package>de.lmu.ifi.dbs.knowing.core.model</package>
          <package>de.lmu.ifi.dbs.knowing.debug.ui.handler</package>
          <package>de.lmu.ifi.dbs.knowing.debug.ui.editor</package>
     </import>
....

     <action>
          <id>knowing.dpu.run</id>
          <label>Run</label>
     </action>
     <action-handler>
          <action>knowing.dpu.run</action>
          <id>knowing.dpu.run.handler.default</id>
          <impl>de.lmu.ifi.dbs.knowing.debug.ui.handler.SapphireRunHandler</impl>
     </action-handler>
....



The class isn't that big yet

package de.lmu.ifi.dbs.knowing.debug.ui.handler;

import org.eclipse.sapphire.ui.SapphireActionHandler;
import org.eclipse.sapphire.ui.SapphireRenderingContext;

public class SapphireRunHandler extends SapphireActionHandler {

	@Override
	protected Object run(SapphireRenderingContext context) {
		System.out.println("RUN!");
		return null;
	}

}



Second question. How can I add this action to the section title bar,
where the "hide outline" buttion is located?

thx,
Muki
 
Read Message
Read Message
Read Message
Previous Topic:Diagram node handler factory
Next Topic:Aligning Sapphire 0.5 release with Juno
Goto Forum:
  


Current Time: Sat May 25 19:39:36 EDT 2013

Powered by FUDForum. Page generated in 0.01865 seconds