Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing label for "<default package>" #5

Open
GoogleCodeExporter opened this issue Jun 26, 2015 · 1 comment
Open

Losing label for "<default package>" #5

GoogleCodeExporter opened this issue Jun 26, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I have some projects with a hierarchy like this:
"Other Sources"
  "src/main/resources/"
    "<default package>"

After enabling this perforce plugin (thank you thank you thank you for
building this), the "<default package>" text turns blank.

I've never written a nb module, so I'm not sure why or if this is the right
way to fix this, but I can resolve it by replacing "<" and ">" with "&lt;"
and "&gt;" in the VCSAnnotator.

In particular, in PerforceVersioningSystem.java, in
annotatePerforceName(...), I add this to the top and bottom (where "name"
is returned).

replace:
return name;
with:
return name.replace("<", "&lt;").replace(">", "&gt;");

Original issue reported on code.google.com by ElliotL...@gmail.com on 11 Nov 2009 at 2:57

@GoogleCodeExporter
Copy link
Author

Actually, maybe the "right" way to do this is to return null here if you have no
annotation to specify.

I replaced the
name.replace("<", "<").replace(">", ">");
lines above with just:
return null;

and the node shows up fine.

Original comment by ElliotL...@gmail.com on 11 Nov 2009 at 4:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant