public void init( IWorkbenchWindow window ) {
}
public void run( IAction action ) {
IProject project = ApplicationGIS.getActiveProject();
ProjectElementAdapter element = ApplicationGIS.createGeneralProjectElement(project ,
MyProjectElement.class, MyProjectElement.EXT_ID);
MyProjectElement myElement = (MyProjectElement) element.getBackingObject();
if( random.nextBoolean() ){
StringBuilder builder = new StringBuilder();
for(int i =0; i<(random.nextInt(5)+2);i++ ){
builder.append(String.valueOf(random.nextInt(9)));
}
myElement.setLabel(builder.toString());
element.setName(builder.toString());
}
}