LabelEditPart label = (LabelEditPart) getHost( ); SetPropertyCommand command = new SetPropertyCommand( label.getModel( ),
EditPart host = getHost(); Object model = null; if(host instanceof LabelEditPart) { LabelEditPart label = (LabelEditPart) getHost( ); model = label.getModel(); } else if(host instanceof PlaceHolderEditPart) { PlaceHolderEditPart label = (PlaceHolderEditPart) getHost( ); model=label.getCopiedModel(); }  SetPropertyCommand command = new SetPropertyCommand( model,
	protected Command getDirectEditCommand( DirectEditRequest edit )	{		String labelText = (String) edit.getCellEditor( ).getValue( );		Map extendsData = new HashMap( );		extendsData.put( DEUtil.ELEMENT_LABELCONTENT_PROPERTY, labelText );		LabelEditPart label = (LabelEditPart) getHost( );		SetPropertyCommand command = new SetPropertyCommand( label.getModel( ),				extendsData );		return command;	}