Wave rich text editor

59 views
Skip to first unread message

Anton Starcev

unread,
Jun 14, 2011, 5:08:06 AM6/14/11
to google-we...@googlegroups.com
Hello all,

Trying to extract rich text editor from the Wave, stuck with a compilation error:

  <inherits name="com.google.common.collect.Collect"/>
  <inherits name="org.waveprotocol.wave.client.Client"/>
  <inherits name="org.waveprotocol.wave.client.editor.harness.EditorHarness" /> 

... 

gwt compile produce: 
java 
Compiling module ru.artlebedev.ast.Admin 
   [ERROR] Errors in 'jar:file:/mnt/sda1/projects/appengine/nucleus-app/war/WEB-INF/lib/client-common-src.jar!/org/waveprotocol/wave/client/common/util/UserAgentStaticProperties.java' 
      [ERROR] Line 57: Rebind result 'org.waveprotocol.wave.client.common.util.UserAgentStaticProperties' cannot be abstract 
   [ERROR] Cannot proceed due to previous errors 


When I replace in waveprotocol project in org.waveprotocol.wave.client.common.util.UserAgentStaticProperties string:
return GWT.create(UserAgentStaticProperties.class);

with:
return new FirefoxImpl();
everything is going well

Can anyone help?

Thomas Broyer

unread,
Jun 14, 2011, 6:22:43 AM6/14/11
to google-we...@googlegroups.com
Your bug report actually had answers… on the wave-dev mailing list!

If you want to reuse the Editor though, the module you actually need is org.waveprotocol.wave.client.editor.Editor. And you'll probably also need org.waveprotocol.wave.model.Model (and org.waveprotocol.wave.model.account.Account and org.waveprotocol.wave.model.supplement.Supplement or you'll have a bunch of errors on the console; it won't make you build fail though, unless you build in -strict mode)
EditorHarness is, as its name suggest, the GWT *application* that allows devs to test the Editor. It's a good start to understand how to bootstrap the editor, but it's not a reusable module.

Anton Starcev

unread,
Jun 14, 2011, 7:03:46 AM6/14/11
to google-we...@googlegroups.com
I didn't receive email notification, but I'm subscribed to the wave-dev mailing list now, thnx
Reply all
Reply to author
Forward
0 new messages