Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6623141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:29:52+00:00 2026-05-25T21:29:52+00:00

When using Eclipse Google plugin, when you create a gwt uibinder pair, you get

  • 0

When using Eclipse Google plugin, when you create a gwt uibinder pair, you get a java bean file and its corresponding .ui.xml template file.

I believe I used to be able to do this in Eclipse Helios:
Right-click on the java bean of a uibinder set, refactor to rename it, I could config the refactor dialog to also rename the .ui.xml template file.

Recently, I have been using Eclipse 3.7.0 and latest GPE. I am no longer able to do that. May be I forgot how to do it. Somebody please remind me how – thanks.

e.g. rename the uibinder pair

Hello.java, Hello.ui.xml

to

Bello.java, Bello.ui.xml

Perhaps, it had never been possible in the first place and I had remembered wrongly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:29:53+00:00Added an answer on May 25, 2026 at 9:29 pm

    I’ve not noticed that capability, and I just tried it out, and renaming either the java or the ui.xml leaves you with an error until you rename the other file. Note that it isn’t a given that the file.java code is mapped to file.ui.xml, since the design could use @UiTemplate to link file.java to somethingelse.ui.xml. That might be the reason for this not to work. Changing a ui.xml file name automatically like that could cause a big cascade of changes.

    But there is some refactoring.

    What the refactoring is capable of doing it tracking changes to @UiField names. If I rename (using Alt-R) a field in my file.java file that has been annotated with @UiField, the ui:field in the ui.xml file is changed as well.

    Now here’s a tricky bit. Let’s say I have foo.java, foo.ui.xml, and foo2.java, with foo2.java using the foo.ui.xml UI template (via the @UiTemplate annotation). The ui.xml file has a Button call bar, so each of foo.java and foo2.java have @UiField(“bar”) Button bar. Follow me so far?

    In Eclipse, I open foo.java, and using Alt-R I change bar to baz. The ui.xml file has its ui:field=”bar” changed to ui:field=”baz”, and all annotations within foo.java that reference bar (such as @UiField and @UiHandler) are updated to reference baz. But the code in foo2.java is not changed, and there is now an error I need to fix. foo2.java still expects to see a button called bar inside of foo.ui.xml.

    Similarly, if I open foo2.java, and using Alt-R I change bar to baz, the ui:field=”bar” in foo.ui.xml is not changed, and you now have an error.

    Not sure if any of this is documented somewhere. Maybe you vaguely remembered this refactoring.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using GWT (currenly working with google's eclipse plugin), and I'm trying to throw
I have created a google-app-engine java project in Eclipse using Google's Eclipse plugin. My
I am using the Google Application Engine plugin for Eclipse 3.4, and I have
When using Eclipse or NetBeans IDE on a Java project I get to see
Ive installed the Google Plugin for Eclipse and created a demo project using App
I am new to java also at Google Apps, I am using Eclipse. I
I'm using Google App Engine with the Google plugin in Eclipse, here is the
I'm using the Eclipse plugin for Google App Engine and I'm having a strange
I've been using Pydev/Eclipse to develop Google App Engine (GAE) applications but I've been
Using Eclipse I want to view the source code for a core Java class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.