[opencms-dev] creating a file

Dirk Hinderks opencms-list at 84aed5c0.psd.hinderks.de
Thu Aug 28 22:56:32 CEST 2008


Hi Chris,

On Thu, Aug 28, 2008 at 04:06:07PM +0200, Christoph P. Kukulies wrote:
[trying to use CmsLock.TEMPORARY:]
> I solved it by typing 
> 
> org.opencms.lock.CmsLock.TEMPORARY
> 
> Don't know, why including org.opencms.lock or org.opencms.* didn't work.

In Java you import types (or static import for static functions).  You 
don't import packages.  Therefore you schould use the following import 
declaration:

  import org.opencms.lock.CmsLock;

You could also use this import on demand declaration:

  import org.opencms.lock.*;

Bye
Dirk



More information about the opencms-dev mailing list