The item group name appearing as "itemGroup.dragon quest" instead of "dragon quest"
My little project is on github, and I made an issue with some screen here
I think I found where thr problem comes from. here you are putting the key "dragon quest". I think it's used everywhere to get the name.
If you remove the space (and so, have super("dragonquest");), you will see the translation here : "Tutorial Item Group".
And so, you should change the lang file to change the name showed in the inventory name.
Related
I have a node in backoffice.
<explorer-tree:navigation-node id="hmc.abc.navigation_node.businesspartner">
<explorer-tree:type-node code="BusinessPartner" id="hmc.abc.businesspartner.treenode"/>
</explorer-tree:navigation-node>
In my labels_en.properties -
hmc.abc.businesspartner.treenode=General title
Now for a particular user group say different_user I want to change the label to-
Specific title
For admin I still want to show General title.
Values that we define in labels_en.properties file can not be dynamic. Values will be same as we define for key.
One solution will be...
add another key value in labels_en.properties like
hmc.abc.businesspartner.treenode.specific=Specific title
Duplicate the type-node declaration in explorer tree and assign newly created key like below
<explorer-tree:type-node code="BusinessPartner" id="hmc.abc.businesspartner.treenode.specific"/>
Apply restriction on type-node according to user access rights, which node to be shown for which user
I can't find the KeyMap entry for changing the default AltShiftEnter to apply the first selected fix (in Java code) for a problem in Intellij.
See this screenshot:
I think the combination is too difficult (I'd like to use one hand and max two fingers) and want to change it to Eclipse's Ctrl1
How to change this?
There is related request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-217465
As a workaround you could put caret on red code, press "Alt+Enter" and select suggestion with arrow keys.
Instead of setting up 3 TextFields on a Stage that collect first, second and last names, I'd like to have just one in which a user can enter all his/ her names. I think my form will look simpler, less clustered, therefore less complicated for my users.
I was on some web page some time back and saw an implementation of the above this way:
The text field when blank shows three parts hinting first, second and
last name. When initially on forcus, only the first name hint
dissapeared, but the others, second and last remained. Then when
you're done entering the first name and press spacebar, the second
name dissapears and now only the last name hint shows. The same will
go for last name after entering the second name.
All text dissapears when the hint is set as new TextField("hint");.
Is there a way to go about it without having all the hints dissapear on focus?
Thank you all in advance.
I have a table of forms which accepts first name, last name etc. When I navigate through using the tab key and enter some text in first name, all of the text disappears and that row gets selected. I have tried almost all techniques.
Is there any way we can avoid that using coding?
If I use the mouse then it wont give that error.
Assuming an otherwise correct use of JTable, you may need to terminate the edit when focus is lost, as suggested here and here:
table.putClientProperty("terminateEditOnFocusLost", true);
I'm using the StarTeam java API (v10.4).
I am having a heckuva time trying to find which specific revisions a Label is applied to. What makes this tricky is that there seems to be no method on the Label object which provides a list of what that label is applied to.
So you (seemingly) need to go backwards and find a list of items that you want to check for a particular Label, e.g.
int[] check_these_items = new int[]{ item_to_check.getID() };
int[] labelledItems = myLabel.getLabeledItemIDs(check_these_items)
First, that's kind of convoluted because you need to have a Label in the first place when really what I wanted was to get a list of labels attached to a single revision. But ok, let's go with that for now. So now I need to find a single revision from the history. Let's make this simple and say I want to get the third (or fourth) revision:
Item specific_child = item_to_check.getHistory()[3];
Now the problem is that this new child from history has the same ID (via getID()) as the parent so using getLabeledItemIds(check_these_items) will return the same labels and essentially, we haven't gotten anywhere.
I did find a question related to finding past revisions but it wasn't pertaining to finding labels on past revisions.
Of course, I checked Borland's API documentation but have not come up with the solution.
I know the UI can do it so certainly there is way, I'm just having a time finding it.
Any suggestions even at a high-level would be greatly appreciated!
Once you have the Item and the Label at hand, use getFromHistoryByLabelID(int)
to "Returns the specified version of this item based on the given label ID"
This still doesn't seem like the right answer, but eventually I had to move on and ended up using a workaround of finding the revision date/time of the label I wanted and then comparing the item revision to that. So by that type of reverse logic, I was able to check each label attached to the element and find which revisions had that label.