• Anonymous
  • Login
  • Register
OpenLog - Feature Request: Visible Java Class Constants

Created on Apr 7, 2004
Created by John Marshall
Status Submitted

Can you make severity type constants available outside the OpenLogItem Java class i.e. make them public.

// common severity types
static final String SEVERITY_LOW = "0";
static final String SEVERITY_MEDIUM = "1";
static final String SEVERITY_HIGH = "2";

to

// common severity types
public static final String SEVERITY_LOW = "0";
public static final String SEVERITY_MEDIUM = "1";
public static final String SEVERITY_HIGH = "2";

Then I dont need to remember there values as I find it difficult remembering three numbers especially when there sequential ;)

I can then use these constants thus:

public static OpenLogItem oli = new OpenLogItem(); // Log Stuff

public void doStuff() {
oli.logEvent("My Event", OpenLogItem.SEVERITY_HIGH, doc);
oli.logEvent("My Other Event", oli.SEVERITY_HIGH, doc);
}


Thanks.



Taken Actions by Owners

No actions have been taken yet.


Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.