Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Context-sensitive help: Max usable size of a helpKey constant literal string?(Query)
Context-sensitive help: Max usable size of a helpKey constant literal string? [message #779825] Mon, 16 January 2012 11:24
William Gaither is currently offline William Gaither
Messages: 1
Registered: January 2012
Junior Member
Hello,

What is the max usable size of the literal string identified by a helpKey constant?

Has anyone verified this?

In the following example (which I found in the Eclipse documentation topic for the "helpKey Constants Interface Class") what is the maximum usable size of the literal string "CONTEXT_ID_CP_PROPERTY_PAGE"?

public interface IHelpConstants {
/*
* CONTEXT_ID_CP_PROPERTY_PAGE =
* Basic profile name/description/auto-connect property page
*/
public static final String CONTEXT_ID_CP_PROPERTY_PAGE =
"CONTEXT_ID_CP_PROPERTY_PAGE"; //$NON-NLS-1$
....
....
}

In some older versions of Eclipse, you could define long IDs such as "CONTEXT_ID_CP_PROPERTY_PAGE" but the runtime would use only the first 10 characters or so. The result was that IDs that were different after 10 characters were treated as the same ID by the runtime.

Does this limitation still exist?

[Note: The "helpKey Constants Interface Class" documentation states that "the only characters allowed in a helpKey constant string are: upper case and lower case letters (a-z, A-Z), numbers (0-9), and the underscore (_)". There is nothing said about length.]

Thank you,
Bill Gaither
Previous Topic:Problem Executing SWT Tutorial in Eclipse Java IDE
Next Topic:Cannot connect to VM
Goto Forum:
  


Current Time: Sat Apr 19 03:02:35 EDT 2014

Powered by FUDForum. Page generated in 0.01362 seconds