First Designer project

Hi,
I am trying to start a new designer project with a node in the project panel that will open a workspace. I follow the instruction in the programming pdf but this first section doesn’t compile for me and the javadoc is talking about a manager factory.

 long newId = designerContext.getLockManager().newResourceId();

As shown above I cannot access the newRessourceId from my startup function

[code]public class DesignerHook extends AbstractDesignerModuleHook {

@Override
public void startup(DesignerContext context, LicenseState activationState) throws Exception {
	 
	long newID = context.getLockManager()
	
}

}[/code]

Can you suggest a solution or a new documentation on getting started with coding the designer.

thanks