public void activate( final EditToolHandler handler ) {
this.handler = handler;
command = new DrawEditGeomsCommand(handler);
StyleStrategy colorizationStrategy = command.getColorizationStrategy();
colorizationStrategy.setFill(new IProvider<Color>(){
public Color get( Object... params ) {
return PreferenceUtil.instance().getDrawGeomsFill();
}
});
colorizationStrategy.setLine(new IProvider<Color>(){
public Color get( Object... params ) {
return PreferenceUtil.instance().getDrawGeomsLine();
}