Skip to main content
Jump to: navigation, search


< Riena
Revision as of 03:23, 2 March 2010 by (Talk | contribs) (New page: == Logging with Log4j == See package '''<code>org.eclipse.riena.core.logging</code>'''. == Accessing files on disk with RienaLocations == The class '''<code>org.eclipse.riena.core.RienaLo...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Logging with Log4j

See package org.eclipse.riena.core.logging.

Accessing files on disk with RienaLocations

The class org.eclipse.riena.core.RienaLocations with static methods getDataArea() and getDataArea(Bundle) should be the single place that manages and knows about where to read/write files on disk.

Always use RienaLocations when you need to read or write application-specific data (e.g. user settings or custom caches) to/from disk.


See package org.eclipse.riena.core.cache.

Util classes

All in package org.eclipse.riena.core.util. See the source files for a complete list of methods and the inline Javadoc for more information.


Helps with converting string representation of maps and lists to their Java counterparts.


Helper for I/O operations, e.g.

public static void copyFile(File from, File to) throws IOException


Helper for arrays.

public static <T> T[] copyRange(T[] source, int from, int to)
Copy from the given source array from index from to index to into a newly-created array of the same type with size to - from.


Offers static convenience methods like:

public static boolean isGiven(final CharSequence sequence)
the counterpart to isEmpty(...)
public static boolean isEmpty(final CharSequence sequence)
public static boolean isDeepEmpty(final String string)
like isEmpty, with the difference that whitespace-only strings are considered empty.
public static boolean equals(final CharSequence sequence1, final CharSequence sequence2)
null-safe equals


Use this to explicitly document do-nothing behavior, e.g. in empty try-catch clauses:

Nop.reason("do nothing, can happen if some other bundle registered this service");

Copyright © Eclipse Foundation, Inc. All Rights Reserved.