JFreeReportDesigner fails with JFreeReport 0.8.4_9

A free public discussion forum for JFreeDesigner, a report definition designer for JFreeReport.
Locked
helmut
Posts: 4
Joined: Sun Aug 03, 2003 9:26 am

JFreeReportDesigner fails with JFreeReport 0.8.4_9

Post by helmut » Tue Apr 20, 2004 4:05 pm

Hi,

private void loadConfiguration()
{
try
{
final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
if (storage.existsProperties("designer-settings"))
{
final Properties props = storage.loadProperties("designer-settings", null);
this.editorConfiguration.putAll(props);
}
}
catch (ConfigStoreException ce)
{
Log.debug("Unable to load default configuration.");
}
}

fails together with JfreeReport 0.8.4_9 because it does not accept hyphens in the name.

/**
* Checks, whether the given string denotes a valid config storage path.
* Such an path must not contain whitespaces or non-alphanumeric characters.
*
* @param path the path that should be tested.
* @return true, if the path is valid, false otherwise.
*/
public static boolean isValidPath(final String path)
{
final char[] data = path.toCharArray();
for (int i = 0; i < data.length; i++)
{
if (Character.isJavaIdentifierPart(data) == false)
{
return false;
}
}
return true;
}

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Tue Apr 20, 2004 8:03 pm

Hi,

thanks for the report - it is fixed now and the CVS version uses now the latest released JFreeReport version. I also commited an fix for a crash in the Element-Stylesheet-editor.

I'm currently uploading a packaged version to sourceforge, so that we have something downloadable there.

Have mo' fun,
said Thomas

Locked