Add NetBeansProjects dir to Favorites tab#8798
Conversation
| </folder> | ||
|
|
||
| <folder name="Favorites"> | ||
| <file name="NetBeansProjects.shadow"> |
There was a problem hiding this comment.
note: i couldn't figure out how to put the display name of "NetBeansProjects" into the bundle. It did change the name within the layer tree, but didn't change within the Favorites tab. I believe "Home" is also not localized unless I overlooked something.
There was a problem hiding this comment.
The lines -
changed to
String name = super.getDisplayName();should do this. Pros and cons, although matching the value of
would be desirable for platform apps.
There was a problem hiding this comment.
we would have to check if renaming nodes still works, because favorites renames the virtual top level nodes instead of the files. Not sure what will happen when it uses the display name.
There was a problem hiding this comment.
Yes, worth making sure. As it changes the name of the shadow (symlink) then hopefully. Forgot to check when playing with this.
There was a problem hiding this comment.
I checked and it would rename the virtual file without the display name.
the current Home node registration is:
renaming Home using NB 27 works, but if we would render the display name (e.g HOME42), it would no longer make the update visible and it will keep showing HOME42.
Changing the impl might be a bit too risky for the scope of this PR - who knows what relied on this. I suppose platform applications could remove the item via their layer somehow?
|
I think this is a good change, and probably OK, as long as it's configurable for platform applications. Mixed feelings about whether Favorites nodes needs to support localization / branding first. And a somewhat tangential question - should we show Favorites rather than Services in the default window setup? |
Yep, as mentioned somewhere else I think we should open it by default in the same tab group as Projects/Files/Favorites. But its probably something to discuss first on the dev list first? Might be even good to open Favorites with the first file if we can figure out how to do that. |
|
had no ideas how to easily "brand" this so that this is only enabled in the IDE. Will probably move this to NB 29 (although it would have been nice to add this to the other Favorites themed improvements) |
57148c6 to
c014158
Compare
|
the layer registration moved to |
|
dropped the milestone on this one |
|
Wondering if we should try to get this in for NB 30 given recent improvements (#9186)?
|
- projects dir is now registered as favorite - fixed bug: when a custom project dir location is specified by setting 'netbeans.projects.dir', the dir is now automatically created, instead of falling back to the default dir, which gave the impression that the property isn't working
c014158 to
cc3fe06
Compare
|
rebased without changes |
netbeans.projects.dir, the dir is now automatically created, instead of falling back to the default dir, which gave the impression that the property isn't working